+ Reply to Thread
Results 1 to 5 of 5

Need help with existing macro to multiply results

  1. #1
    Registered User
    Join Date
    04-23-2013
    Location
    TN, United States
    MS-Off Ver
    Excel 2007
    Posts
    40

    Need help with existing macro to multiply results

    Hello, I have an existing macro that will work to parse the data shown. This can be found here http://www.excelforum.com/excel-prog...-new-post.htmlI was wondering if it was possible to multiply the sku in worksheet 2 by the number that is above the SKU in worksheet one. This is the quantity the customer ordered. So for example below it shows product A as being purchased once and product B as being purchased twice. The quantity is in the cell right above the SKU. The result I want is below that~

    Quantity Product Details Price
    1 Product A
    SKU: 7Z-36Q9-LK1P
    ASIN: B009BTQ8S4
    Listing ID: 0916M1DMLSL
    Order-Item ID: 28255029918234
    Condition: New $14.99 Subtotal:
    Shipping: $3.66
    ________________________________________
    Total: $18.65

    2 Product B
    SKU: QP-PQXS-3CA8
    ASIN: B009FRAVUS
    Listing ID: 0924M9480RX
    Order-Item ID: 63126777937842
    Condition: New $12.99 Subtotal:
    Shipping: $6.34
    ________________________________________
    Total: $32.32

    ORDER TOTAL: $50.97

    So worksheet 2 would look like this

    7Z-36Q9-LK1P Product A
    QP-PQXS-3CA8 Product B
    QP-PQXS-3CA8 Product B

    You can see since the item was purchased twice the SKU would show twice and give me a truer count. I would assume since the data is being multiplied by a set number given from within the data, it shouldn't be hard to integrate into the already great macro. I do appreciate everyone's help and look forward to hearing if its possible or not. Below is the macro code. Thanks again!

    Please Login or Register  to view this content.
    Last edited by velocitygraphix; 02-05-2014 at 12:02 AM.

  2. #2
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Need help with existing macro to multiply results

    Try this amended code
    Please Login or Register  to view this content.
    多么想要告诉你 我好喜欢你

  3. #3
    Registered User
    Join Date
    04-23-2013
    Location
    TN, United States
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: Need help with existing macro to multiply results

    Thank you for responding! I tried the code, but it shows the same result. I changed the number from 2 to 3 to 4 on quantity and the SKU still only shows once. Its like its not wanted to paste the SKU the number of times requested in the cell above it. Its still pasting the additional SKUs from other orders but if two different people purchased the same item, and one purchased 2 and the other purchased 1, it shows two Skus instead of 3. If that makes sense….

  4. #4
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Need help with existing macro to multiply results

    My bad, try again

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    04-23-2013
    Location
    TN, United States
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: Need help with existing macro to multiply results

    Quote Originally Posted by millz View Post
    My bad, try again

    Please Login or Register  to view this content.
    Excellent! That works perfectly. Thanks so much for your help on that. I do appreciate it!!

+ 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. How to: Macro to divide/multiply and show results
    By Viktor86HUN in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-20-2013, 06:52 AM
  2. Modify existing macro to transpose results
    By Cody1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-03-2013, 09:29 AM
  3. Multiply by percentage and round final results
    By jeffreybrown in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-04-2012, 05:51 PM
  4. Sumproduct Help-multiply the results
    By Merlin54k in forum Excel General
    Replies: 2
    Last Post: 06-07-2006, 04:40 PM
  5. [SOLVED] multiply A by 1000 record results in B
    By Mother Goose in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-25-2006, 04:40 PM

Tags for this Thread

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