IF to SELECT CASE

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Instead of having this IF statement
=IF(A1=DATEVALUE("1/1/04"),"NEW YEAR'S",IF(A1=DATEVALUE("1/19/04"),"MLK DAY","")
I would rather have a SELECT CASE statement. How do I do that? In particular, how do I reference the date cell
Thanks
Howar
 
try
select case range("a1")

--
Don Guillett
SalesAid Software
(e-mail address removed)
Howard said:
Instead of having this IF statement:
=IF(A1=DATEVALUE("1/1/04"),"NEW YEAR'S",IF(A1=DATEVALUE("1/19/04"),"MLK DAY",""))
I would rather have a SELECT CASE statement. How do I do that? In
particular, how do I reference the date cell?
 
Create a table of dates (say in column J) and names (in column K).
Then use

=VLOOKUP(A1, J:K, 2, FALSE)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top