Forum

Notifications
Clear all

Calculating totals across multiple workbooks

39 Posts
4 Users
0 Reactions
322 Views
(@andy_b)
Posts: 22
Eminent Member
Topic starter
 

 Hi, I'm looking for some help on calculating totals across multiple workbooks. I get the concept of =SUMPRODUCT(SUMIF(INDIRECT( but I can't seem to put it into practice in excel.

I have attached a sample workbook & I'm looking to calculate the number of sick days by employee & day of week per quarter (& eventually annually). The tables in my actual analysis are not in the same cells/boxes in each tab.

Really appreciate if someone could give me a hand.

Thanks

Andy, UK

 
Posted : 30/10/2017 5:40 am
(@bigroo)
Posts: 16
Eminent Member
 

Hi Andy,

Firstly, welcome to this great forum, you will find great help and knowledge here.

I had to rearrange your tables on each sheet as per the January tab, it was the only way I was able to get this to work as you wanted.

Please review my attachment and see if this is the result you are looking for.

Good luck with your project.

 
Posted : 30/10/2017 9:09 pm
(@sunnykow)
Posts: 1417
Noble Member
 

Hi Andy

As James said above, it is best if you can rearrange your data properly. Otherwise the formulas can get very messy (as per attachment).

Good luck.

Sunny

 
Posted : 30/10/2017 9:27 pm
(@andy_b)
Posts: 22
Eminent Member
Topic starter
 

Hi Sunny/James, thanks for your help. James, I tried your formula on my actual document & it worked great.

I have a further area of development/automation but I'm not sure if it is possible. I'm looking for employee names to be instantly populated in each monthly worksheet from a central worksheet as new one's start & other's leave. I have an admin who will be completing this and I want to try make it as easy and useable as possible. I guess at a basic level it would be a staff database with the start month and a leave month, therefore if they leave in October they are not included in November's onwards. The number of employees I have is not going to exceed 20, therefore it is possible to keep all the active employees names in the same 20 cells in each monthly worksheet.

If it is possible I'd really appreciate it if you could provide a sample worksheet on this.

Thanks

Andy

 
Posted : 31/10/2017 10:02 am
(@bigroo)
Posts: 16
Eminent Member
 

Andy,

I am glad the formula worked for you and gave the results you are looking for.

As for your question on the staff database, I have not come up with a working solution as yet, but looking into a solution ... but no luck as yet!

I am guessing a index and match with if formula thrown in .....

Anyone else have a solution and possible angle...??

Thanks

 
Posted : 01/11/2017 1:15 pm
(@andy_b)
Posts: 22
Eminent Member
Topic starter
 

Hi James/anyone, any thoughts on previous post? Is it possible?

Andy

 
Posted : 10/11/2017 1:53 pm
(@sunnykow)
Posts: 1417
Noble Member
 

Hi Andy

Give this a try. Haven't 100% tested though. Please do not touch row 1 of the Data sheet but you can hide it.

You will then need to use the formulas given by James to consolidate the result.

Hope this helps.

Sunny

 
Posted : 10/11/2017 10:14 pm
(@andy_b)
Posts: 22
Eminent Member
Topic starter
 

Hi Sunny, thanks for doing that, looks pretty impressive to me. I think it has to ability to work, the data tab definitely works. Only thing is, when I remove the { } at the start/end of the formula's in the month tabs or copy the formula to my worksheet (which has to remove the { } signs) it goes blank.... not sure why & the formula doesn't work. Any ideas why that happens?

 
Posted : 11/11/2017 8:02 pm
(@sunnykow)
Posts: 1417
Noble Member
 

Hi Andy

Those {} belongs to array formulas. You don't key them in.

When you enter or edit such formulas, you need to press CTRL+SHIFT+ENTER instead of ENTER.

The {} will be automatically inserted.

You can read more about array formulas here  https://www.myonlinetraininghub.com/excel-array-formula

Sunny

 
Posted : 11/11/2017 8:35 pm
(@sunnykow)
Posts: 1417
Noble Member
 

Hi Andy

In addition to the link above, you can also refer to this :  https://www.myonlinetraininghub.com/excel-remove-blank-cells-from-a-range

This link contains the original code that I modified to remove blanks from the name list.

My codes can still be shorten by removing the part +ISERROR(Table14[JAN]), +ISERROR(Table14[FEB]) etc as I was using it to remove both blank and error cells.

Sunny

 
Posted : 13/11/2017 9:05 pm
(@andy_b)
Posts: 22
Eminent Member
Topic starter
 

Hi guys, I received some previous help on the development of a spreadsheet (see above). All works great.

On Sunny's 'Andy2' workbook I'm looking to extend the same principles on employee names instantly being populated in each monthly worksheet to a quarterly version. So if an employee is with us for Q1 (Jan - March), they automatically populate in an equivalent Q1 worksheet...& so on.

Any help would be appreciated.

Thanks

Andy

 
Posted : 22/01/2018 3:56 pm
(@sunnykow)
Posts: 1417
Noble Member
 

Hi Andy

Give this a try. I have use some helper columns to get the data and then referred to them from the Quarterly sheets.

Hope this helps.

Sunny

 
Posted : 22/01/2018 10:17 pm
(@andy_b)
Posts: 22
Eminent Member
Topic starter
 

Thanks Sunny, works perfectly. 

Last thing I need to analyse/collect is number of sick days across the year in an 'annual' tab. I think it's more complex because the names of the staff will potentially differ in order, in each quarterly tab, depending on when they start/leave. Is this possible to collect? Kind of vital really so I have an annual overview.

Thanks

Andy

 
Posted : 28/01/2018 2:38 pm
(@sunnykow)
Posts: 1417
Noble Member
 

Hi Andy

You can try this. It is a bit more complex as I don't know how many unique staff are there in a year. I have catered for 40. You can amend it if necessary.

Hope this helps.

Sunny

 
Posted : 29/01/2018 9:21 pm
(@andy_b)
Posts: 22
Eminent Member
Topic starter
 

Hi Sunny, thank you for your expertise on this. The sickness tracker is working really well & I've learned a lot from it also.

I'm trying to add an automatic calculation for staff turnover during the year but I'm not 100% how to do it. The premise would be something along the lines of:

IF > the employee has a 'leave date' inputted, then add up all the contracted hours for all employees who leave in a year & divide by a given number, say 500 (I can put a formula in to work this out this number)

There isn't a column from contract hours in 'Andy 4' so just put a notional 36hrs for all of them.

Thanks

Andy

 
Posted : 31/03/2018 4:20 am
Page 1 / 3
Share: