If Statements with Dates

AgingRapidly

New Member
Joined
May 31, 2018
Messages
10
Office Version
  1. 365
Platform
  1. Windows
Have query for 2022 Receipts. Want to add date col to the PVT showing date if red'd w/i last 4 days & qty col showing qty rec'd on that date. Can be more than 1 receipt entry for an item on a date. Rec'd product must be tested prior to shipping, so need to add another col for Anticipated Release Date adding a number of days based on the day of wk rec'd.

Tried calculated col & measures--yet to find solution. Added Date_Diff calc col to 2022 Receipts thinking could be used in measure.

Some Transaction Date entries have date beyond today (entry errors). 2 rows per instance--1 data entered; 1 entry reversed. Filtered Date_Diff col to values > 0 to avoid them.

Created Prior to Today measure - TODAY()-4.

Attempted measure to return Transaction Date if it is <= 4 days from TODAY().

When Transaction Quantity added to PVT, number doesn't match qty for Transaction Date.

I feel like I'm close, but I can't work it out. Any assistance will be greatly appreciated. Thank you


Screenshot Failed Measure.pngScreenshot Measures.pngScreenshot Data Table Window.pngScreenshot Data Model.pngScreenshot Pivot Table.png
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Forum statistics

Threads
1,223,667
Messages
6,173,674
Members
452,527
Latest member
ineedexcelhelptoday

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