ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Worksheet Formula (https://www.excelbanter.com/excel-discussion-misc-queries/100067-worksheet-formula.html)

ewameg

Worksheet Formula
 

Hi All, Need some help please!!

I'm trying to calculate the no. of days in between start date and end
date. I can do a simple formula to work that out but i need to tell it
that if the end date is blank, then to use todays date.

I know how to do it sub-consiously, but my brain just will not work!!!

Any ideas???


--
ewameg
------------------------------------------------------------------------
ewameg's Profile: http://www.excelforum.com/member.php...o&userid=36525
View this thread: http://www.excelforum.com/showthread...hreadid=562770


Special-K

Worksheet Formula
 

Assuming Column A start date and Column B end date then

=IF(ISBLANK(B1)=TRUE,TODAY()-A1,B1-A1)

should produce what you want


--
Special-K


------------------------------------------------------------------------
Special-K's Profile: http://www.excelforum.com/member.php...fo&userid=7470
View this thread: http://www.excelforum.com/showthread...hreadid=562770


ewameg

Worksheet Formula
 

Cheers Bud,

Means I've got to do some work now!!:mad:


--
ewameg
------------------------------------------------------------------------
ewameg's Profile: http://www.excelforum.com/member.php...o&userid=36525
View this thread: http://www.excelforum.com/showthread...hreadid=562770



All times are GMT +1. The time now is 11:12 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com