determine if value is between two dates

flashgordie

Board Regular
Joined
Jan 9, 2008
Messages
95
Office Version
  1. 365
Platform
  1. Windows
-------a---------|------ b--------|-----c-----|-----d----|
1----------------|----------------| $500.00---| $299.00--|
2----------------|----------------|----22-----|-----7----|
3 Fri Dec-09-11 | Thu Dec-22-11 |
4 Fri Dec-23-11 | Thu Jan-05-12 |
5 Fri Jan-06-1 | Thu Jan-19-12 |


Hello, can anyone help with my problem. I am trying find a formula that will determine in C2 is between the dates of a3 and b3. IF it is, I would like it to return a value of c1.

second example find if d2 is between a3 and b3 and if so, return d1

Thank you for your help
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
In your example, it's not really determinable as your "dates" in C2 and D2 do not include a month and a year.
 
Upvote 0
Thanks HotPepper, I understand where you are coming from, in my example the value of c2 represents the 22nd of each month, similarly d2 is the 7th of each month. I was hoping that by formatting the cell as a date (more specifically a day) that this type of determination might be able to be made.

I was hoping not to have to state a date for each month, dec 22, jan 22, feb 22. This would seem a little much.
 
Last edited:
Upvote 0
Hi HotPepper, thanks for pointing out that problem with the single date. I went back a looked at it again and eve nthough I formatted the values in Row 2 as dates using a custom "dd", excel actually posts the value as "dd-Jan-1900". Any ideas?
 
Upvote 0

Forum statistics

Threads
1,215,464
Messages
6,124,967
Members
449,200
Latest member
Jamil ahmed

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top