Hi,
I am trying to find a value that is time related that was the last value prior to a specific time and date.
Find "E" IF "D" largest value prior to "A"
Hi,
I am trying to find a value that is time related that was the last value prior to a specific time and date.
Find "E" IF "D" largest value prior to "A"
You have two minor problems with your data. Columns A and D are TEXT that looks like date/time. To convert to date/time:
Select column A. Data/Text to columns/Finish.
Repeat for column D. Then use this formula, dragged down:
=IFERROR(LOOKUP(2,1/(($E$2:$E$22<>"")*($D$2:$D$22<=$A2)),$E$2:$E$22),"")
Glenn
None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.
Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh
Fab.
If I just wanted to return the prior date and time regardless to the value in "E" what you I deed to remove from the formual?
Regards,
Zoe
Like this:
=IFERROR(LOOKUP(2,1/(($D$2:$D$22<=$A2)),$D$2:$D$22),"")
If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.
It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.
Hi,
Thanks for your help.
I believe it was =IFERROR(LOOKUP(2,1/(($D$2:$D$22<=$A2)),$E$2:$E$22),"") that was needed
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks