+ Reply to Thread
Results 1 to 4 of 4

Pulling records matching two criteria and inserting those records into an existing list

  1. #1
    Registered User
    Join Date
    05-13-2014
    MS-Off Ver
    Excel 2003
    Posts
    9

    Pulling records matching two criteria and inserting those records into an existing list

    Hello. Right now I have a great setup to pull Class Name and Discount Rate to determine if a Class should be purchased this week based on Discount Changes from last week to this week. Certain Class Names from my purchasing lists require a list of SKU's and Descriptions to be sent from that class to be added to my purchase order requests. Right now that process is done manually. I would like to automate it.

    Here is the current process:
    1. A Discount Sheet is emailed to me containing a list of Class Names, last week's discount rate, and this week's current discount rate for various products in PDF format.
    2. That PDF is converted into Excel and then pasted into the "Discount Sheet" sheet within my purchasing workbook.
    3. My IF/AND/INDEX/MATCH formula compares my list of Class Names and my desired purchase discount ("Markdown%") to that Discount Sheet.
    4. The formula returns a Yes or No. If last week's discount was below my Markdown% and now this week's discount is equal to or greater than my Markdown%, the result is Yes. If this week's discount is below my Markdown%, the result is No.
    5. Using a Data Sort the "Yes" Class Names off of the "Discount Sheet Processing" sheet are sorted out from the "No" Class Names to create a purchasing order.
    6. The Class Names to be purchased sometimes contain a note stating "See SKU List". If a SKU List is required, then I cut and paste that SKU and description from my SKU List that coincides with that Class Name and the Discount Rate of that class' purchase order.
    7. That list is then emailed to my supplier.

    What I want to do is write a script/formula that will automatically pull the correct SKU's from the SKU List based on the Class Name and Markdown% from my purchase order only if the Notes state "See SKU List". The "Desired Results" sheet in the attached workbook gives an example of the desired output format.

    Thank you very much in advance for your input.
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,054

    Re: Pulling records matching two criteria and inserting those records into an existing lis

    You've lost me... so far.
    In the case of Binding, these items appear below the copied row.

    488727 BOOKCREATOR,UNIBIND,BUSINESS
    538209 BINDING MACHINE,COMBBIND,F20
    538218 BINDING MACHINE,BINDMATE,GBC
    591642 BINDING MACHINE,COMBBIND,F12
    733211 BINDING,MACHINE,PROCLICK,P50
    748245 COVER,PREPUNCHED,BK
    748250 COVER,PROCLICK PREPUNC,WE


    Why?

    In the case of calculators, no similar values are shown. Why not? I guess i'm missing something obvious...
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    05-13-2014
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Pulling records matching two criteria and inserting those records into an existing lis

    Hello,

    Because the Binding class contains "See SKU List" in the class notes. Basically those are the only SKU's I wanted to purchase from that class. The SKU List only contains those SKU's because I have narrowed it down to those. I have a lot more classes that I purchase than those listed in the sample file. In the sample file you will see 4 out of 8 of the classes have "See SKU List" in Column D. When those classes come up on a purchase order that state "See SKU List" in the notes, I would like the list of SKU's I want automatically added to the purchase order, inserted within column D below the notes for that class(only the ones at that discount level-the discount percent is secondary in match criteria.

    Any clearer now?

    Thanks.

    David

  4. #4
    Registered User
    Join Date
    05-13-2014
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Pulling records matching two criteria and inserting those records into an existing lis

    Also to clarify calculators. Those came on as a Yes for purchasing because this week's discount rate on the Discount Sheet was at 50%, in turn meeting the criteria for purchasing. No SKU List is required because of what I mentioned above.

+ 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. find non matching records in a list
    By iandobson in forum Excel General
    Replies: 4
    Last Post: 04-13-2014, 06:30 AM
  2. vlookup match with records and inserting more records
    By perusjosh in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 09-25-2013, 01:48 AM
  3. Replies: 1
    Last Post: 07-24-2012, 06:49 AM
  4. Total of records containing matching criteria
    By Bernard2003 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 07-22-2011, 11:24 AM
  5. Extract multiple records matching criteria from list
    By William DeLeo in forum Excel Formulas & Functions
    Replies: 56
    Last Post: 09-06-2005, 12:05 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