Results 1 to 8 of 8

Macro to Create separate sheet for each Unique Value in Col G and put SUMIFs Formula

Threaded View

  1. #1
    Forum Contributor
    Join Date
    06-03-2004
    Location
    India
    MS-Off Ver
    2013
    Posts
    205

    Macro to Create separate sheet for each Unique Value in Col G and put SUMIFs Formula

    Hello All,

    I am using Excel 2010 and have attached a sample of my problem

    I have two Sheets Data and Master

    Data Sheet has repeated Store Names in Col G

    I want the macro to copy the Master Sheet as per unique Store Names in Col G

    It should place the value from Data Sheet E5 to G2 and Sheet name in Cell L2 of each sheet
    Eg in the attached there would be total 21 Sheets i.e Master plus 20 Sheets for each Store

    Then I would need the SUMIFS Formula in Col F to Col J on all the Sheets

    Col F : =SUMIFS(Data!$K$5:$K$84,Data!$B$5:$B$84,Master!C5,Data!$F$5:$F$84,Master!$L$2)
    Col G : =SUMIFS(Data!$K$5:$K$84,Data!$B$5:$B$84,Master!C5,Data!$F$5:$F$84,"<>Reject")
    Col H : =SUMIFS(Data!$H$5:$H$84,Data!$B$5:$B$84,Master!C5,Data!$G$5:$G$84,Master!$L$2)
    Col I: =SUMIFS(Data!$I$5:$I$84,Data!$B$5:$B$84,Master!C5,Data!$G$5:$G$84,Master!$L$2)
    Col J: =SUMIFS(Data!$J$5:$J$84,Data!$B$5:$B$84,Master!C5,Data!$G$5:$G$84,Master!$L$2)

    Hope to get some help

    Thanks in advance

    Rashid
    Attached Files Attached Files
    Last edited by prkhan56; 06-29-2016 at 02:24 PM. Reason: Solved

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. automate SUMIFS formula in vba code for UNIQUE DATA
    By JEAN1972 in forum Excel General
    Replies: 1
    Last Post: 02-08-2016, 05:29 PM
  2. [SOLVED] Help request to create a unique id by macro or formula
    By mso3 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-24-2015, 08:00 AM
  3. [SOLVED] Create Macro to Search for specific word on separate sheet
    By papinj2004 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-24-2014, 03:36 PM
  4. [SOLVED] VBA / Macro help needed to create separate sheets from Master sheet by year
    By krjoshi in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-09-2013, 08:34 AM
  5. Macro to create unique list on new work sheet
    By strud in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-13-2013, 08:29 AM
  6. [SOLVED] Macro To Create New Sheet (and rename it) based on unique values in column
    By himynameisiain in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 07-31-2013, 08:59 AM

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