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:

[TABLE="width: 346"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]Received[/TD]
[TD]Type[/TD]
[TD]collected[/TD]
[/TR]
[TR]
[TD]2/20/19[/TD]
[TD]swab[/TD]
[TD]15/02/2019[/TD]
[/TR]
[TR]
[TD]21/02/2019[/TD]
[TD]swab[/TD]
[TD]12/02/2019[/TD]
[/TR]
</tbody>[/TABLE]

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

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
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,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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