Index Match offset?? but I'm clueless!! No idea how to start

walt1122

Active Member
Joined
Jun 6, 2002
Messages
318
Hi All, having trouble posting code, keep getting an error!, but...
I have 12 tabs labeled 1st qtr. 2003 through 4th qtr. 2005. Each tab has names and the time these people worked, in hours, for us. Different people different hours. I want to develop a summary sheet showing each person down the left hand side and the total number of hours charged against the "Master Trust" So for example, The person Mink Uaamnichai in cell B12 had all 100% of her hours against the master trust in D16. So I need to capture and combine from each tab the percentage of time against the trust for each person. thanks for any help cause I could really use it.
thanks

Walt
2003 - 2005 Time Summary.xls
BCDEFG
7MASTERNON-MASTERHOLIDAY,TOTAL
8DEPARTMENT MEMBERTRUSTTRUSTSICK, ETC.HOURS
9
10
11
12J. Burden5527726655.00
13
14% (Including Vacation, Holiday, Sick Time)84.2711.763.97100.00
15
16% (Excluding Vacation, Holiday, Sick Time)87.7612.240.00100.00
17
18
19D. Colby5631310586.00
20
21% (Including Vacation, Holiday, Sick Time)96.082.221.71100.00
22
23% (Excluding Vacation, Holiday, Sick Time)97.742.260.00100.00
24
25
26R.J. Diemer5482156625.00
27
28% (Including Vacation, Holiday, Sick Time)87.683.368.96100.00
29
30% (Excluding Vacation, Holiday, Sick Time)96.313.690.00100.00
31
4th Qtr. 2005
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
It's not clear to me what it is you'd like summed. First you say you'd like the 'total number of hours charged against the Master Trust' which tells me you want D12, but then you say that you 'need to capture and combine from each tab the percentage of time against the trust for each person' which is D16. Can you clarify? Also, is each sheet in the exact same format?
 
Upvote 0
Sorry, I was having trouble with the HTML?. But in this examle one name in particular is J. Burden. In D16 we see a percentage of hours 87.76% (% (Excluding Vacation, Holiday, Sick Time) worked and I would like to have a sheet show his name along with the other names on this sheet and all the other 11 sheets ( 1st qtr. 2003 - 4th qtr. 2005). All the sheets are set up the same that is one of the reasons I thought Index Match with an offset would work just don't know how to do it. I think I can figure it out with VLOOKUP with some additional work but it would be sloppy at best and just thought someone could offer some assistance with this request.

So the summary sheet would have the quarters across the top and the names down the side with their respecive quarterly totals next to them as in:
J. Burden 87.76%
D. Colby 97.74%
R.J.Deimer 96.31%

and so on...

thanks

Walt
 
Upvote 0
Assumptions:

On your summary sheet...

1) First row, starting at B1, contains the quarter/sheet name, such as 1st qtr. 2003, 2nd qtr. 2003, 3rd qtr. 2003, etc.

2) First column, starting at A2, contains the worker name

Formula:

B2, copied across and down:

=SUMIF(INDIRECT("'"&B$1&"'!B12:B26"),$A2,INDIRECT("'"&B$1&"'!D16:D30"))

Change the ranges accordingly.

Hope this helps!
 
Upvote 0
Hi Domenic, thanks for the help... one more favor, can you or someone explain to me how it works and then maybe I can figure out what is going wrong and why I'm getting the #REF! in I14 with the formula as: SUMIF(INDIRECT("'"&B$12&"'!B12:B26"),$B16,INDIRECT("'"&B$12&"'!D16:D30"))
thanks
Walt
2003 - 2005 Time Summary.xls
BCDEFGHI
12J. Burden5527726655.00OK
13
14% (Including Vacation, Holiday, Sick Time)84.2711.763.97100.00#REF!
15
16% (Excluding Vacation, Holiday, Sick Time)87.7612.240.00100.00
17
4th Qtr. 2005
 
Upvote 0
Make sure that B12, which contains the sheet name, matches the sheet name on the sheet tab exactly. See if there are any extra spaces, or whether you've ommitted the period, etc. Does this help?
 
Upvote 0
Hello again, Domenic, I'm not getting it. I don't understand the B12 reference. B12 is the guys name not the sheet name? So, I do apologize if I sound obtuse but I'm not following from your example.
I need to have the formula look for the persons name down the left hand side and give me the percentage from column D where it is the percentage % (Excluding Vacation, Holiday, Sick Time) in this case it is like this:


J.Burden is in B12 and below him in B16 is the wording
% (Excluding Vacation, Holiday, Sick Time) and from the formula in D16 we get the 87.76%. From the earlier sheet the same would hold true for the next two people.

D. Colby would be 97.74%

And

R.J.Deimer is 96.31%

So the summary sheet would have the quarters across the top and the names down the side with their respecive quarterly totals next to them as in:
J. Burden 87.76%
D. Colby 97.74%
R.J.Deimer 96.31%
for the quarter in question but then would show each of the additional quarters working off to the right.

the reason I think I want this code is to account for people's names and percentages over time who are here one quarter or two and gone the next. This way I could capture the percentages for the time they did work for us. Then maybe have an #N/A or something showing they were not included in the quarter.

thanks

Walt
 
Upvote 0
sure can but not much to see. As I mentioned I was trying to do it with VLOOKUP but thought there had to be a better way. Plus I have to figure out how to do the isserror and or ISNA to get rid of the #DIV/0 and #N/A

thanks

Walt
 
Upvote 0
On your summary sheet, enter the following formula in D2, copy down and across...

=SUMIF(INDIRECT("'"&D$1&"'!B12:B26"),$A2,INDIRECT("'"&D$1&"'!D16:D30"))

Make sure that there's a corresponding sheet for each sheet listed in the first row, D1:H1, and that the sheet names listed match the names in the sheet tabs exactly. Otherwise you'll get a #REF! error value.

Does this help?
 
Upvote 0

Forum statistics

Threads
1,203,460
Messages
6,055,556
Members
444,797
Latest member
18ecooley

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