Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default How to return mulitple values based on the contents of another cel

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!

  #2   Report Post  
Posted to microsoft.public.excel.misc
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!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,047
Default How to return mulitple values based on the contents of another cel

=IF(OR(A1={1,4,7,10}),"A",IF(OR(A1={2,5,8,11}),"B" ,IF(OR(A1={3,6,9,12}),"C",FALSE)))


hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"sherlockgr" escreveu:

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!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default How to return mulitple values based on the contents of another

Marcelo,
You are a genius!

Thanks!


"Marcelo" wrote:

=IF(OR(A1={1,4,7,10}),"A",IF(OR(A1={2,5,8,11}),"B" ,IF(OR(A1={3,6,9,12}),"C",FALSE)))


hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"sherlockgr" escreveu:

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!

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default How to return mulitple values based on the contents of another cel

Another way:

=CHAR(MOD(A1-1,3)+65)

Hope this helps.

Pete

"sherlockgr" wrote in message
...
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!





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,047
Default How to return mulitple values based on the contents of another

no I am not.

Thanks for the feedback

--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"sherlockgr" escreveu:

Marcelo,
You are a genius!

Thanks!


"Marcelo" wrote:

=IF(OR(A1={1,4,7,10}),"A",IF(OR(A1={2,5,8,11}),"B" ,IF(OR(A1={3,6,9,12}),"C",FALSE)))


hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"sherlockgr" escreveu:

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!

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to return mulitple corresponding values MetricsShiva Excel Worksheet Functions 70 May 21st 23 07:43 PM
Lookup mulitple values and return one Jim Excel Worksheet Functions 1 March 23rd 06 03:23 PM
Return entries from one named range based on the contents of another Sam Crump Excel Worksheet Functions 1 March 6th 06 04:00 PM
return mulitple values Help!!! Excel 2003 Bob B Excel Discussion (Misc queries) 2 February 14th 06 02:01 PM
Return cell contents based on conditional lookup jarviscars Excel Worksheet Functions 15 August 5th 05 08:05 AM


All times are GMT +1. The time now is 01:16 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"