Need help with Attendance array formula...

brockk

Board Regular
Joined
Jul 1, 2006
Messages
170
Office Version
  1. 2013
Platform
  1. Web
hi everyone!

I'm trying to keep a tab on the employee's attendance where I have a worksheet with 24 columns (2 columns per month of the year). The 1st of the two columns is used for the attendance code and the 2nd column of the two is to represent the # of hours of absence for that particular date.

The problem:

I need a formula for the summary area that can sum all the hours pertaining to the particular code used. I left a sample of what I am trying to achieve in this worksheet. Any help or ideas is truely appreciated.
Book1
ABCDEFGHIJKLMNOPQRSTUVWXY
1JANFEBMARAPRMAYJUNJULAUGSEPOCTNOVDEC
2
31
42S8
53S4.5
64S1.25
75FI8S4
86P3.5
927V8
1028V8L0.5
1129V8
1230V8
1331V8
14
15
16ABBREV.TL.DAYSTL.HRS.
17SICKS417.75<--------------needformula
18FAMILYILLNESSFI18
19LATEL10.5
20MILITARYLEAVEML00
21PERSONALP13.5
22VACATIONV540
Sheet1
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Assuming that H17:H22 contains the abbreviations, try...

J17, copied down:

=SUMIF($B$3:$X$13,H17,$C$3:$Y$13)

Hope this helps!
 
Upvote 0
Thanks for the reply Domenic...

It worked like a charm! Was wondering if there was actually any hope... Much grats!
 
Upvote 0

Forum statistics

Threads
1,214,830
Messages
6,121,835
Members
449,051
Latest member
excelquestion515

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