Compiling Certain Data from Tabs into one Consolidated Tab

elethepunk

New Member
Joined
May 15, 2019
Messages
1
Hey guys!

I'm quite new to excel and VBA and trying to pick up my knowledge recently. My employer had "challenged" me of automating a certain process to make it quicker. The task goes as follows:

There are 5 tabs (for example) that are differentiated by regions. For instance, tab 1 is region canada, 2 is the us, etc. In each of the tabs, there are certain comments to be made on certain cells. for instance, cell A5 would say: Down by 4000, or cell A6 would say up by 2300. What the challenge is, is to make a macro that would take all these comments from each tab, and process it into the consolidated tab. So for example, if Canada has cell A5 with the value of "Up by 200" and US has cell A5 with value of "Down 200", in the consolidated tab, if we click on it, it would say Region - Canada: Up by 200, and Region - USA: Down by 200. I tried to use vlookup to make this process faster, but I was wondering if there was a macro or a button, to instantly automate this process. Thank you.
 
Last edited by a moderator:

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
try the following macro codes prefereably attached to a button
Code:
Sub collate()
Dim a As Long
Sheets.Add.Name = "summary"
For a = 1 To Sheets.Count
Sheets("summary").Cells(a, 1) = Sheets(a).Name
Sheets("summary").Cells(a, 2) = Sheets(a).Cells(5, 1)
Sheets("summary").Cells(a, 3) = Sheets(a).Cells(6, 1)
Next a
MsgBox "complete"
End Sub
ravishankar
 
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,213
Members
448,554
Latest member
Gleisner2

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