S
Scott Bowden
I am trying to create a spreadsheet that looks at a
particular set of cells for a date and then a meal
(Breakfast, lunch, or dinner) and returns a value only if
something is entered for the dollar amount in the
particular field.
What I have for days 1-6 works, but I need to get days 7-
12 in the same function. Excel Help says that you can only
nest 7 IF statements. Is there any way around that? Here
is what I have so far that works:
=IF(A20=""," ",VLOOKUP(F20,IF(A20=Day1,Day1range,IF
(A20=Day2,Day2range,IF(A20=Day3,Day3range,IF
(A20=Day4,Day4range,IF(A20=Day5,Day5range,IF
(A20=Day6,Day6range)))))),5,FALSE))
A20 is the date on sheet1. F20 is the meal (breakfast,
lunch, or dinner) on sheet1. Each Day is defined as a
group of cells on another sheet. Column Number 5 is the
dollar amount for that meal on that particular date.
How do I get it to search through days 7 through 12?
particular set of cells for a date and then a meal
(Breakfast, lunch, or dinner) and returns a value only if
something is entered for the dollar amount in the
particular field.
What I have for days 1-6 works, but I need to get days 7-
12 in the same function. Excel Help says that you can only
nest 7 IF statements. Is there any way around that? Here
is what I have so far that works:
=IF(A20=""," ",VLOOKUP(F20,IF(A20=Day1,Day1range,IF
(A20=Day2,Day2range,IF(A20=Day3,Day3range,IF
(A20=Day4,Day4range,IF(A20=Day5,Day5range,IF
(A20=Day6,Day6range)))))),5,FALSE))
A20 is the date on sheet1. F20 is the meal (breakfast,
lunch, or dinner) on sheet1. Each Day is defined as a
group of cells on another sheet. Column Number 5 is the
dollar amount for that meal on that particular date.
How do I get it to search through days 7 through 12?