Date Range

Kris10Courias

New Member
Joined
Feb 21, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Having trouble trying to make this work.......... if the month matches, then the date for this month falls within a date range - return "Exception", if not then return "OK".

MONTH INTO WAREHOUSELATE AFTER THIS DATEEXCEPTION AFTER THIS DATE
JUN FOR JUN
9/06/2024​
10/06/2024​
16/06/2024​
JUL FOR JUL
7/07/2024​
8/07/2024​
14/07/2024​
JUL FOR AUG
7/07/2024​
8/07/2024​
14/07/2024​
AUG FOR AUG
11/08/2024​
12/08/2024​
18/08/2024​

EXCEPTION DATEETACustomer Reference Number
"EXCEPTION"24/05/2024AUG FOR AUG
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
you have 3 date columns, which date are you comparing the ETA with?
I am guessing you want to use one of dates on the row where AUG FOR AUG matches in the first column?
what do you mean by "within a range"

Here is using EXCEPTION AFTER THIS DATE:



Book1
ABCD
1MONTH INTO WAREHOUSELATE AFTER THIS DATEEXCEPTION AFTER THIS DATE
2JUN FOR JUN2024-06-092024-06-102024-06-16
3JUL FOR JUL2024-07-072024-07-082024-07-14
4JUL FOR AUG2024-07-072024-07-082024-07-14
5AUG FOR AUG2024-08-112024-08-122024-08-18
6
7EXCEPTION DATEETACustomer Reference Number
8"EXCEPTION"2024-05-24AUG FOR AUG 
92024-08-01AUG FOR AUGEXCEPTION
Sheet7
Cell Formulas
RangeFormula
D8:D9D8=IF(MONTH(XLOOKUP(C8,$A$2:$A$5,$C$2:$C$5))=MONTH(B8),"EXCEPTION","")
 
Upvote 0

Forum statistics

Threads
1,215,094
Messages
6,123,071
Members
449,092
Latest member
ipruravindra

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