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

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.
Try:
Excel Formula:
=SUMIFS(E:E,C:C,I2)
 
Upvote 0
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: 2
Upvote 0
Oh I have made it work by updating your formula and changing I3 to the partial text word "*DORA*" or appropriate other text!

THANK YOU!!!
 
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,478
Messages
6,191,237
Members
453,649
Latest member
jtc19

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