using if/ or and countblank together.

samlee1981

New Member
Joined
Feb 12, 2019
Messages
7
Hi,
I want to create a formula for a spreadsheet at work and i'm a complete ludite, so need help!
My dilema is the following;
When an invoice is 15 days before todays date, I want to create a formula to say it has become overdue. I have done this by making an IF statement. IF(D11-15< p$3,"overdue","not due")

This has returned an entire column with overdue and not due, according to todays date.
However, I now need another layer to it....
When payment is received, it is marked in the next column along. When paid, I want the 'overdue' from the original IF statement to go blank. How do I write and IF/OR statement incorporating countblank?

Not sure if i've made much sense but I basically want to say. If invoice is not paid before 15 days before todays date, state 'over due.' When paid (according to next column along) I no longer want overdue, I want it to be blank.

thanks!!
 
Last edited by a moderator:

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Welcome to the Board!

You can nest your IF statement in another IF statement.
You didn't say which column the "Paid" column is, or how exactly it is marked (is it a date, an amount, something else)?
Let's say that something is entered in cell E11, then something like this would work:
Code:
=IF(E11<>"","",[COLOR=#333333] IF(D11-15< p$3,"overdue","not due"))[/COLOR]
 
Upvote 0
thanks so much for replying. the paid column is 'j' and marked using a date format. thanks for your example - really appreciate it!
 
Upvote 0
You are welcome.

So if you are adding a date in column J, dates are really stored by numbers, so you could also use a formula structured a little differently, like this:
Code:
=IF(J11>0,"",[COLOR=#333333] IF(D11-15< p$3,"overdue","not due"))[/COLOR]
Either one should work.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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