If more than 14 ween 2 date

Asw091

New Member
Joined
May 28, 2017
Messages
24
Hi guys,

I have a report that shows when a customer has responded with a customer service score, however it is not applicable if they’ve replied more than 2 weeks after the sent date.

Let’s say cell B is the sent date and cell C is the received date and cell F is the cell I want to show yes or no for ‘Applicable?’

How would I go about creating a formula for this?

Thanks.
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Something like:
Code:
=IF(C2-B2>14,"No","Yes")
 
Upvote 0
Something like:
Code:
=IF(C2-B2>14,"No","Yes")


Hi, thanks for the reply, but it says ‘Durations can’t be compared to other data types’. The format for the date on my spreadsheet is de/mm/yyyy
 
Upvote 0
Are the date entries in BOTH columns A and B entered as dates and not text?
That message seems to imply that at least one of them is not.

And what version of Excel are you using?
 
Upvote 0
Are the date entries in BOTH columns A and B entered as dates and not text?
That message seems to imply that at least one of them is not.

And what version of Excel are you using?

I’ve used this and it has worked as intended.

[FONT=&quot]=IF(DUR2DAYS(C2−B2)>14,"No","Yes")[/FONT]
 
Upvote 0
What exactly is "DUR2DAYS"?
It doesn't appear to be any Excel function that I have ever seen.
Is it some UDF you or someone else created?

 
Upvote 0
What exactly is "DUR2DAYS"?
It doesn't appear to be any Excel function that I have ever seen.
Is it some UDF you or someone else created?


So it appears the spreadsheet has opened in Numbers on this occasion for iPad instead of Excel. Maybe that’s why the usual formula didn’t work.

The formula was given to me by the creator who also used numbers. My bad.
 
Upvote 0
So it appears the spreadsheet has opened in Numbers on this occasion for iPad instead of Excel. Maybe that’s why the usual formula didn’t work.
I had a feeling that maybe you weren't in Excel, which is why I asked this question:
And what version of Excel are you using?
As I have never seen an Excel error message that said: "Durations can’t be compared to other data types’"
 
Upvote 0

Forum statistics

Threads
1,215,866
Messages
6,127,403
Members
449,382
Latest member
DonnaRisso

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