In cell code ::: Count # of times a name occurs in range, then count next column

IGPOD

New Member
Joined
May 16, 2014
Messages
20
This sounds confusing, but I have a range named "Names2" I want to count how many time a specific name populates inside that range and then count the next column.

I've provided picture to help. I only need the solution for cell L4... I've tried and tried but continue to fail. Thanks in advance for the assistance!!

Example.png
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Try:

Book2
ABCDEFGHIJKLMNOP
1
2
3YesNoMaybeUnknownTentative
4NameAnswerNameAnswerNameAnswerBob20010
5BobYesEarlNoLisaYesLisa11000
6LisaNoSamanthaYesBobYesGreg00100
7GregMaybeBobUnknownJuneYesSusan10010
8SusanUnknownEricYesSamanthaTentativeSamantha10002
9SamanthaTentativeJuneYesSusanYesEarl01000
10Eric10000
11June20000
12
Sheet1
Cell Formulas
RangeFormula
L4:P11L4=COUNTIFS(Names2,$K4,OFFSET(Names2,,1),L$3)
Named Ranges
NameRefers ToCells
Names2=Sheet1!$C$4:$H$9L4:P11


If you have the dynamic array functions, you can do this in a single formula. It would help if you updated your profile to show the version of Excel you're using.
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

If you have 365 with the latest functions, another option is
Excel Formula:
=COUNTIFS(DROP(Names2,,-1),K4:K11,DROP(Names2,,1),L3:P3)
 
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,971
Members
452,371
Latest member
Frana

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