match two separate arrays with three individual cells

LuGyver

Board Regular
Joined
Mar 13, 2014
Messages
88
Office Version
  1. 2007
Platform
  1. Windows
This is an odd case I know, but given a ton of data in this sheet, I need to perform the goal without having to rearrange the data or use VB/macro.
The areas of concern are in bold red...
Trying to match E3:F7 with I7:R7 (in this case should = 0,1,3,4), and then see if those matches (0,1,3,4) are equal to either of A8 and/or B8 and/orC8 (in this case B8 = 0 and C8 = 3) and ultimately show the count of the matches in T7 = 2 match in this case.
Note: A8=5 is not found in E3:F7 and therefore does not match with I7:R7, however B8 and C8 does match the criteria.
ABCDEFGHIJKLMNOPQRST
1122770013874110
2654881020985221
31661
001311096302
43729
802420100413
51881
01353100024
62784
32064001135
79813
13
0751102462
85
03564186201050
9522580297300161

<tbody>
</tbody>

Thank you for your Help
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
What would be the expected result if in A8:C8 there were 0 0 3? Would the desired result be 2 or 3?

M.
 
Upvote 0
What would be the expected result if in A8:C8 there were 0 0 3? Would the desired result be 2 or 3?

M.

result would be 3. thank you for asking edit: 3 would be the max of course ;)
 
Last edited:
Upvote 0
Basically, you want to know how many in A8:C8 appears in both E3:F7 and I7:R7, right? Try this:

=SUMPRODUCT(--(COUNTIF(E3:F7,A8:C8)*COUNTIF(I7:R7,A8:C8)>0))
 
Upvote 0
Yes and at the same instance..., and you nailed it perfectly! Thank you so much!
 
Upvote 0

Forum statistics

Threads
1,214,584
Messages
6,120,387
Members
448,957
Latest member
Hat4Life

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