Match with Multiple criteria in the same column

Scotster

Board Regular
Joined
May 29, 2017
Messages
54
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
I'm pretty sure I've done this before but I can't for the life of me figure out why this won't work. I'm looking to match the column number where row 1 and row 3 match certain values.

individually they work fine:

Code:
=MATCH(TRUE,('DOC Table'!$A$3:$AK$3=$C22),0) = 13
Code:
=MATCH(TRUE,('DOC Table'!$A$1:$AK$1=$B22),0) = 13

Joined together I don't get 13 as the result (I tried a few variations):

Code:
=MATCH(1,('DOC Table'!$A$3:$AK$3=$B22)*('DOC Table'!$A$1:$AK$1=$C22),0) = "N/A"
Code:
=MATCH(True,('DOC Table'!$A$3:$AK$3=$B22)*('DOC Table'!$A$1:$AK$1=$C22),0)= "N/A"
Code:
=MATCH(1,('DOC Table'!$A$1:$AK$3=$B22)*('DOC Table'!$A$1:$AK$3=$C22),0)= "N/A"
Code:
=MATCH(True,('DOC Table'!$A$1:$AK$3=$B22)*('DOC Table'!$A$1:$AK$3=$C22),0)= "N/A"

Can someone point me in the right direction. If I need to upload a specific example I can, I just thought it would be obvious what I was doing wrong.
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Update.

Solved the problem. I'm not sure why this has happened, but:

Code:
=MATCH(TRUE,('DOC Table'!$A$3:$AK$3=$C22),0) = 13

For whatever reason the above on it's own returns the correct column. But the actual query is based on a decimal value. So, for the multiple criteria I had to use the following:

Code:
=MATCH(1,('DOC Table'!$A$3:$AK$3=$B22)*('DOC Table'!$A$1:$AK$1=VALUE($C22)),0)
 
Upvote 0
Solution

Forum statistics

Threads
1,214,954
Messages
6,122,462
Members
449,085
Latest member
ExcelError

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top