VLookup and Count formula

khammonds294

New Member
Joined
Apr 4, 2019
Messages
8
I am trying to write a formula that adds total numbers from a column based on partial text matches that occur multiple times across many rows.

Main table contents:

(A) Campaign (B) Date(C) Description(D) Area(E) Click rates
StaffOctoberPolicyHR3
StudentDecemberPolicyHR2
StaffDecemberEventSocial4
StaffJanuary Training Development1
StudentJanuaryEventSocial7

I would like a formula that searches for specific words (such as Policy or Training in column (C) and then add up all of the Clicks (E) related to all rows containing that specific word, which would look like this:

Summary table:
(I) Theme(J) Number of times promoted (K) Total number of clicks
Policy25
Event211
Training11

So ideally a formula to generate the totals showing in column (K) automatically!

Can anyone help? Thank you!
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
doe sthis work
=COUNTIF($C$2:$C$6,I3)
=SUMIF($C$2:$C$6,I3,$E$2:$E$6)
Book4
ABCDEFGHIJKL
1(A) Campaign(B) Date(C) Description(D) Area(E) Click ratesSummary table:
2StaffOctoberPolicyHR3(I) Theme(J) Number of times promoted(K) Total number of clicks
3StudentDecemberPolicyHR2Policy25
4StaffDecemberEventSocial4Event211
5StaffJanuaryTrainingDevelopment1Training11
6StudentJanuaryEventSocial7
Sheet1
Cell Formulas
RangeFormula
J3:J5J3=COUNTIF($C$2:$C$6,I3)
K3:K5K3=SUMIF($C$2:$C$6,I3,$E$2:$E$6)
 
Upvote 0
Solution
hmm no these aren't working - I possibly over simplified my original query so I have attached a screen shot of my actual data. I think the tricky part is finding the common words across multiple rows and then adding all of the clicks associated with that word together!

The formula I am using in Column I is: =COUNTIF(C:C,"*DORA*") so now looking for a formula for Column J that will add all of the clicks associated with 'DORA' across all rows which is 7
 

Attachments

  • tracking stats.jpg
    tracking stats.jpg
    166.1 KB · Views: 1
Upvote 0
you are welcome
I dont know why - but sometimes i find (questions on forums) that "*DORA*" does not work and changing to
"*"&"DORA"&"*"
can fix the issue, as i say i dont know why - but it happens quite frequently
 
Upvote 0

Forum statistics

Threads
1,226,099
Messages
6,188,901
Members
453,510
Latest member
LarryWB423

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