Consulting

Results 1 to 3 of 3

Thread: Excel VBA help! Duplicate orders with same customer ID totals?

  1. #1
    VBAX Newbie
    Joined
    Dec 2014
    Posts
    1
    Location

    Excel VBA help! Duplicate orders with same customer ID totals?

    Hi I am new to writing VBA and would appreciate any help!

    I have a workbook with two worksheets. The "Orders" worksheet contains three columns order date A4:A548, customer ID B4:B548 and order amount C4:C548.

    Since customers ordered more than once, there are multiple entries of the same customer IDs. I was hoping to find the customers whose total order amount is more than $1000 and then show those customers' IDs and their corresponding total order amount in the second worksheet "Coupon".

    If it would help I can try to attach the workbook. Thank you for your consideration!

  2. #2
    VBAX Contributor
    Joined
    May 2010
    Location
    Sydney, NSW, Australia
    Posts
    170
    Location
    If this is a one off I would just copy the customer column and paste it somewhere else a few columns over, then click the data tab and click remove duplicates then hit OK. Then use a sumif formula to get the totals per customer.

    Cheers

    Dan

  3. #3
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    You have to make at least three posts before you can attach files.

    Then use the Go Advanced button and look below the advanced editor.
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

Posting Permissions

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