Give a sequence of columns, I want to sort each column individually using formula because of some reason.
Eg.
| A | B | C | D |
|---|---|---|---|
| 4 | 7 | 2 | 5 |
| 1 | 8 | 1 | 3 |
| 9 | 3 | 4 | |
| 7 | 4 |
Expected output
| A | B | C | D |
|---|---|---|---|
| 1 | 7 | 1 | 3 |
| 4 | 7 | 2 | 4 |
| 8 | 3 | 4 | |
| 9 | 5 |
Is there any way to do that with a formula? Also the formula should take the whole range as input like A1:D4. Any help is appreciated