How to...

David_Skov

Active Member
Joined
Jun 29, 2004
Messages
267
add up data so that I handle categories instead of single goods?

I have my database with retailname, storeID, SKU-ID, SKU-name, Turnover, margin etc.

I would like to make categories so that I can add together income from all goods in same category. If I have:

Toothpaste Whitening and Toothpaste Flour how do I gather them into My category Toothpaste.

Each good has uniqe ID

In advance tx :pray:
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
in the table that describes the goods you will need to add a field to hold the category, you may want to make this a look up from a category table if you want to be able to store details about the category and it will make it easy for you to limit the number of categories that can be used.

once you have the category info added you can group on that rather than the Goods ID.

HTH

Peter
 
Upvote 0
I don't get that :oops:

The reason is that the names might change but the EAN or produktID code do not change.

Anyway, you say I can make it a look up? how?

bat17 said:
in the table that describes the goods you will need to add a field to hold the category, you may want to make this a look up from a category table if you want to be able to store details about the category and it will make it easy for you to limit the number of categories that can be used.

once you have the category info added you can group on that rather than the Goods ID.

HTH

Peter
 
Upvote 0
Ok now I made my categories and it seems to work fine, but what formula in my query to use if I wants to sum income/turnover from each category. I have a coloum in my query which marks/shows each SKUs relation to a category.

Is it DSum or?
 
Upvote 0
You just need to use grouping.

Create a new query add your table, add the category field, income field and turnover field.

Right click and select totals (or go View>Totals. From the dropdown which should appear change Group to Sum for income and turnover.

Now run your query.
 
Upvote 0

Forum statistics

Threads
1,221,813
Messages
6,162,117
Members
451,743
Latest member
matt3388

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