COUNTIFS Function

bflan0524

Board Regular
Joined
Oct 7, 2016
Messages
193
Office Version
  1. 2010
hello, need a formula for the following, i think its countifs but i keep messing up

column A has a list of Enterprise ID's for example E11111111
Column B has account numbers associated with Column A

so there could be 5 account numbers associated with column A for example or just one

on a separate sheet i took a list of all the enterprise IDs and i wanted to do a count on how many Account #s are associated with those ID's

i did put ==countifs('Locked Portfolio'!A:A,Sheet1!A1,'Locked Portfolio'!B:B)

not sure if that makes sense, locked portfolio is the name of the sheet i put all the unique enterprise IDs on

thanks
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Is this what your data looks like?

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]E11111111[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]E11111111[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]E11111111[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]E11111111[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]E22222222[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]E22222222[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]E33333333[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]

if so try this

=COUNTIF('Locked Portfolio'!A:A,Sheet1!A1)
 
Upvote 0
Is this what your data looks like?

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]E11111111[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]E11111111[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]E11111111[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]E11111111[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]E22222222[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]E22222222[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]E33333333[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]

if so try this

=COUNTIF('Locked Portfolio'!A:A,Sheet1!A1)

no it looks more like this

[TABLE="width: 193"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]E00000000023 [/TD]
[TD]A000001234567[/TD]
[/TR]
[TR]
[TD]E00000000040[/TD]
[TD]A000000234567[/TD]
[/TR]
[TR]
[TD]E00000000094[/TD]
[TD]A000000034567[/TD]
[/TR]
[TR]
[TD]E00000000098[/TD]
[TD]A000000005678[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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