Assistance Needed With Determining Which Functions To Use!

ninja_turtle

New Member
Joined
Sep 7, 2017
Messages
1
Good Afternoon All,

I generally have been able to learn a lot from this forum and get all my questions answered just from reading other threads. However I am stuck and wanted to see if the community can help me out!

Here's a quick and dirty example of my worksheet:

Columns A - E contains lists of names:

[TABLE="class: grid, width: 100, align: left"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]joe[/TD]
[TD]tim[/TD]
[TD]bill[/TD]
[TD]joe[/TD]
[TD]luke[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]james[/TD]
[TD]lee[/TD]
[TD]bob[/TD]
[TD]bob[/TD]
[TD]roger[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]tim[/TD]
[TD]luke[/TD]
[TD]mark[/TD]
[TD]kevin[/TD]
[TD]ike[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]ike[/TD]
[TD]bob[/TD]
[TD]roger[/TD]
[TD]tim[/TD]
[TD]joe[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]kevin[/TD]
[TD]james[/TD]
[TD]joe[/TD]
[TD]scott[/TD]
[TD]mike[/TD]
[/TR]
</tbody>[/TABLE]










Elsewhere in my worksheet, I've used a formula to pull all of the names contained anywhere in Columns A - E and it looks like this:

[TABLE="class: grid, width: 100"]
<tbody>[TR]
[TD][/TD]
[TD]H[/TD]
[TD]I[/TD]
[TD]J[/TD]
[TD]K[/TD]
[TD]L[/TD]
[TD]M[/TD]
[TD]N[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD]joe[/TD]
[TD]tim[/TD]
[TD]bob[/TD]
[TD]mike[/TD]
[TD]roger[/TD]
[TD]kevin[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]joe[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]tim[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]bob[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]mike[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]roger[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]kevin[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

What I want my formula to do is, in cell J2, count how many columns (A - E) contain BOTH the names "tim" and "joe" . So it would return a number from 0 - 5. And in cell M4 it will count how many columns "roger" and "bob" both appear in, and so on.

I won't waste any more time trying to explain what functions I've tried with no success. Hopefully my example is clear enough. Thanks in advance for any help!
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Forum statistics

Threads
1,223,908
Messages
6,175,307
Members
452,633
Latest member
DougMo

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