Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Right now I have
=DATE(YEAR(V4),MONTH(V4)-1,DAY(V4)) Works great however if I don't have a date in V4 then it comes back NUM. How can I get rid of that. Can I do an if statement? or is just a cell format? Thanks Cheyenne |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=IF(V4="","",DATE(YEAR(V4),MONTH(V4)-1,DAY(V4)))
-- Gary''s Student - gsnu200846 |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Like
=IF(V4<31,"",DATE(YEAR(V4),MONTH(V4)-(V41),DAY(V4))) or the little more mysterious =IF(V4<31,"",DATE(YEAR(V4),MONTH(V4)-(V431),DAY(V4))) HTH. Best wishes Harald "Chey" wrote in message ... Right now I have =DATE(YEAR(V4),MONTH(V4)-1,DAY(V4)) Works great however if I don't have a date in V4 then it comes back NUM. How can I get rid of that. Can I do an if statement? or is just a cell format? Thanks Cheyenne |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Multiple functions, conditional functions | Excel Worksheet Functions | |||
How to convert cell formula functions to code functions | Excel Discussion (Misc queries) | |||
efficiency: database functions vs. math functions vs. array formula | Excel Discussion (Misc queries) | |||
Looking for a site with functions that substitute the ATP functions | Excel Worksheet Functions | |||
Nesting functions in the functions dialog box | Excel Worksheet Functions |