Hello All,
I have this list of accounts to call on covering an 8 week call cycle. What I am trying to do is type a week # into cell J1 and have the accounts for that week post in column K. The cumbersome formula below (based on an Aladin solution in another post) works, but I’ve hit the maximum 7 nested IF’s and I have 8 weeks to consider.
=IF($J$1=1,LOOKUP(9.99999999999999E+307,$B$2:B2)+1,
IF($J$1=2,LOOKUP(9.9999999999999E+307,$C$2:C2)+1,
IF($J$1=3,LOOKUP(9.9999999999999E+307,$D$2:D2)+1,
IF($J$1=4,LOOKUP(9.9999999999999E+307,$E$2:E2)+1,
IF($J$1=5,LOOKUP(9.9999999999999E+307,$F$2:F2)+1,
IF($J$1=6,LOOKUP(9.9999999999999E+307,$G$2:G2)+1,
IF($J$1=7,LOOKUP(9.9999999999999E+307,$H$2:H2)+1)))))))
Any ideas to clean this up? Thanks in advance.
C.R.
I have this list of accounts to call on covering an 8 week call cycle. What I am trying to do is type a week # into cell J1 and have the accounts for that week post in column K. The cumbersome formula below (based on an Aladin solution in another post) works, but I’ve hit the maximum 7 nested IF’s and I have 8 weeks to consider.
NewMaster.xls | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | |||
1 | Week: | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 5 | 511 | ||
2 | 110 | 210 | 310 | 410 | 510 | 610 | 710 | 810 | 512 | ||||
3 | 111 | 211 | 311 | 411 | 511 | 611 | 711 | 811 | 513 | ||||
4 | 112 | 212 | 312 | 412 | 512 | 612 | 712 | 812 | 514 | ||||
5 | 113 | 213 | 313 | 413 | 513 | 613 | 713 | 813 | 515 | ||||
6 | 114 | 214 | 314 | 414 | 514 | 614 | 714 | 814 | 516 | ||||
7 | 115 | 215 | 315 | 415 | 515 | 615 | 715 | 815 | 517 | ||||
8 | 116 | 216 | 316 | 416 | 516 | 616 | 716 | 816 | 518 | ||||
9 | 117 | 217 | 317 | 417 | 517 | 617 | 717 | 817 | 519 | ||||
10 | 118 | 218 | 318 | 418 | 518 | 618 | 718 | 818 | 520 | ||||
WeekSeq |
=IF($J$1=1,LOOKUP(9.99999999999999E+307,$B$2:B2)+1,
IF($J$1=2,LOOKUP(9.9999999999999E+307,$C$2:C2)+1,
IF($J$1=3,LOOKUP(9.9999999999999E+307,$D$2:D2)+1,
IF($J$1=4,LOOKUP(9.9999999999999E+307,$E$2:E2)+1,
IF($J$1=5,LOOKUP(9.9999999999999E+307,$F$2:F2)+1,
IF($J$1=6,LOOKUP(9.9999999999999E+307,$G$2:G2)+1,
IF($J$1=7,LOOKUP(9.9999999999999E+307,$H$2:H2)+1)))))))
Any ideas to clean this up? Thanks in advance.
C.R.