You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

looking up value if provided date falls between two dates

I can't figure this out. I want to be able to type a date into E2 (GREEN) and have F2 (BLUE) return the value $30 (from C5) because that's the value when E2 is between that START DATE and END DATE.


For example, if the user puts 08/13/2024 into E2, F2 would return $50.


What's the formula to put into F2?


Thank you for any help.




Mac Studio (2023)

Posted on Sep 19, 2024 9:15 PM

Reply
4 replies

Sep 20, 2024 3:07 AM in response to REFLUXER

Hi REFLUXER,


Here is one way.


Format the Date cells (column A, Column B and D1) as Text. Numbers will recognise them as Dates, but without the automatic Time component that may complicate this method.


Enter the date in question in D1.

Formula in D2 (and fill down) is IF(AND(A2≤D$1,B2≥D$1),"Yes","No")


Formula in E2 (and fill down) is IF(D2="Yes",C2,"")


Regards,

Ian.

looking up value if provided date falls between two dates

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.