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

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
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,223,908
Messages
6,175,304
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