Between Two Dates

Utradeshow

Well-known Member
Joined
Apr 26, 2004
Messages
769
Hi All,

Trying to come up with a formula that will tell me if a column of dates is between the criteria in columns I and J.

Last In last Out Dates.xlsx
IJKLM
1STARTENDBetweenINOUT
21/1/20241/31/2024YES12/15/20231/15/2024
3NO12/17/202312/22/2023
Sheet1
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Your question is confusing, you mention a column but you seem to have two columns, so unsure what column you're comparing.
But try this:

Book1
IJKLMNO
1STARTENDBetweenINOUTIf Check Col LIf Check Col M
22024-01-012024-01-31YES2023-12-152024-01-15NoYes
3NO2023-12-172023-12-22NoNo
Sheet4
Cell Formulas
RangeFormula
N2:O3N2=IF(((L2>=$I$2)*(L2<=$J$2)),"Yes","No")
 
Upvote 0
The scenario is for STORAGE Billing. If items are in storage for even one day in January in this case the return would be YES.

The (input) cells or criteria is entered in I2 and J2. So in this case the formula in cell K2 would check if the item dates in L2 and M2 was here any day in January.

Last In last Out Dates.xlsx
IJKLM
1STARTENDBetweenINOUT
21/1/20241/31/2024YES12/15/20231/15/2024
3NO12/17/202312/22/2023
4YES12/25/20241/2/2024
5YES1/15/20241/25/2024
6NO12/2/202312/27/2023
Sheet1
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)


How about
Excel Formula:
=IF(AND(L2<=$J$2,M2>=$I$2),"Yes","No")
 
Upvote 0
Solution
Glad we could help & thanks for the feedback.
 
Upvote 0
@kvsrinivasamurthy if you are going to changes the ranges (rather than use what has been posted) it would help if you actually posted a sample of data using XL2BB. That way it is clear what is in those cells.
 
Upvote 0

Forum statistics

Threads
1,215,447
Messages
6,124,906
Members
449,194
Latest member
JayEggleton

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