+ Reply to Thread
Results 1 to 2 of 2

automate SUMIFS formula in vba code for UNIQUE DATA

  1. #1
    Forum Contributor
    Join Date
    02-11-2014
    Location
    mauritius
    MS-Off Ver
    MS365
    Posts
    1,086

    Exclamation automate SUMIFS formula in vba code for UNIQUE DATA

    Hi All

    Not well versed with vba, so I am looking IN VBA CODING as per annexed sheet how to have a unique list for three particular columns A, B, C and converted to unique list in columns K, L,M where amount is stated using sumifs in vba code in column N .

    Actually doing this through advanced filter and sumifs function ,but am looking to automate tasks by macros so others d' ont mess with data as huge data need to be manipulated daily up to 20000 rows .

    Urgent help please .crazy with this
    Attached Files Attached Files

  2. #2
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: automate SUMIFS formula in vba code for UNIQUE DATA

    This isn't VBA but it does extract unique records based on 3 columns and gives the sum for those unique records.
    Insert a helper column (G) and use this formula to concatenate columns A B and C
    Enter in G2 and fill down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Use another helper column (I) to extract the unique concatenated values into column I
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Enter with Ctrl + Shift + Enter (ARRAY FORMULA)
    Enter this formula in K2 and fill across to M2 then down to extract the values of columns A B and C for the unique concatenated values.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    For the amounts in column N enter this in N2 and fill down
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This is good to row 100 in columns A B and C. If more is needed, change the 100 to whatever you need in the formulae.
    In the workbook, the yellow columns can be hidden.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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. formula or code for unique values
    By stephme55 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-29-2016, 04:53 PM
  2. Formula to generate unique code
    By jamiem4 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-18-2015, 01:11 PM
  3. Replies: 7
    Last Post: 03-10-2015, 09:30 AM
  4. Formula to automate data inputting
    By FredFitzgerald in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-05-2015, 01:58 AM
  5. [SOLVED] Automate VBA code when data on a separate sheet changes, without the use of a button
    By stevemills04 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-27-2013, 04:50 PM
  6. [SOLVED] Sumifs, problem with the formula: =sumifs(c10:c200,<=today(),0)
    By Faustocruz in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-08-2012, 04:26 AM
  7. Need to automate unique identifier
    By MLK in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-22-2006, 04:25 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