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

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
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,224,827
Messages
6,181,197
Members
453,021
Latest member
pingpong7117

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