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

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
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
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,695
Members
448,979
Latest member
DET4492

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