#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JcR
 
Posts: n/a
Default IF..., then....

If value in cell a1 = value in cell a2 or a3 or a4, then display the value in
cell b2 in cell c2
If value in cell a1 = value in cell a5 or a6 or a7, then display the value
in cell b5 in cell c2
If value in cell a1 = value in cell a8 or a9, then display the
value in cell b8 in cell c2

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default IF..., then....

One way, assuming the checking is to be in the sequence as posted ..

Put in C2:

=IF(A1="","",
IF(OR(A1=A2,A1=A3,A1=A4),B2,
IF(OR(A1=A5,A1=A6,A1=A7),B5,
IF(OR(A1=A8,A1=A9),B8,""))))

--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"JcR" wrote in message
...
If value in cell a1 = value in cell a2 or a3 or a4, then display the value

in
cell b2 in cell c2
If value in cell a1 = value in cell a5 or a6 or a7, then display the value
in cell b5 in cell c2
If value in cell a1 = value in cell a8 or a9, then display the
value in cell b8 in cell c2



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Beege
 
Posts: n/a
Default IF..., then....

"JcR" wrote in message
...
If value in cell a1 = value in cell a2 or a3 or a4, then display the value
in
cell b2 in cell c2
If value in cell a1 = value in cell a5 or a6 or a7, then display the value
in cell b5 in cell c2
If value in cell a1 = value in cell a8 or a9, then display the
value in cell b8 in cell c2


=IF((OR(A1=A2,A1=A3,A1=A4)),B2,(IF((OR(A1=A5,A1=A6 ,A1=A7)),B5,(IF((OR(A1=A8,A1=A9)),B8,"")))))

Beege


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



All times are GMT +1. The time now is 07:48 AM.

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

About Us

"It's about Microsoft Excel"