+ Reply to Thread
Results 1 to 4 of 4

vba for collating data or instead of using SUMIFS

  1. #1
    Registered User
    Join Date
    01-29-2013
    Location
    Bristol, England
    MS-Off Ver
    Excel 365
    Posts
    40

    vba for collating data or instead of using SUMIFS

    Hello all,

    I have a worksheet I would like to collate the quantities (column E) of wine for into a new totals column. This works fine but is only looking at one condition - the name of the wine (column A) and not the year (column B) as the 2nd condition. I have a vba script to look which will collate for the condition of column A but I cannot get it to work with the 2nd condition of column B. It keeps lumping it into one total.

    I am pretty sure is it the line:

    Set Rng = Range(Range("A1"), Range ("A" & Rows.Count).End(xlUp)

    Could somebody have a look and help me please.

    Thank you
    Attached Files Attached Files

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: vba for collating data or instead of using SUMIFS

    Does this work for you.
    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  3. #3
    Registered User
    Join Date
    01-29-2013
    Location
    Bristol, England
    MS-Off Ver
    Excel 365
    Posts
    40

    Re: vba for collating data or instead of using SUMIFS

    Thank you so much bakerman2.

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: vba for collating data or instead of using SUMIFS

    Glad to help and thanks for rep+.

+ 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. Collating data
    By bossquad in forum Excel General
    Replies: 2
    Last Post: 09-12-2018, 09:18 PM
  2. Data Collating from same sheet columns
    By Liju144 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-02-2017, 06:46 PM
  3. Collating Data
    By Chatbot in forum Excel General
    Replies: 1
    Last Post: 08-27-2011, 06:04 AM
  4. Collating Data into one Worksheet
    By anwitha in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-24-2010, 03:01 PM
  5. collating data
    By ~Lews Therin~ in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-13-2009, 04:32 AM
  6. Finding and collating data
    By koootzz1 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-23-2008, 12:31 PM
  7. collating Data
    By Paul Cooke in forum Excel General
    Replies: 0
    Last Post: 12-05-2005, 12:29 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