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

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Marcílio_Lobão

Well-known Member
Joined
Oct 7, 2013
Messages
777
Office Version
  1. 2007
Platform
  1. Windows
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.
 

chris007

Board Regular
Joined
Jun 27, 2011
Messages
82
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
 

Watch MrExcel Video

Forum statistics

Threads
1,130,329
Messages
5,641,546
Members
417,219
Latest member
FrancoisT

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
Top