Year's Summary Sheet with worksheet formulae

Jmoz092

Board Regular
Joined
Sep 8, 2017
Messages
182
I have a summary sheet that I need to display a sum on, for each employees' mileage for the month. There are worksheets in the workbook for each day in each month. Each worksheet is titled mm-dd-yy.


The summary data layout that we need is:

BCFI
Employee NameJanuaryFebruaryMarch
AAA, Employee
BBB, Employee
CCC, Employee

<tbody>
</tbody>

The employee Names are in alphabetical order on the summary sheet in column B. The list of employee names is populated by cell references to a worksheet named "Data" where all employee names are dynamically listed in A2:A101 and alphabetically sorted at Workbook_Open. In C3:C102 of the summary sheet, we need to add in the value of E3:E27 on the daily worksheets (represented by the table below) that match the employee names in the daily worksheets, in A3:A27 which may not be alphabetized like the Summary worksheet.


ABCDE
Employee NameDateMileageRateTotal
DDD, Employee01-01-18500.54$27.00
NNN, Employee01-01-181000.54$54.00
BBB, Employee01-01-181000.54$54.00
AAA, Employee01-01-18500.54$27.00
ZZZ, Employee01-01-18100.54$5.40

<tbody>
</tbody>

On a Table of contents page, there are hyperlinks to each daily worksheet and the text displayed is equal to the names of each worksheet. On the TOC worksheet, each month is listed in A1:L1. Each day in each month is listed down the appropriate column. I've tried to select the cells in each month and rename them as a range (i.e. "__January", "__February", "__March", etc, etc) to use in a formula for the summary worksheet. I couldn't get this to work with :

Code:
[COLOR=#000000][FONT='inherit'][SIZE=3]{=VLOOKUP([COLOR=#0057d6]B3[/COLOR],INDIRECT[COLOR=#006107]([/COLOR]"'"&INDEX[COLOR=#ab30d6]([/COLOR]_January,MATCH[COLOR=#a54a29]([/COLOR]1,--[COLOR=#33af4a]([/COLOR]SUMIF[COLOR=#ff9c1b]([/COLOR]INDIRECT[COLOR=#fe4fdd]([/COLOR]"'"&_January&"'!$A$3:$E$101"[COLOR=#fe4fdd])[/COLOR],[COLOR=#0057d6]B3[/COLOR][COLOR=#ff9c1b])[/COLOR]>0[COLOR=#33af4a])[/COLOR],0[COLOR=#a54a29])[/COLOR][COLOR=#ab30d6])[/COLOR]&"'!$A$3:$E$101"[COLOR=#006107])[/COLOR],5,FALSE)}[/SIZE][/FONT][/COLOR]

I thought that maybe the text representing the worksheet names, as hyperlinks was the problem...so I made a list of the sheet names on the table of contents page as plain text, in Q2:Q32 (for January). I then selected that range and named it "_January". I also couldn't get this to work in a formula.

Code:
[COLOR=#000000][FONT='inherit'][SIZE=3]=SUMPRODUCT(SUMIF[COLOR=#006107]([/COLOR]INDIRECT[COLOR=#ab30d6]([/COLOR]"'"&_January&"'!"&"A3:A27"[COLOR=#ab30d6])[/COLOR],[COLOR=#0057d6]B3[/COLOR],INDIRECT[COLOR=#ab30d6]([/COLOR]"'"&_January&"'!"&"E3:E27"[COLOR=#ab30d6])[/COLOR][COLOR=#006107])[/COLOR])[/SIZE][/FONT][/COLOR]

So basically, I need help displaying if an employee's name appears on any daily worksheets of a month, tell me the total $ owed to them for that month's mileage, for each month.
 
Last edited:

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Forum statistics

Threads
1,214,645
Messages
6,120,711
Members
448,984
Latest member
foxpro

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