CountIF Multiple Criteria

pyroto

New Member
Joined
Jun 21, 2018
Messages
16
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD] A[/TD]
[TD]B[/TD]
[TD] C[/TD]
[TD]D[/TD]
[TD] E[/TD]
[TD] F[/TD]
[/TR]
[TR]
[TD]Name[/TD]
[TD]Store #[/TD]
[TD]Number of Visits[/TD]
[TD][/TD]
[TD]Name[/TD]
[TD]Count of Visits[/TD]
[/TR]
[TR]
[TD]Joe[/TD]
[TD] 1542[/TD]
[TD]3[/TD]
[TD][/TD]
[TD]Joe[/TD]
[TD] 3[/TD]
[/TR]
[TR]
[TD]Joe[/TD]
[TD]1872[/TD]
[TD]4[/TD]
[TD][/TD]
[TD]Brad[/TD]
[TD] 2[/TD]
[/TR]
[TR]
[TD]Joe[/TD]
[TD]1932[/TD]
[TD]3[/TD]
[TD][/TD]
[TD]Sarah[/TD]
[TD] 3[/TD]
[/TR]
[TR]
[TD]Brad[/TD]
[TD]5323[/TD]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Brad[/TD]
[TD]2142[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sarah[/TD]
[TD]6745[/TD]
[TD]0[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sarah[/TD]
[TD]0896[/TD]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sarah[/TD]
[TD]3242[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sarah[/TD]
[TD]5735[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


For the Column F I would like to return the count of stores each person visited. So Looks for Joe in Column A and COUNTS > 0 in Column C.


Just having a brain lapse today.


Thanks in advance.
-Rob
 
Last edited:

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Hi,

If your Column B won't be duplicated for the same person for the same store:


Book1
ABCDEF
1NameStore #Number of VisitsNameCount of Visits
2Joe15423Joe3
3Joe18724Brad2
4Joe19323Sarah3
5Brad53232
6Brad21423
7Sarah67450
8Sarah8962
9Sarah32423
10Sarah57351
Sheet149
Cell Formulas
RangeFormula
F2=COUNTIFS(A$2:A$10,E2,C$2:C$10,"<>0")


Formula copied down.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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