ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   I need to evalute two cells and return a result (https://www.excelbanter.com/excel-worksheet-functions/223974-i-need-evalute-two-cells-return-result.html)

DP

I need to evalute two cells and return a result
 
I am trying to evaluate two cells (ie: A2, B2)
Cell A2 data can be: yes,No,NA
Cell B2 data can be: yes,No,NA

I need to have Cell C3 return a result based on the combination of the A2,B2
data.
i.e.: If A2="Yes" and B2="No", then C2="V" or "IC" or "AT" and so on...

Thanks,


Mike H

I need to evalute two cells and return a result
 
Try this

Hi,

Well we can only guess what result you expect from 'and so on' but there are
6 combinations of yes/no/na and one way is to put them in a 2 column table
like this and I used column L and M. Column L are the combinations and M are
what you want to return.

Col L Col M
yesyes aa
yesno bb
yesNA cc
nono dd
nona ee
nana ff

You can then use vlookup

=VLOOKUP(A2&B2,L1:M6,2,FALSE)

Mike



"dp" wrote:

I am trying to evaluate two cells (ie: A2, B2)
Cell A2 data can be: yes,No,NA
Cell B2 data can be: yes,No,NA

I need to have Cell C3 return a result based on the combination of the A2,B2
data.
i.e.: If A2="Yes" and B2="No", then C2="V" or "IC" or "AT" and so on...

Thanks,



All times are GMT +1. The time now is 02:43 PM.

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