View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Mike H Mike H is offline
external usenet poster
 
Posts: 11,501
Default How to return mulitple values based on the contents of another cel

Try

=CHOOSE(A1,"A","B","C","A","B","C","A","B","C","A" ,"B","C")

Mike

"sherlockgr" wrote:

Should be simple but I have not been able to figure it out. HELP!

A1 can contain a number between 1 and 50
I am wanting to program A2 to show the result of A, B or C depending on the
value of A1. For example, if:
A1 contains 1 or 4 or 7 or 10, I want the value of A2 to show "A".
A1 contains 2 or 5 or 8 or 11, I want the value of A2 to show "B"
A1 contains 3 or 6 or 9 or 12, I want the value of Aw to show "C"

Thanks for your help!