Excel date formula question

zblaff

New Member
Joined
Oct 8, 2018
Messages
7
Hello,

I'm trying to compare a date to that same date plus 30 days (for payment purposes) and return a message, and i've not been able to do it. I'm using this formula: =if(today()>d2+30, "delayed", "ok")

(D2 is where i have my date). What am i doing wrong here? I'm using MS Office 365

Thank you in advance for your help
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Can you define what is wrong for you as it works fine for me (maybe also state what the formula =ISNUMBER(D2) returns)

Excel Workbook
ABCD
1delayed
2ok01/09/2018
301/10/2018
Sheet2
 
Upvote 0
Your formula is saying is today's date more than 30 days after the date in D2 - is that what you meant?
 
Upvote 0
I've done it like that, the only difference being that the cell i'm trying to insert the formula into is the J2. If you could show me where i can do a table like the one you posted in your answer i can show your better.

Thank you
 
Upvote 0
Yes, that's what i mean. If I received an invoice at 1/01/2018 i want to see a message that tells me when 30 days have passed from the day i received the invoice

Thank you
 
Upvote 0
You haven't said what the actual problem is. What is your formula returning?
 
Upvote 0
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]xxx[/TD]
[TD]xxx[/TD]
[TD]xxx[/TD]
[TD]01/01/2018[/TD]
[TD]=if(today()>d2+30, "delayed", "ok")[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]



98de26b0-d26a-4a0e-a247-7e54c194af30
 
Upvote 0
Do you normally use semicolons in formulas like this:

=if(today()>d2+30; "delayed"; "ok")

I note that the formula selected in that image has nothing to do with this question.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,180
Members
453,021
Latest member
Justyna P

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