Sum up the values from one sheet and add them to another following certain conditions 2

Status
Not open for further replies.

An Quala

Board Regular
Joined
Mar 21, 2022
Messages
146
Office Version
  1. 2021
Platform
  1. Windows
Hello @Peter_SSs Sorry I had to add few more details in the last query because last time it would not possible to focus on tiny details in post #5900910,

So I need to add these details,

1- Before summing up it should also check in Sheet "BOOK1" Column R,S,T to be "enabled", if not, ignore the values.

2- Add one more column which Sum up no of correspondence of that keyword in Column "Campaign Name (Information Only" (L) for example "ABC" occurs just 1 time in the sample data (screenshot attached) and columns R and S = "enabled" and Column B = "Campaign", so for row 3, it will look something like this, B3 = Campaign, R3 = enabled, S3 = enabled, L3 contained "ABC", then 1 occurrence and so on.

3- The number of rows in the data is not fixed, in this case it is 61, but it should be unlimited.

Thank you.

BOOK1

Book3
BLRSTAHAIAJAKALAMAN
1EntityCampaign Name (Informational only)StateCampaign State (Informational only)Ad Group State (Informational only)ImpressionsClicksClick-through RateSpendSalesOrdersUnits
2KeywordCampaign ABCenabledenabledenabled1001010502.00%10.00100.0056
3CampaignCampaign ABCenabledenabled1001010602.00%10.00100.0056
4Bidding AdjustmentCampaign ABCenabled1001010702.00%10.00100.0056
5Bidding AdjustmentCampaign ABCenabled1001010802.00%10.00100.0056
6Ad GroupCampaign ABCenabledenabledenabled1001010902.00%10.00100.0056
7Product AdCampaign ABCenabledenabledenabled1001011002.00%10.00100.0056
8KeywordCampaign ABCenabledenabledenabled1001011102.00%10.00100.0056
9KeywordCampaign ABCenabledenabledenabled1001011202.00%10.00100.0056
10KeywordCampaign ABCenabledenabledenabled1001011302.00%10.00100.0056
11KeywordCampaign ABCenabledenabledenabled1001011402.00%10.00100.0056
12Product TargetingCampaign ABCenabledenabledenabled1001011502.00%10.00100.0056
13CampaignCampaign ABCpausedpaused1001011602.00%10.00100.0056
14Bidding AdjustmentCampaign ABCpaused1001011702.00%10.00100.0056
15Bidding AdjustmentCampaign ABCpaused1001011802.00%10.00100.0056
16Ad GroupCampaign ABCenabledpausedenabled1001011902.00%10.00100.0056
17Product AdCampaign ABCenabledpausedenabled1001012002.00%10.00100.0056
18KeywordCampaign ABCenabledpausedenabled1001012102.00%10.00100.0056
19KeywordCampaign ABCpausedpausedenabled1001012202.00%10.00100.0056
20KeywordCampaign ABCpausedpausedenabled1001012302.00%10.00100.0056
21KeywordCampaign ABCpausedpausedenabled1001012402.00%10.00100.0056
22KeywordCampaign DEFpausedpausedenabled1001012502.00%10.00100.0056
23KeywordCampaign DEFenabledpausedenabled1001012602.00%10.00100.0056
24KeywordCampaign DEFenabledpausedenabled1001012702.00%10.00100.0056
25KeywordCampaign DEFenabledpausedenabled1001012802.00%10.00100.0056
26KeywordCampaign DEFenabledpausedenabled1001012902.00%10.00100.0056
27KeywordCampaign DEFenabledpausedenabled1001013002.00%10.00100.0056
28KeywordCampaign DEFenabledpausedenabled1001013102.00%10.00100.0056
29KeywordCampaign DEFenabledpausedenabled1001013202.00%10.00100.0056
30KeywordCampaign DEFenabledpausedenabled1001013302.00%10.00100.0056
31KeywordCampaign DEFenabledpausedenabled1001013402.00%10.00100.0056
32KeywordCampaign DEFenabledpausedenabled1001013502.00%10.00100.0056
33KeywordCampaign DEFenabledpausedenabled1001013602.00%10.00100.0056
34KeywordCampaign DEFenabledpausedenabled1001013702.00%10.00100.0056
35KeywordCampaign DEFenabledpausedenabled1001013802.00%10.00100.0056
36KeywordCampaign DEFenabledpausedenabled1001013902.00%10.00100.0056
37KeywordCampaign DEFenabledpausedenabled1001014002.00%10.00100.0056
38KeywordCampaign DEFenabledpausedenabled1001014102.00%10.00100.0056
39KeywordCampaign DEFenabledpausedenabled1001014202.00%10.00100.0056
40KeywordCampaign DEFenabledpausedenabled1001014302.00%10.00100.0056
41KeywordCampaign DEFenabledpausedenabled1001014402.00%10.00100.0056
42KeywordCampaign DEFenabledpausedenabled1001014502.00%10.00100.0056
43KeywordCampaign DEFenabledpausedenabled1001014602.00%10.00100.0056
44KeywordCampaign DEFenabledpausedenabled1001014702.00%10.00100.0056
45KeywordCampaign DEFenabledpausedenabled1001014802.00%10.00100.0056
46KeywordCampaign DEFenabledpausedenabled1001014902.00%10.00100.0056
47KeywordCampaign DEFenabledpausedenabled1001015002.00%10.00100.0056
48KeywordCampaign DEFenabledpausedenabled1001015102.00%10.00100.0056
49KeywordCampaign DEFenabledpausedenabled1001015202.00%10.00100.0056
50KeywordCampaign DEFenabledpausedenabled1001015302.00%10.00100.0056
51KeywordCampaign DEFenabledpausedenabled1001015402.00%10.00100.0056
52KeywordCampaign GHIenabledpausedenabled1001015502.00%10.00100.0056
53KeywordCampaign GHIenabledpausedenabled1001015602.00%10.00100.0056
54KeywordCampaign GHIenabledpausedenabled1001015702.00%10.00100.0056
55KeywordCampaign GHIenabledpausedenabled1001015802.00%10.00100.0056
56KeywordCampaign GHIenabledpausedenabled1001015902.00%10.00100.0056
57KeywordCampaign GHIenabledpausedenabled1001016002.00%10.00100.0056
58KeywordCampaign GHIenabledpausedenabled1001016102.00%10.00100.0056
59KeywordCampaign GHIenabledpausedenabled1001016202.00%10.00100.0056
60KeywordCampaign GHIenabledpausedenabled1001016302.00%10.00100.0056
61KeywordCampaign GHIenabledpausedenabled1001016402.00%10.00100.0056
BOOK1


Control Panel

Book3
ABCDEFGHIJ
1EntityCampaign Name (Informational only)ImpressionsClicksClick-through RateSpendSalesOrdersUnitsNumber of Campaigns
2KeywordABC900901045.18909004554
3KeywordDEF30003004185.63003000150180
4KeywordGHI10001001595.210010005060
5Product TargetingABC10010115.021010056
Control Panel
Cell Formulas
RangeFormula
C2:I5C2=SUM(FILTER(INDEX(BOOK1!$AH$2:$AN$61,0,MATCH(C$1,BOOK1!$AH$1:$AN$1,0)),((BOOK1!$B$2:$B$61=$A2)*ISNUMBER(SEARCH(" "&$B2&" "," "&BOOK1!$L$2:$L$61&" "))),0))
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Status
Not open for further replies.

Forum statistics

Threads
1,224,823
Messages
6,181,178
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