Jediantman
New Member
Hi everyone,
So I'm facing a dilemma. I use a spreadsheet to work out publication dates for reports and it's all nice and easy because it flows very nicely from one cell to the next and works without a problem. That is until holiday periods need to be calculated. Previously I have gotten around the problem by naming ranges, using a VLOOKUP to then have a nested IF argument work out the relevant dates. The problem I now face is I have 15 different date ranges (although there are common dates) and so my nested IF runs out of arguments. I've included the first part of of my formula below, and as I said its been working fine, but now I don't really know which way to turn. I can't really provide a workbook either because of data security so I was just wondering if anyone could suggest another way of attacking the problem?
=IF(AN23="Group1Hols",IF(OR(ISBLANK(L23),L23=""),"",WORKDAY(AL23,1,Group1Hols)),
IF(AN23="Group2Hols",IF(OR(ISBLANK(L23),L23=""),"",WORKDAY(AL23,1,Group2Hols)),IF(etc.etc.
So I'm facing a dilemma. I use a spreadsheet to work out publication dates for reports and it's all nice and easy because it flows very nicely from one cell to the next and works without a problem. That is until holiday periods need to be calculated. Previously I have gotten around the problem by naming ranges, using a VLOOKUP to then have a nested IF argument work out the relevant dates. The problem I now face is I have 15 different date ranges (although there are common dates) and so my nested IF runs out of arguments. I've included the first part of of my formula below, and as I said its been working fine, but now I don't really know which way to turn. I can't really provide a workbook either because of data security so I was just wondering if anyone could suggest another way of attacking the problem?
=IF(AN23="Group1Hols",IF(OR(ISBLANK(L23),L23=""),"",WORKDAY(AL23,1,Group1Hols)),
IF(AN23="Group2Hols",IF(OR(ISBLANK(L23),L23=""),"",WORKDAY(AL23,1,Group2Hols)),IF(etc.etc.