Suppose we have a table like the following :
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | 17-01 | DO | 22-06 | DO | 17-01 | 22-06 | 22-06 |
| 2 | 22-06 | 22-06 | 17-01 | DO | 22-06 | 09-17 | 09-17 |
| 3 | 09-17 | DO | 22-06 | 22-06 | DO | 17-01 | 17-01 |
| 4 | 17-01 | 22-06 | 17-01 | DO | 22-06 | DO | 22-06 |
| 5 | 22-06 | DO | 09-17 | 09-17 | 09-17 | 22-06 | 09-17 |
| 6 | 09-17 | 09-17 | DO | 22-06 | DO | 09-17 | 22-06 |
And I would like to substitute the following values more efficiently.
- "09-17" ---> "07-15".
- "17-01" ---> "15-23"
- "22-06" ---> "20-04"
I managed to do it with the following solution (not so efficiently as it makes lot of loops)
=ARRAYFORMULA(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE({B2:G6},"09-17","07-15"),"17-01","15-23"),"22-06","20-04"))I was wondering how this can be done more efficiently when the dimensions of the table are too large.
Any idea how to limit unnecessary repetitions?