Hi guys, I have troubles finding correct formulas in excel and I hope that someone can assist me here.
What I am trying to do is to lookup an column and locate the first value greater than 0 and return the hh:ss located in the same row but on different column.
Here is the idea:
A B C D E
1 01/01/2022 11:55:00 AM 0 0 0 0
2 01/01/2022 12:00:00 PM 0 1 1 0
3 01/01/2022 12:05:00 PM 1 2 2 0
4 01/01/2022 12:10:00 PM 2 3 3 1
Return should be:
- column B = 12:05
- column C = 11:55
- column D = 11:55
- column E = 12:10
If there is no value greater than 0 in the column, the return should be "OFF"
I was trying =INDEX($A2:$A289;MATCH(B2;B2:B289;1))+B293 -> but the formula is not working all the time (refer to attachment in CELL D888). Also I have to add up 00:05 hours to the formula to get the correct result. I was not able to implement OFF condition.
Further, I am looking for a same formula to locate the last value greater than 0 in the same column, and return similar as with above.
A B C D E
1 01/01/2022 11:55:00 AM 1 1 1 1
2 01/01/2022 12:00:00 PM 2 0 2 2
3 01/01/2022 12:05:00 PM 0 0 3 3
4 01/01/2022 12:10:00 PM 0 0 0 0
Return should be:
- column B = 12:00
- column C = 11:55
- column D = 12:05
- column E = 12:05
If there is no value greater than 0 in the column, the return should be "OFF"
For this I was trying =IFERROR((LOOKUP(2;1/(B2:B289>B3);$A2:$A289));"OFF") -> I believe that this formula works, but please review it.
__
From time to time I have missing data (see column K), how this can be fixed in formula to take the first value?
Thank in advance!
Regards
Bookmarks