Custom Aggregate using Words

agerrard

Active Member
Joined
Apr 4, 2005
Messages
407
Does anyone know how to build a dynamic custom aggregate to look up key words in item description. For example i want to build totals for Ginger Beer and Low Carb Beer that are found in each items description. So i will have 000s of rows (that contain products) and in column B there will be sales for each item (or product). So from that table i only want to sum or build totals for products that contain the text "Ginger Beer" and "Low Carb Beer". Does anyone have an idea ? Thanks!
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
You can use wildcards for the text. Here's a very simple example that hopefully matches what you were looking for.

Book1
ABCDE
1Product typeSalesTypeTotal
2Long way of saying Ginger Beer10Ginger beer60
3Another Ginger beer type20Low Carb Beer18
4Ginger beer30
5Low Carb Beer5
6Very Low Carb Beer6
7Even lower Low Carb Beer7
Sheet1
Cell Formulas
RangeFormula
E2:E3E2=SUMIFS($B$2:$B$7,$A$2:$A$7,"*" & D2 & "*")


P.S. It's always helpful if you tell us what version of Excel you are using. You can update your profile to show that information.
 
Upvote 0

Forum statistics

Threads
1,226,093
Messages
6,188,869
Members
453,505
Latest member
BigVince

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