ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Formula (https://www.excelbanter.com/excel-discussion-misc-queries/96935-formula.html)

TQ

Formula
 
Can anyone show me the fomula under the condition of below ?

Column A1 got a list. List data = A,B,C
Column B1 will get info from another colum according what A1 appear.
Column E1=ABC
Column E2=BCD
Column E3=CDE

If,
A1=A
B1 will get answer from E1
if,
A1=B
B1 will get answer from E2
if,
A1=C
B1 will get answer from E3

Thanks

Scott

Formula
 
=If(A1="A",E1,If(A1="B",E2,E3))

Or dont use the columns

=If(A1="A","ABC",If(A1="B","BCD","CDE"))



"TQ" wrote:

Can anyone show me the fomula under the condition of below ?

Column A1 got a list. List data = A,B,C
Column B1 will get info from another colum according what A1 appear.
Column E1=ABC
Column E2=BCD
Column E3=CDE

If,
A1=A
B1 will get answer from E1
if,
A1=B
B1 will get answer from E2
if,
A1=C
B1 will get answer from E3

Thanks


Scott

Formula
 
Only use quotes "A" for text for numbers just put the number.

=If(A1="A",E1,If(A1="B",E2,E3))

Or dont use the columns

=If(A1="A","ABC",If(A1="B","BCD","CDE"))


"TQ" wrote:

Can anyone show me the fomula under the condition of below ?

Column A1 got a list. List data = A,B,C
Column B1 will get info from another colum according what A1 appear.
Column E1=ABC
Column E2=BCD
Column E3=CDE

If,
A1=A
B1 will get answer from E1
if,
A1=B
B1 will get answer from E2
if,
A1=C
B1 will get answer from E3

Thanks


Roger Govier

Formula
 
Hi

One way, provided the entries in A1 are always going to be single alpha
characters
=INDEX(E1:E3,(CODE(A1)-64))

--
Regards

Roger Govier


"TQ" wrote in message
...
Can anyone show me the fomula under the condition of below ?

Column A1 got a list. List data = A,B,C
Column B1 will get info from another colum according what A1 appear.
Column E1=ABC
Column E2=BCD
Column E3=CDE

If,
A1=A
B1 will get answer from E1
if,
A1=B
B1 will get answer from E2
if,
A1=C
B1 will get answer from E3

Thanks





All times are GMT +1. The time now is 10:59 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com