![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Location: John Hamilton
Posts: 2
|
i am trying to subtract an earlier date from todays date to determine aging since earlier date. how can i return a "zero" or "blank" result if the "earlier date cell" is "blank"?
|
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,319
|
Quote:
where A1 < B1 in time. |
|
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Denver, CO
Posts: 1,744
|
for a zero, you could use
=(TODAY()-A1)*(A1>0) |
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Monterrey, Mexico
Posts: 1,433
|
Assuming that Column A is earlier date and Column B is later date then put the following formula in Column C:
=IF(A1="","",B1-A1) or =IF(A1,B1-A1,"") _________________ Hope this helps. Kind regards, Al. [ This Message was edited by: Al Chara on 2002-04-18 08:54 ] |
|
|
|
|
|
#5 |
|
New Member
Join Date: Apr 2002
Location: John Hamilton
Posts: 2
|
that worked fine.
Thanks, pottytenspot |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|