ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Referencing lists in a nested IF formula (https://www.excelbanter.com/excel-worksheet-functions/37827-referencing-lists-nested-if-formula.html)

JTinAtlanta

Referencing lists in a nested IF formula
 
All,

I am trying to create a formula that will evaluate a cell against 3 lists,
populating another cell with the value assigned to the matching list or
feeding it with a 0 if it doesn't match values in any of the lists. Is this
possible? Thank you in advance!!!

Cell_1 : 'Manufacturing'
Cell_2 : <cell where returned value needs to be placed

LIST_1 LIST_2 LIST_3
'Shipping' 'Medical' 'Construction'
'Engineering' 'Banking' 'Entertainment'
'Manufacturing

Cell_3 = 1 (LIST_1 score)
Cell_4 = 5 (LIST_2 score)
Cell_5 = 9 (LIST_3 score)

Logic:
IF Cell_1 in LIST_1, then Cell_2 = Cell_3 ELSE
IF Cell_2 in LIST_2, then Cell_2 = Cell_4 ELSE
IF Cell_3 in LIST_3, then Cell_2 = Cell_5 ELSE
Cell_2 = 0
END-IF
END-IF
END-IF

Regards,

JT

Biff

See your later post

Biff

"JTinAtlanta" wrote in message
...
All,

I am trying to create a formula that will evaluate a cell against 3 lists,
populating another cell with the value assigned to the matching list or
feeding it with a 0 if it doesn't match values in any of the lists. Is
this
possible? Thank you in advance!!!

Cell_1 : 'Manufacturing'
Cell_2 : <cell where returned value needs to be placed

LIST_1 LIST_2 LIST_3
'Shipping' 'Medical' 'Construction'
'Engineering' 'Banking' 'Entertainment'
'Manufacturing

Cell_3 = 1 (LIST_1 score)
Cell_4 = 5 (LIST_2 score)
Cell_5 = 9 (LIST_3 score)

Logic:
IF Cell_1 in LIST_1, then Cell_2 = Cell_3 ELSE
IF Cell_2 in LIST_2, then Cell_2 = Cell_4 ELSE
IF Cell_3 in LIST_3, then Cell_2 = Cell_5 ELSE
Cell_2 = 0
END-IF
END-IF
END-IF

Regards,

JT





All times are GMT +1. The time now is 10:46 AM.

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