JackDanIce
Well-known Member
- Joined
- Feb 3, 2010
- Messages
- 9,922
- Office Version
- 365
- Platform
- Windows
Morning,
Have a horizontal table, with 216 columns inclusive, starting in N16.
Each 18 column group represents 1 month (12 * 18 = 216)
I need a formula to map column index number to it's month, e.g.
14 - 31 = Jan (1)
32 - 50 = Feb (2)
...
218 - 229 = Dec (12)
So far:
but decimals and stuff and using INT(1+(col_index-14)/18 is returning 13 for the last few columns (since /18 trips over 10). Basically looking for a many-to-one formula.
Experiencing mind-block, can anyone help please?
TIA,
Jack
Have a horizontal table, with 216 columns inclusive, starting in N16.
Each 18 column group represents 1 month (12 * 18 = 216)
I need a formula to map column index number to it's month, e.g.
14 - 31 = Jan (1)
32 - 50 = Feb (2)
...
218 - 229 = Dec (12)
So far:
Code:
=1+(col_index-14)/18
Experiencing mind-block, can anyone help please?
TIA,
Jack
Last edited: