![]() |
|
#1
|
|||
|
|||
![]()
When the list of values to check is not too long, and you don't foresee a need to edit formula in future:
Code:
=IF(ISERROR(MATCH(A2,{"R102";"8500";"8501";"8502";"68"};0)),"","NSA") Code:
=IF(ISERROR(MATCH(A2,CheckVal,0)),"","NSA") I'm not sure about array delimiter in 1st formula for US setings (is it comma or semicolon) - you have to check it yourself! In case you need to return different values for different check lists, then VLOOKUP() is better solution. Enter check list values and according return values into 2-column table (e.g. CheckValue, ReturnValue), and define table's datarange as Named Range (e.g. nCheckTable), or define the table as Table (Insert > Table), e.g. tCheckTable The formula will be: Code:
=IFERROR(VLOOKUP(A2,nCheckTable,2,0)),"") Code:
=IFERROR(VLOOKUP(A2,tCheckTable,2,0)),"") |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Formula Copy Row 2 Row But Next Column In Formula From Another Tab | TimG | Excel | 3 | 04-16-2018 09:20 PM |
Help with Formula | Ragincajun22 | Excel | 1 | 08-24-2017 08:44 AM |
![]() |
innkeeper9 | Excel | 2 | 09-13-2016 08:59 PM |
Need help with dragging a formula and changing a reference column as I drag the formula. | LupeB | Excel | 1 | 10-22-2015 03:02 PM |
Formula help | furface00 | Excel | 10 | 02-26-2012 05:34 AM |