calculate days past

chris007

Board Regular
Joined
Jun 27, 2011
Messages
82
Hello,
I am trying to calculate how many days have past since issuing an invoice.
In cell A22 I have the date the invoice was issued, in cell M21 (M21 is manual entry dated Paid) I have the date the invoice was paid.
So this is not to bad I just enter the formula in M22 (M21-A22) and it tells me how many days past for payment in M22.
I would like this to auto calculate the days and place a number in M22 if M21 is blank, and when there is a date entered into M21 or value entered into cell F22 (Invoice Paid) then place the word (Paid) into cell M22

Hope this makes sense?

Thanks Chris
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
chris007, Good evening.

Try to use this:

M22 --> =IF(OR(F22<>"",M21<>""),"Paid",TODAY()-A22)

Please, tell us if it worked for you.

I hope it helps.
 
Upvote 0
Thanks,
sort of works.
places the word Paid in M22 even if no data in F22 or M21
I.E indicates Paid even if not Paid
 
Upvote 0

Forum statistics

Threads
1,211,848
Messages
6,104,355
Members
447,902
Latest member
chriswebs23

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