Multiple sheet sum question

ogsl

New Member
Joined
Nov 4, 2009
Messages
4
Hello,

I have a large, mulit-sheet document with a summary sheet. Essentially it's sales figures for multiple employees over a number of years. Each sheet represents one year, organized by salesperson (in rows) and months (in columns).

The summary sheet has exactly the same format, but obviously collates all the data from all other sheets. I'm using the =SUM('2000:2009'!A1) type sum, which is working very well in this situation.

My question is: if I wanted to find out where that specific value actually comes from (i.e. from which sheet), how would I be able to do that? It's not too bad when you just have a couple of sheets, but the document I have has over 50 so rather then flick through all of them it would be handy to be able to see the origin of the value.

Thanks in advance for the help!
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Sounds like you should have 1 formula for each sheet on the summary.

On summary sheet,
have in say
A1 =2000!A1
A2 =2001!A1
A3 =2002!A1
etc..

Then sum those.
 
Upvote 0
Hi
Paste the following codes in the macro window ( Alt F11). run the macro
Code:
Sub ogsl()
Dim a As Long
Dim b As String
b = InputBox("enter cell reference")
For a = 1 To Sheets.Count
If Worksheets(a).Name <> "Summary" Then
Worksheets("Summary").Cells(a, 1) = Worksheets(a).Name
Worksheets("Summary").Cells(a, 2) = Worksheets(a).Range(b)
End If
Next a
MsgBox "Complete"
End Sub
Enter the cell reference(A1,B5 etc). it lists the value from all sheets.
ravi
 
Upvote 0

Forum statistics

Threads
1,214,971
Messages
6,122,521
Members
449,088
Latest member
RandomExceller01

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