Nubmer of Days where Cell = Blank, IF cell blank then use Todays Date formula.. HELP!

steveaus

New Member
Joined
May 21, 2015
Messages
11
Hi Guys,

Just a quick one here, cant wrack my brain around it!

A1 Open (date), A2 (Close Date) A3 (Total Days)

Obviously I can use the A3 = A2-A1 to get the number of days taken to close, though if A2 (the close date) is blank, I want the formula to use the current date

So for instance, A1 = 20/05/2015, A2 = Blank, therefore A3 = (todays date - A1) so a simple IF cell = blank use this formular, if value use =A2-A1

Can anyone help me out on this quick on?

Cheers!
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Hi and welcome to the forum.

= IF(B1="",TODAY(),B1) - A1

Format the cell with this formula as General or Number. Excel may try to set it with a Date format.
 
Last edited:
Upvote 0
Also one more question.

Lets say Cell A is blank, can I create an IF Function to make cell C Blank if there is no data in either Cell A or Cell B?
 
Upvote 0

Forum statistics

Threads
1,214,628
Messages
6,120,618
Members
448,973
Latest member
ChristineC

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