Hello! I have two columns in the first sheet, one for the month and the other for the time (hourly time step). I also have a second sheet where water demand depends on the month and the hour, that means other demand for January at 1:00, other for January at 5:00, other for July at 17:00 etc. (12x24 table). So i want for each time step to for a whole year to check the month and the hour and to take the correct amount of water from the second sheet.
I used if-and (code example: =IF(AND(B8=1,E8=0), Data!G26,IF(AND(B8=1,E8=1), Data!G27,IF(AND(B8=1,E8=2), Data!G28,IF(AND(B8=1,E8=3)... etc.) where B is the month, E the time and Data the second sheet but if i do this for all the months (that means 288 if) i get the error "This formula can't be entered because it uses more than 64 levels of nesting"
Any ideas how can i overcome the problem and get my results, using maybe another excel function?
Thank you in advance!
I used if-and (code example: =IF(AND(B8=1,E8=0), Data!G26,IF(AND(B8=1,E8=1), Data!G27,IF(AND(B8=1,E8=2), Data!G28,IF(AND(B8=1,E8=3)... etc.) where B is the month, E the time and Data the second sheet but if i do this for all the months (that means 288 if) i get the error "This formula can't be entered because it uses more than 64 levels of nesting"
Any ideas how can i overcome the problem and get my results, using maybe another excel function?
Thank you in advance!