Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
What is wrong with this formula?
=IF(TEXT($B5,"mmm")"",TEXT($B5,"mmm"),"") If B5 contains a date the answer is right, but if B5 is blank it still returns a value. The expected result is if B5 is blank then C5 is blank. TIA Greg |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
=IF($B5<"",TEXT($B5,"mmm"),"")
-- HTH RP (remove nothere from the email address if mailing direct) "GregR" wrote in message ups.com... What is wrong with this formula? =IF(TEXT($B5,"mmm")"",TEXT($B5,"mmm"),"") If B5 contains a date the answer is right, but if B5 is blank it still returns a value. The expected result is if B5 is blank then C5 is blank. TIA Greg |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Greg,
You can easily check by entering =TEXT($B5,"mmm") in a cell; it returns "Jan" Instead, use =IF($B5="","",TEXT($B5,"mmm")) -- Kind regards, Niek Otten "GregR" wrote in message ups.com... What is wrong with this formula? =IF(TEXT($B5,"mmm")"",TEXT($B5,"mmm"),"") If B5 contains a date the answer is right, but if B5 is blank it still returns a value. The expected result is if B5 is blank then C5 is blank. TIA Greg |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try:
=IF(B5="","",TEXT($B5,"mmm")) -- Gary''s Student "GregR" wrote: What is wrong with this formula? =IF(TEXT($B5,"mmm")"",TEXT($B5,"mmm"),"") If B5 contains a date the answer is right, but if B5 is blank it still returns a value. The expected result is if B5 is blank then C5 is blank. TIA Greg |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Bob and Niek, thanks once again.
Greg |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formula Problem | Excel Worksheet Functions | |||
Problem with =IF(AND........ formula | Excel Worksheet Functions | |||
Formula problem | Excel Discussion (Misc queries) | |||
I have a problem with my Formula. | Excel Worksheet Functions | |||
Formula problem | Excel Worksheet Functions |