how do I write a better formula?

samlee1981

New Member
Joined
Feb 12, 2019
Messages
7
I have the following If formula...

[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]=IF(D5-15<P$3,"OVERDUE","NOT DUE")=IF(J5=isnumber,I5,"")

How do I write this correctly?
The first part works but the second nested IF is not correct.

D Column is course date, I Column is todays date minus 15 days (set to remind me that payment needs to have been made), J Column is payment received. P3 is todays date.

I want to say - if J5 contains a number, (e.g the date payment was received), make I5 blank. At the moment it just says overdue.


Any ideas how to reword it?

Many thanks
[/FONT]
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
If you are using < or > in your formula, put a space either side when posting it on the forum, otherwise it will cut it off at the < >
 
Upvote 0
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]=IF(D5-15<P$3,"OVERDUE","NOT DUE")=IF(J5=isnumber, I5="")[/FONT]
 
Upvote 0
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]=IF ( D5-15 < P$3, " OVERDUE", " NOT DUE")= IF ( J5 = isnumber, I5 ="" )[/FONT]
 
Upvote 0
Maybe

=if(isnumber(J5),"",IF (D5-15 < P$3,"OVERDUE","NOT DUE"))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,551
Members
449,088
Latest member
davidcom

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