Need Help With Formula To Sum If Criteria Is Met

jimmyj352

Board Regular
Joined
Jul 5, 2002
Messages
72
Hi everyone,

I don't get to work with functions in Excel very often and I know there are plenty out there to accomplish whatever you need - the trick is finding the right one!!

Below is the spreadsheet I am creating. What I'm trying to do is have a function in C4, C5, & C6 that will look at the cells that match the corresponding text under Abscence Reason and then sum the hours in the cell to the right in column F.

For example, C4 should see there is only 1 Personal day being used and then return a result of 4 hours. C5 should see 3 Vacation days being used, add up the corresponding values and return 20. C6 for Sick days should return 8.

I have a feeling that I should be using a combination of a AND, IF, and one of the counting functions, but I'm not real sure how to do it.

Thanks for your help!

-- Jim
BPI Attendance Report.xls
ABCDEFG
1Attendance Year Ending:
2
3TypeAllowedTakenScheduledRemaining
4Personal40.001.0039.00
5Sick40.001.0039.00
6Vacation80.003.0077.00
7
8DateAbsence ReasonHoursPaid/Unpaid
9Tuesday, January 06, 2004Personal4.00
10Wednesday, May 12, 2004Vacation4.00
11Thursday, May 13, 2004Vacation8.00
12Friday, May 14, 2004Vacation8.00
13Saturday, May 15, 2004Sick8.00
14
Template
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Forum statistics

Threads
1,214,978
Messages
6,122,549
Members
449,089
Latest member
davidcom

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