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

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

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 :)
 

Watch MrExcel Video

Forum statistics

Threads
1,130,119
Messages
5,640,218
Members
417,131
Latest member
Seanr19871

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