Question:
Excel summary populate formula?
?
2010-09-09 09:23:40 UTC
I have a big excel workbook with many sheets. I have created a summary sheet where I want to output a cell information from every sheet in the workbook, the same cell. How would I go about doing this without typing in every single time. Currently I been using 'Jul 10'!G38 to call the information I need.

To explain this better I will set up a problem:
I have a 'Monthly Summary' sheet

I have Jan through Dec of 2010 sheets as well usually in the format as 'Jan 10' and so on

I want to populate a specific cell,G38, from each sheet without have to type in 'Jan 10'!G38 then 'Feb 10'!G38 and so on for every cell.

I want the to be able to drag down a formula that will change to the next sheet in the workbook without me having to type it in.
Four answers:
garbo7441
2010-09-09 13:09:18 UTC
You cannot drag a formula containing a sheet reference. You do not state what column and row you wish to begin entering your formulas in.



Here, again, is an easy way to do as you ask. You only have to modify two criteria in the macro below:



Change the reference "A4:A" in line 3 to reflect the column letter you wish the formulas entered in and the beginning row number. For example, if you want the column to be 'K' and the beginning row to be 12, change the reference to "K12:K"



In lines 11, 12, and 13 change the beginning row reference and the column letter reference. For example, if you want the column to be 'K' and the beginning row to be 12, change all three references to:



Cells(i + 12, "K")



Then copy the modified macro to the clipboard:





Sub Populate_Summary()

Dim ShtNames() As String, rng As Range

Set rng = Sheets("Monthly Summary").Range("A4:A" _

& Sheets.Count + 2)

ReDim ShtNames(1 To ActiveWorkbook.Sheets.Count)

For i = 1 To Sheets.Count

ShtNames(i) = Sheets(i).Name

Next i

For i = 1 To Sheets.Count

If ShtNames(i) <> "Monthly Summary" Then

Cells(i + 4, "A") = ShtNames(i)

Cells(i + 4, "A").Formula = "=" & _

Cells(i + 4, "A").Value & "!G38"

End If

Next i

End Sub



Press ALT + F11



In the menus at the top of the VBE, select INSERT > MODULE



Paste the macro into the editing area to the right.



Close the VBE and return to the worksheet.



Press ALT + F8



When the Macros window opens, select the macro and click 'RUN'.
JJSS
2010-09-09 13:29:22 UTC
I would suggest that you place all of your data on one sheet, incorporating a column for the date, then use SUMIF or a pivot table to analyse the data.



I have used pivot table to complete such a task on numerous occasions and I am able to give you some more help if you wish to contact me.



Pivot tables are very useful, so long as you have set up to data that they reference correctly, and you can also run graphs off them quite easily.



Good luck.
leopard
2017-01-21 20:28:00 UTC
in ordinary terms use the formula to repeat the cellular containing the gross quantity into yet yet another field, then upload the minus 17.5% onto that. Then, set formula interior the third cellular to calc the version between internet and gross.
gospieler
2010-09-09 11:01:38 UTC
Excel Version????



Use the CONSOLIDATE feature



EXCEL 2003

VIDEO: http://www.youtube.com/watch?v=pFgwa9nQTU0

http://office.microsoft.com/en-us/excel-help/consolidate-data-HP005199355.aspx?CTT=1



EXCEL 2007:

VIDEO: http://www.5min.com/Video/How-to-Consolidate-Data-in-Microsoft-Excel-2007-80718211

http://office.microsoft.com/en-us/excel-help/consolidate-data-in-multiple-worksheets-HP010095249.aspx


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...