I am looking for an easy, more streamlined way to search if a time is between to times in different cells, and return a value if it falls into the range.
It is GIS data with thousands of lines that I am trying to interpret for a new project and I feel there must be a way.
I think I could do as below, but I am limited by the number of nested if statements, and i dont want to manually type that many if possible..... is there an easier way?
Thanks
=IF(AND(G2=[HID_QUALITY.xlsx]Sheet1!$F$3,H2,[HID_QUALITY.xlsx]Sheet1!$G$30),[HID_QUALITY.xlsx]Sheet1!$C$3,
IF(AND(G2=[HID_QUALITY.xlsx]Sheet1!$F$3,H2>=[HID_QUALITY.xlsx]Sheet1!$G$3,H2<=[HID_QUALITY.xlsx]Sheet1!$G$4),[HID_QUALITY.xlsx]Sheet1!$C$3,
IF(AND(G2=[HID_QUALITY.xlsx]Sheet1!$F$4,H2>=[HID_QUALITY.xlsx]Sheet1!$G$4,H2<=[HID_QUALITY.xlsx]Sheet1!$G$5),[HID_QUALITY.xlsx]Sheet1!$C$4,
IF(AND(G2=[HID_QUALITY.xlsx]Sheet1!$F$5,H2>=[HID_QUALITY.xlsx]Sheet1!$G$5,H2<=[HID_QUALITY.xlsx]Sheet1!$G$6),[HID_QUALITY.xlsx]Sheet1!$C$5,
IF(AND(G2=[HID_QUALITY.xlsx]Sheet1!$F$6,H2>=[HID_QUALITY.xlsx]Sheet1!$G$6,H2<=[HID_QUALITY.xlsx]Sheet1!$G$7),[HID_QUALITY.xlsx]Sheet1!$C$6,
etc, etc.........
It is GIS data with thousands of lines that I am trying to interpret for a new project and I feel there must be a way.
I think I could do as below, but I am limited by the number of nested if statements, and i dont want to manually type that many if possible..... is there an easier way?
Thanks
=IF(AND(G2=[HID_QUALITY.xlsx]Sheet1!$F$3,H2,[HID_QUALITY.xlsx]Sheet1!$G$30),[HID_QUALITY.xlsx]Sheet1!$C$3,
IF(AND(G2=[HID_QUALITY.xlsx]Sheet1!$F$3,H2>=[HID_QUALITY.xlsx]Sheet1!$G$3,H2<=[HID_QUALITY.xlsx]Sheet1!$G$4),[HID_QUALITY.xlsx]Sheet1!$C$3,
IF(AND(G2=[HID_QUALITY.xlsx]Sheet1!$F$4,H2>=[HID_QUALITY.xlsx]Sheet1!$G$4,H2<=[HID_QUALITY.xlsx]Sheet1!$G$5),[HID_QUALITY.xlsx]Sheet1!$C$4,
IF(AND(G2=[HID_QUALITY.xlsx]Sheet1!$F$5,H2>=[HID_QUALITY.xlsx]Sheet1!$G$5,H2<=[HID_QUALITY.xlsx]Sheet1!$G$6),[HID_QUALITY.xlsx]Sheet1!$C$5,
IF(AND(G2=[HID_QUALITY.xlsx]Sheet1!$F$6,H2>=[HID_QUALITY.xlsx]Sheet1!$G$6,H2<=[HID_QUALITY.xlsx]Sheet1!$G$7),[HID_QUALITY.xlsx]Sheet1!$C$6,
etc, etc.........