retrieve values from a chart based on reference and sum them up

enternetjohan

New Member
Joined
Sep 14, 2015
Messages
12
I have a chart with two columns, A and B.
In column A, I will input one of three values; "A", "C" or "D".
In column B, there will be numerical values based on other calculations, either negative values or positive values.
I.e. each row will contain one value in column A; "A", "C" or "D" and one numerical value in column B.
Lets say the chart contains 50 rows, Column B:s numerical values is summed up in row 51.

Now, I want to create formulas in a cell
C1 where all numerical values in column B for instances of "A" in Column A are summed up separately
C2 where all instances of "C" are summed up
C3 where all instances of "D" are summed up.

The total sums of C1, C2 and C3 will equal the totalt sum for column B.

Any ideas how I go about? I guess some type of INDEX-formula? All help will be appreciated! Thanks
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,214,646
Messages
6,120,715
Members
448,985
Latest member
chocbudda

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