Sum over a variable column - defined by the first row

fab54

New Member
Joined
Nov 14, 2008
Messages
30
Hi all,
Here is my issue:

I have few columns (let's say 10). In the first row of eacj column I have the name of a category (e.g. Cat A, Cat B, Cat C, etc) and below I have a bunch of numbers.

I would like to create a summary sheet where I add the numbers for each category.
The category only appears in one column but the problem is that the categories are not in a fixed column and could be in a different order.

Ideally, to get the total for Cat A I would like to use a MATCH() function to determine in which column Cat A is and them use the SUM() over that column. However I don't know how to combine these two functions.

Any ideas?

Many thanks for your help
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Forum statistics

Threads
1,136,331
Messages
5,675,157
Members
419,552
Latest member
jsanjur

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
Top