Hello
I am trying to combine 2 formula but have difficulty as i do not understand excel that well, these are the 2 formula below
1st =IF(IFERROR(VLOOKUP(TEXT(B3,"dd/mm/yyyy"),Holidays!A:A,1,0),0)=TEXT(B3,"dd/mm/yyyy"),"off Peak"
2nd =IFERROR(IF((LEFT(TEXT(B3,"ddd"))="S")+ISNUMBER(MATCH(INT(B3),$L$3:$L$10,0)), LOOKUP(TEXT(B3,"hh:mm"),{"00:00","00:30","07:30","23:30"},{"Off peak";"Off peak";"Off Peak";"Off peak"}),LOOKUP(TEXT(B3,"hh:mm"),{"00:00","00:30","07:30","14:30","20:30","22:30"},{"Off peak";"Off peak";"Peak";"Peak";"Peak";"Off peak"})),"")
So from 1st formula then add second formula from lookup on wards which has a space is what i need
this is for peak and off peak times with holiday in a separate worksheet
any help would be appreciated
thank you
I am trying to combine 2 formula but have difficulty as i do not understand excel that well, these are the 2 formula below
1st =IF(IFERROR(VLOOKUP(TEXT(B3,"dd/mm/yyyy"),Holidays!A:A,1,0),0)=TEXT(B3,"dd/mm/yyyy"),"off Peak"
2nd =IFERROR(IF((LEFT(TEXT(B3,"ddd"))="S")+ISNUMBER(MATCH(INT(B3),$L$3:$L$10,0)), LOOKUP(TEXT(B3,"hh:mm"),{"00:00","00:30","07:30","23:30"},{"Off peak";"Off peak";"Off Peak";"Off peak"}),LOOKUP(TEXT(B3,"hh:mm"),{"00:00","00:30","07:30","14:30","20:30","22:30"},{"Off peak";"Off peak";"Peak";"Peak";"Peak";"Off peak"})),"")
So from 1st formula then add second formula from lookup on wards which has a space is what i need
this is for peak and off peak times with holiday in a separate worksheet
any help would be appreciated
thank you