Jul 08 2020 02:27 AM
Hi, I'm looking for 2 formulas to compare a value against a table in excel to return 1) a match and 2) another value.
Below is an example of the excel table.
What should be the input formulas in the yellow highlighted field for expected result?
Thanks.
Jul 08 2020 04:29 AM - edited Jul 08 2020 04:29 AM
SolutionIf the layout of the data is similar to as per the screenshot below...
You may try these formulas to get the desired outputs...
In B8
=IF(COUNTIF(C2:H5,A8),"True","False")
In B9
=INDEX(B2:B5,AGGREGATE(15,6,1/(C2:H5=A9)*(ROW(C2:H5)-ROW(C2)+1),1))
Please refer to the attached for more details.
Jul 08 2020 09:15 AM
Jul 08 2020 07:09 PM - edited Jul 08 2020 07:11 PM
Jul 08 2020 04:29 AM - edited Jul 08 2020 04:29 AM
SolutionIf the layout of the data is similar to as per the screenshot below...
You may try these formulas to get the desired outputs...
In B8
=IF(COUNTIF(C2:H5,A8),"True","False")
In B9
=INDEX(B2:B5,AGGREGATE(15,6,1/(C2:H5=A9)*(ROW(C2:H5)-ROW(C2)+1),1))
Please refer to the attached for more details.