if function not working - Dave Peterson |
06-May-07 07:25:46
|
The underlying value in B3 is still the whole date. You've just formatted it to
look like "Sunday".
(You could drop B3 and just check A3, too.)
=if(weekday(A3)=1,"Void","Not void")
or
=if(text(a3,"dddd")="Sunday","Void","not void")
Or you could hide that "else" portion
=if(weekday(A3)=1,"Void","")
or
=if(text(a3,"dddd")="Sunday","Void","")
Change A3 to B3 in any of those formulas if you want to keep B3 around.
--
Dave Peterson |
 |
| |
if function not working - BillyLidde |
06-May-07 07:26:00
|
You do not need an if function; in B3 type =A3 and format it as ddd to
return Sun or dddd to return Sunday.
You could also use Weekday(A3) which will return 1 - to 7 unless you format
it as above.
Peter |
 |
| |
if function not working - Erny |
06-May-07 02:21:11
|
Hi,
You could use in F3 the following formula:
=IF(TEXT(A3,"dddd")="Sunday","Void")
Beware that "Sunday" is written with an upper-case "S"!
Kind regards,
Erny |
 |
| |
if function not working - Dave Peterson |
06-May-07 03:01:39
|
With text comparisons like this, excel doesn't care about case.
If the case is important, excel has another function =exact().
--
Dave Peterson |
 |
| |