summing total hours based on name in different column...?

mcrawr

New Member
Joined
Aug 9, 2012
Messages
2
hey guys, glad to know there are wonderful forums for random questions like this. i'm not bad at excel, but my goodness am i ever stumped right now.

i have in a workbook (weekending date whatever) MANY sheets (per job) in which i have a list of men's names and occupation codes (Lastname, Firstname | Pipefitter), then the columns SUN OT | MON REG | MON OT | TUES REG | TUES OT | etc.)

On one of the last sheets in the workbook i have a totalling sheet where it (should) grab each man's hours from each sheet and total per day, then a total for the week.

The issue i am having is because i have tables holding the information on each sheet, the totalling sheet doesn't hold the hours to the correct man if we sort alphabetically Z-A or mix it up any. On each particular job sheet if we sort Z-A or A-Z the hours remain with the man's name. Example, on job sheet 1, if someone with the lastname A has 4 hours on SUN OT, and then we sort Z-A, those 4 hours would be near the bottom of the list... but on the job totalling sheet it also moves to the bottom of the sheet even though the names remain in alphabetical order :(

So, upon this perdicament, I began googling. I came up with this DREADFUL formula that doesn't even work. Essentially, what i was trying to get the cell to do is to total all the "SUN OT" for example, IF $A$6 was the same as the sheet it found it on? does that make sense? does that resolve the problem? I don't know :S

Feel free to call me any name in the book. There are literally, like, 50ish job sheets. LOL. Maybe its time for the loony bin.:rofl: in anycase, HELP!!!

this is what happened:

=SUMIFS((Table211[[#This Row],[SUN OT]]+Table011[[#This Row],[SUN OT]]+Table3711[[#This Row],[SUN OT]]+Table111[[#This Row],[SUN OT]]+Table3811[[#This Row],[SUN OT]]+Table3911[[#This Row],[SUN OT]]+Table4011[[#This Row],[SUN OT]]+Table9917[[#This Row],[SUN OT]]+Table9916[[#This Row],[SUN OT]]+Table9915[[#This Row],[SUN OT]]+Table9914[[#This Row],[SUN OT]]+Table9913[[#This Row],[SUN OT]]+Table9912[[#This Row],[SUN OT]]+Table31134[[#This Row],[SUN OT]]+Table311[[#This Row],[SUN OT]]+Table1111[[#This Row],[SUN OT]]+Table411[[#This Row],[SUN OT]]+Table511[[#This Row],[SUN OT]]+Table611[[#This Row],[SUN OT]]+Table811[[#This Row],[SUN OT]]+Table711[[#This Row],[SUN OT]]+Table911[[#This Row],[SUN OT]]+Table1011[[#This Row],[SUN OT]]+Table1411[[#This Row],[SUN OT]]+Table1511[[#This Row],[SUN OT]]+Table1611[[#This Row],[SUN OT]]+Table2911[[#This Row],[SUN OT]]+Table4111[[#This Row],[SUN OT]]+Table1711[[#This Row],[SUN OT]]+Table1811[[#This Row],[SUN OT]]+Table1911[[#This Row],[SUN OT]]+Table2011[[#This Row],[SUN OT]]+Table2111[[#This Row],[SUN OT]]+Table2211[[#This Row],[SUN OT]]+Table1311[[#This Row],[SUN OT]]+Table3611[[#This Row],[SUN OT]]+Table2311[[#This Row],[SUN OT]]+Table2411[[#This Row],[SUN OT]]+Table2511[[#This Row],[SUN OT]]+Table2611[[#This Row],[SUN OT]]+Table2711[[#This Row],[SUN OT]]+Table2811[[#This Row],[SUN OT]]+Table3011[[#This Row],[SUN OT]]+Table3111[[#This Row],[SUN OT]]+Table4211[[#This Row],[SUN OT]]+Table3211[[#This Row],[SUN OT]]+Table3311[[#This Row],[SUN OT]]+Table3411[[#This Row],[SUN OT]]+Table3511[[#This Row],[SUN OT]]+Table4311[[#This Row],[SUN OT]]+Table4411[[#This Row],[SUN OT]]+Table4511[[#This Row],[SUN OT]]+Table4611[[#This Row],[SUN OT]]+Table4711[[#This Row],[SUN OT]]+Table4811[[#This Row],[SUN OT]]+Table4911[[#This Row],[SUN OT]]+Table5011[[#This Row],[SUN OT]]),Table11264[[#This Row],[NAME]],'Names & Codes'!A6:A700)
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

Forum statistics

Threads
1,223,240
Messages
6,170,951
Members
452,368
Latest member
jayp2104

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