+ Reply to Thread
Results 1 to 2 of 2

Macro to copy unique items, do sumif, vlookup, subtraction and then save data

  1. #1
    Registered User
    Join Date
    01-23-2009
    Location
    Chicago
    MS-Off Ver
    Excel 2003
    Posts
    58

    Macro to copy unique items, do sumif, vlookup, subtraction and then save data

    Hi,
    I need a macro that would do the following. Can anyone help me out please?
    Thanks.


    Get unique item numbers and copy them on to a sheet
    Do a sumif on each unique item number (that was created in the previous step - on the sheet containing unique item numbers) and sum column C of the originial shee.
    Do a vlookup on the item in the unique numbers sheet, and get values from column F for that item
    Subtract the value in the Sumif column from the value in the vlookup column
    Mark (check mark or anything) on entries where the subtraction is =<0
    Do a vlookup on the unique item number sheet, and put the mark (see above) on the items in the original sheet
    Keep all the items with the mark and delete the rest
    save the sheet in a specific location

  2. #2
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Macro to copy unique items, do sumif, vlookup, subtraction and then save data

    excelaspire0219,,

    Please post a copy of your workbook - scroll down and see "Manage Attachments".


    Have a great day,
    Stan
    Have a great day,
    Stan

    Windows 10, Excel 2007, on a PC.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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