Days between but don't include blanks

md87excel

New Member
Joined
Aug 15, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi, sorry if wrong spot (first post).

I've set up a spreadsheet for staff to put in a start date (H column) and a second column (I) that will say how long the case has been open.
I've used =TODAY()-K2 which gives me the correct answer, so that's working well.
However there's extra space at the bottom for more entries that may be needed which are blank, but the formula is throwing in a random number (guessing it's a number with a 1990 start date or something...)
Is there a way to have the above formula, but then if the H cell is blank, to just stay blank?

In the picture below I want the 45519 cells to be blank.

1723703110609.png
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
I've used =TODAY()-K2
I suppose you mean = TODAY()-H2 ?
With your formula when the cell in H is empty it returns today's date (45519 in this case which is 15/08/2024)
Try
Excel Formula:
=IF(H2<>0,TODAY-H2,"")
 
Upvote 0

Forum statistics

Threads
1,221,444
Messages
6,159,914
Members
451,603
Latest member
SWahl

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