Formula to compare dates and track in a pivot table Help!!!!

BSTVN33

New Member
Joined
Oct 7, 2014
Messages
4
I am transfering data into a table and I am having two seperate problems with this. First issue is I have dates in cells D2 & E2 and would like to show a 1 in cell F2 if the date in D2 is before or equal to the date in E2 and blank if it is after it. The problem is that if there is not a date in D2 it also returns a true value. So far the formula I am using was =IF(D2<=E2,1,"").
Also how can I get the Pivot Table on the same spreadsheet to ignore the formula in the cells of the table and only count the returned value. I am far from an Excel expert but am learning so please don't get to technical. Thanks for your help!!!
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
I am transfering data into a table and I am having two seperate problems with this. First issue is I have dates in cells D2 & E2 and would like to show a 1 in cell F2 if the date in D2 is before or equal to the date in E2 and blank if it is after it. The problem is that if there is not a date in D2 it also returns a true value. So far the formula I am using was =IF(D2<=E2,1,"")

For this part, add another IF statement. Replace "blank" with whatever you want to show there.

=IF(D2="","blank",IF(D2<=E2,1,""))
 
Upvote 0

Forum statistics

Threads
1,214,821
Messages
6,121,759
Members
449,048
Latest member
excelknuckles

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