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!
 

Some videos you may like

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

Jonmo1

MrExcel MVP
Joined
Oct 12, 2006
Messages
44,061
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.
 

ravishankar

Well-known Member
Joined
Feb 23, 2006
Messages
3,566
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
 

Watch MrExcel Video

Forum statistics

Threads
1,122,521
Messages
5,596,645
Members
414,083
Latest member
Mrsash

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
Top