Hi i need code to be able to search the date in Cell A1 and look through the data in Cells E:E, then find the closest match then return the corresponding value in cell D:D.
See the attached, thanks!!
Example.xlsx
Hi i need code to be able to search the date in Cell A1 and look through the data in Cells E:E, then find the closest match then return the corresponding value in cell D:D.
See the attached, thanks!!
Example.xlsx
Hi all your column E dates are just text strings. They can be understood as dates but since they're not numeric Excel can't perform any date arithmetic.
You need to convert them first. Here's one way. Enter in F1 on sheet 2
Formula:
Please Login or Register to view this content.
copy this down.
Then to find the nearest value that precedes the date in A1 use
Formula:
Please Login or Register to view this content.
Richard Buttrey
RIP - d. 06/10/2022
If any of the responses have helped then please consider rating them by clicking the small star iconbelow the post.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks