convert weekday string to number

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

Guest

Is there an easy way to convert a string which is either "Monday" thru
"Sunday" into a number to work with? In particular, I want to add a 1 if the
cell contains "Monday", 2 if "Tuesday" etc.

Any ideas?
Thanks!
 
=LOOKUP(A1,{"Friday",5;"Monday",1;"Saturday",6;"Sunday",7;"Thursday",4;"Tues
day",2;"Wednesday",3})

Vaya con Dios,
Chuck, CABGx3
 
=MATCH(A1,{"Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Su
nday"},0)
 

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

Back
Top