+ Reply to Thread
Results 1 to 4 of 4

Macro VBA Code - Extract using unique identifiers

  1. #1
    Registered User
    Join Date
    04-24-2015
    Location
    Fort Myers
    MS-Off Ver
    Excel 2010
    Posts
    2

    Macro VBA Code - Extract using unique identifiers

    Hi,

    I am fairly new and inexperienced in writing code but I am looking for some assistance in writing a macro that extracts specific columns from a workbook based on two unique identifiers (in this case by Brand, by Vendor Name) into new workbooks. I am including an example of what I am attempting to extract



    Step 1 - Sort raw data (Workbook 1) and identify any line items that are from the same Brand and same Vendor - see attached example

    Attachment 391844

    Step 2 - Extract this information, but I only need to extract specific columns from all rows that are same Brand, same Vendor. Vendor Name, PO, Cost.

    Step 3 - Extracted information should be placed in formatted debit memo. Including example below. Red text indicates where extracted information should be placed.

    Could someone please provide me with a starting point?

    Thank you!!

    Jenna
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Macro VBA Code - Extract using unique identifiers

    I would build a pivot table then count how many instances that pops up then you can use a simple index+match.

    I am all about using pivots to find unique values instead of using clever (and complicated) formulas.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Registered User
    Join Date
    04-24-2015
    Location
    Fort Myers
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Macro VBA Code - Extract using unique identifiers

    I like that idea and that would be perfect if I was executing and sending the debit memos, however, I am creating for our A/P department and they are not as well versed with Excel. I'd like to just write a macro and assign it to a command button so all functions are automatically generated for them as this is something they do each month.

  4. #4
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Macro VBA Code - Extract using unique identifiers

    You can use the pivot in the background and then simple formulas on the front end and they won't know HOW or WHY you did anything.

+ 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. Replies: 1
    Last Post: 10-13-2014, 03:21 AM
  2. Help with applying Macro to specific worksheets with unique identifiers
    By colewillm in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-08-2014, 03:52 PM
  3. Help with applying Macro to specific worksheets with unique identifiers
    By colewillm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-08-2014, 02:24 PM
  4. Help with applying Macro to specific worksheets with unique identifiers
    By colewillm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-08-2014, 02:23 PM
  5. Need a formula or Macro to correspond to unique identifiers
    By mike12345 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-14-2011, 10:50 AM

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