Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-06-2015, 11:20 AM
ballst ballst is offline Help needed for sum / range calculation from one worksheet to another Windows XP Help needed for sum / range calculation from one worksheet to another Office 2003
Advanced Beginner
Help needed for sum / range calculation from one worksheet to another
 
Join Date: Dec 2014
Posts: 32
ballst is on a distinguished road
Default Help needed for sum / range calculation from one worksheet to another

Hi all,

My excel 2003 in easy steps book didn't have the answer for this one and my web search didn't throw up anything similar, I have tried to modify what I have tracked down, but without success, hence my post.



I'm therefore looking for some help with a sum which calculates data from one worksheet, but displays the result in another.

The attached example has data in the two worksheets July2015 and MonthStats. What I am trying to achieve is that a sum within the monthly stat column references the data in the July2015 worksheet to return the relevant figures.

So in my example in cell B12 of the MonthStats worksheet the sum would calculate how many Fire case types there were on 01 July in the July2015 worksheet. This sum would need to reference columns C & E which deal with type and quantity, so the answer for 01 July would be 3.

I then also need a similar sum for each Case Officer, so in Cell B3 in MonthStats the answer would be two.

My other sticking point is the sheet is used by folks, with less excel skills than even me, so would welcome any suggestions as to how to make the necessary monthly updating of formulas, pain free.

Thanks for reading, hope my explanation is clear, had some trouble posting....

Attached Files
File Type: xls Example1.xls (28.0 KB, 7 views)
Reply With Quote
  #2  
Old 07-06-2015, 10:38 PM
macropod's Avatar
macropod macropod is offline Help needed for sum / range calculation from one worksheet to another Windows 7 64bit Help needed for sum / range calculation from one worksheet to another Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

See attached. The only real change to your workbook that's needed is to have a space between the month name & year on the 'July 2015' worksheet.

Note that there's now a bunch of formulae in row 11 on the 'MonthStats' sheet referencing the 'July 2015' worksheet's name for date calculation purposes. If you're going to have formulae referencing other sheets, you'll need to change those formulae to reference the other sheets or calculate the dates in some other way.

Once you have whatever you want for 'No Jurisdiction / Transferred' sorted out, I suggest you lock the 'MonthStats' sheet to prevent erroneous changes.
Attached Files
File Type: xls Demo.xls (54.5 KB, 8 views)
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 07-07-2015, 04:32 AM
ballst ballst is offline Help needed for sum / range calculation from one worksheet to another Windows XP Help needed for sum / range calculation from one worksheet to another Office 2003
Advanced Beginner
Help needed for sum / range calculation from one worksheet to another
 
Join Date: Dec 2014
Posts: 32
ballst is on a distinguished road
Default

Macropod,

A quick 'thank you' for your help and assistance. I cannot begin to get my head around what is going on in row 11, but I will endeavour to at some point!!

I'm guessing the formula changes can be carried out with a find and replace, substituting month for month, and I'll play around with that at my end.

Thanks again,

Ballst
Reply With Quote
  #4  
Old 07-07-2015, 12:42 PM
ballst ballst is offline Help needed for sum / range calculation from one worksheet to another Windows XP Help needed for sum / range calculation from one worksheet to another Office 2003
Advanced Beginner
Help needed for sum / range calculation from one worksheet to another
 
Join Date: Dec 2014
Posts: 32
ballst is on a distinguished road
Default

Macropod et al,

I've incorporated the formulas into my actual spreadsheet, but for some darn reason the formulas will not work or recognise one particular row.

I'm afraid I can't really post the sheet (data protection issues) which I understand might make this totally useless.

The formula =DATEVALUE(COLUMN()-1&" "&MID(CELL("FILENAME",'July 2015'!$A$1),FIND("]",CELL("FILENAME",'July 2015'!$A$1))+1,LEN(CELL("FILENAME",'July 2015'!$A$1))-FIND("]",CELL("FILENAME",'July 2015'!$A$1)))) is correct in each cell it appears in

The row which will not work is Row 15 which has the following formula =SUMPRODUCT(('July 2015'!$I$2:$I$199=$A15)*('July 2015'!$H$2:$H$199=I$21),'July 2015'!$E$2:$E$199) and again everything appears to be correct and consistent with other rows.

The result should be returning a total for 'Tom', but refuses to do so, I've changed the name, inserted a new row etc, but to no avail.

Am I missing something totally obvious???

A very puzzled Ballst...
Reply With Quote
  #5  
Old 07-07-2015, 03:13 PM
macropod's Avatar
macropod macropod is offline Help needed for sum / range calculation from one worksheet to another Windows 7 64bit Help needed for sum / range calculation from one worksheet to another Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

If the problem is just for one row, check that you don't have any extraneous spaces after the name on either sheet (e.g. 'Tom ' instead of 'Tom'). You can have however many rows you need above the 'Totals' row on the 'MonthStats' sheet.

Do note, though, that if you simply add new rows above the 'Totals' row on the 'MonthStats' sheet, the additional rows won't get included in the stats. That's because the formula in that row only sums rows 3:9. Try adding the new rows between rows 3 & 9, instead.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #6  
Old 07-09-2015, 08:17 AM
ballst ballst is offline Help needed for sum / range calculation from one worksheet to another Windows XP Help needed for sum / range calculation from one worksheet to another Office 2003
Advanced Beginner
Help needed for sum / range calculation from one worksheet to another
 
Join Date: Dec 2014
Posts: 32
ballst is on a distinguished road
Default

I've managed to resolve the problem, it was something with the word Tom it didn't like, kind of odd as the validation list was running from the same info, but a name change from Tom to Thom and back again fixed things!!!

Thanks again, Ballst
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro needed for time calculation and auto insert ballst Excel Programming 8 05-21-2015 03:54 PM
'Monday to Friday' Date calculation help needed ballst Word 10 12-16-2014 09:51 AM
Paste special an Excel range into Outlook as an Excel Worksheet charlesh3 Excel Programming 3 02-04-2013 04:33 PM
Help needed for sum / range calculation from one worksheet to another How to summarise different worksheet to a summary worksheet samkiewhock Excel 1 09-06-2012 03:34 AM
Help needed for sum / range calculation from one worksheet to another "Auto-populating" data-worksheet to worksheet. meggenm Excel 4 02-04-2012 02:04 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:58 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft