Need help with "IF" formula for dates older than 7 days

kiwicanadian

New Member
Joined
Feb 24, 2019
Messages
1
Hi,

I am making a spreadsheet where I want to note if 2 dates are greater than 7 days. For example:

ReceivedTypecollected
2/20/19swab15/02/2019
21/02/2019swab12/02/2019

<colgroup><col><col><col></colgroup><tbody>
</tbody>

I have been using: =IF((A1-C1)>=7, "Old"), and a few other similar but it is not working and it is putting everything as Old.

Any help would be greatly appreciated. Thanks!
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Try


Excel 2007
ABCD
1ReceivedTypecollected
27/02/2019swab15/02/2019old
36/02/2019swab12/02/2019new
Sheet1
Cell Formulas
RangeFormula
D2=IF((C2-7))
D3=IF((C3-7))
 
Last edited:
Upvote 0
Use Days() Function. It returns the date into number of days. Then Subtract them and do a logical formula like so.
=IF(DAYS(End_Date,Start_DAte)>7,"Past Seven","")
 
Upvote 0

Forum statistics

Threads
1,214,788
Messages
6,121,575
Members
449,039
Latest member
Arbind kumar

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