+ Reply to Thread
Results 1 to 8 of 8

Need macro to populate spreadsheet based on cross referencing of tabs

Hybrid View

eguirocker3 Need macro to populate... 07-09-2015, 03:37 PM
SPARKY347 Re: Need macro to populate... 07-11-2015, 12:55 AM
eguirocker3 Re: Need macro to populate... 07-13-2015, 11:51 AM
SPARKY347 Re: Need macro to populate... 07-13-2015, 12:06 PM
cyiangou Re: Need macro to populate... 07-13-2015, 01:24 PM
eguirocker3 Re: Need macro to populate... 07-13-2015, 02:25 PM
cyiangou Re: Need macro to populate... 07-13-2015, 03:56 PM
eguirocker3 Re: Need macro to populate... 07-13-2015, 08:46 PM
  1. #1
    Registered User
    Join Date
    01-15-2013
    Location
    Kansas City
    MS-Off Ver
    Excel 2007
    Posts
    75

    Need macro to populate spreadsheet based on cross referencing of tabs

    Instructions are also within the attached.

    Need to bring "Table" volume into "Master" highlighted column. I do not have material on "Table" so it's hard to do. I need a formula/macro that breaks down the promo volume from "Table" down to material level for "Master." Only way to do this is by looking at LY Volume.

    Please see Zone EE & Promo 50745 on "Master" for example. 715,452 is the Sept total for EE/50745 on "total" tab. I broke that number down to the materials listed on "Master" tab by inputting a formula. I don't have time to do this for every single promo combination. Is there a macro or a better formula that involves lookups so I can do this in a quick manner??

    Let me know with any questions or suggestions, thanks.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    05-02-2015
    Location
    calgary alberta
    MS-Off Ver
    2012
    Posts
    205

    Re: Need macro to populate spreadsheet based on cross referencing of tabs

    so I may be wrong in looking at this but im trying an advanced filter to filter your "table" data based on the cells im looking at in your master sheet to reference the zone and promo number and ive got a system that works but everytime I tell vba to remove the filter to go the next time excel crashed I think based on the shear amount of data provided in the table sheet, im still new to vba so I may be looking at this the wrong way though

  3. #3
    Registered User
    Join Date
    01-15-2013
    Location
    Kansas City
    MS-Off Ver
    Excel 2007
    Posts
    75

    Re: Need macro to populate spreadsheet based on cross referencing of tabs

    Feel free to cut the data in half. If you have a macro that works, I can probably edit it or run it on different data sets to accommodate my large file needs.

  4. #4
    Forum Contributor
    Join Date
    05-02-2015
    Location
    calgary alberta
    MS-Off Ver
    2012
    Posts
    205

    Re: Need macro to populate spreadsheet based on cross referencing of tabs

    So far I've cut all the data off "table " into new worksheets each named with the zone letters. Just trying to write one to incorporate all the formulas with a counter due to the more then one product numbers

  5. #5
    Valued Forum Contributor
    Join Date
    09-17-2012
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2007
    Posts
    454

    Re: Need macro to populate spreadsheet based on cross referencing of tabs

    On both sheets, insert a new column before all other columns, col A
    In cell A2, enter the formula =B2&"_"&C2 and copy down. Repeat for 2nd sheet.
    Enter the following formula into cell F2 of sheet Master, and copy down:
    =IF($E2<>0,E2/SUMIF($A:$A,$A2,$E:$E)*IFERROR(VLOOKUP($A2,Table!$A:$I,6,FALSE),0),0)
    cyiangou - Need macro to populate spreadsheet based on cross referencing of tabs.xlsb
    Does this help?

  6. #6
    Registered User
    Join Date
    01-15-2013
    Location
    Kansas City
    MS-Off Ver
    Excel 2007
    Posts
    75

    Re: Need macro to populate spreadsheet based on cross referencing of tabs

    I appreciate your response. Your formula was close but the calculations were just a hair off on some! It worked on some of the smaller combinations but not all. I
    chose one as example on what the numbers should tie out to. Please see attachment for that scenario. thanks
    Attached Files Attached Files

  7. #7
    Valued Forum Contributor
    Join Date
    09-17-2012
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2007
    Posts
    454

    Re: Need macro to populate spreadsheet based on cross referencing of tabs

    Sorry - try this formula:
    =IF($E2<>0,$E2/SUMIF($A:$A,$A2,$E:$E)*SUMIF(Table!$A:$A,$A2,Table!$F:$F),0)

  8. #8
    Registered User
    Join Date
    01-15-2013
    Location
    Kansas City
    MS-Off Ver
    Excel 2007
    Posts
    75

    Re: Need macro to populate spreadsheet based on cross referencing of tabs

    awesome work. Thanks so much!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Populate spreadsheet based on cross referencing of tabs.
    By eguirocker3 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-09-2015, 02:22 PM
  2. Recordset cross referencing spreadsheet data not updating missing values
    By Sc0tt1e in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-20-2013, 08:36 AM
  3. Replies: 2
    Last Post: 01-18-2010, 06:52 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1