Adding numerous values per unique occurance

vegan70

New Member
Joined
Jun 13, 2008
Messages
12
Hi again

I have a list of reasons for sick leave in column G, and the amount of days lost for each occurance of that reason in Column F:

F G
4 Anxiety
5 Back problems
3 Gastric
76 Back problems
4 Infectious disease
5 Gastric
8 Fracture
3 Anxiety
6 Infectious disease

I have set up a list of reasons in a separate sheet, and now want to search the main sheet for each "reason" and sum the total days lost for each one? I've done it before but am having a total mind blank today! (it is Friday...)

Any help you can offer will be much appreciated!

Val :confused:
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

DonkeyOte

MrExcel MVP
Joined
Sep 6, 2002
Messages
9,123
assuming reason in A1 on summary sheet then in B1

=SUMIF(datasheet!$G:$G,$A1,datasheet!$F:$F)

copy down for each reason on your summary sheet
 

vegan70

New Member
Joined
Jun 13, 2008
Messages
12
It worked! thank you thank you thank you, may you be blessed beyond compare :)
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,290
Messages
5,836,445
Members
430,430
Latest member
Tomexcel2022

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