LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 155
Default Macro to populate multiple tabs from a master file

I have a data file with 50 columns, including one named "location". There are
hundreds of locations, with values including '01', '21', '71'. I also have
report tabs which contain a template - the number of report tabs matches the
number of unique values in the location column, so in my example there are
three report tabs. The report tabs are identical to each other, except for
their name. I want to create a macro to help populate the report tabs (the
template contains formulas and calculations), based on the value of the
location column.

What I have been doing is manually inserting "=IF(Data!A2=71,Data!M2)" in
the report tab, to pull data from cell M2 of the master file, if the value of
cell A2 = 71. What I want is to be able to do is to receive the master file,
which will always have the variables in the same columns, and run a macro
which will dump the data into the pre-created report tabs. The number of tabs
may differ from time to time, but that can be manually handled.

Ideas?

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to populate master spreadsheet from others based on headers [email protected] Excel Discussion (Misc queries) 0 May 1st 08 06:24 PM
Can you separate multiple tabs each into their own file hammermw Excel Worksheet Functions 2 February 28th 07 07:37 PM
Macro to importing a text file to populate a database/table TKM New Users to Excel 1 December 14th 06 06:39 PM
Populate a spreadsheet with multiple entries from a master jdall Excel Discussion (Misc queries) 1 April 6th 06 12:31 AM
Populate worksheets based on a master sheet brownsatan Excel Worksheet Functions 1 February 6th 06 09:34 PM


All times are GMT +1. The time now is 10:03 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"