+ Reply to Thread
Results 1 to 8 of 8

Consolidate a list from range with 2 criteria

  1. #1
    Forum Contributor ABSTRAKTUS's Avatar
    Join Date
    04-18-2010
    Location
    England
    MS-Off Ver
    Win10 Excel 2016
    Posts
    609

    Consolidate a list from range with 2 criteria

    Yo all!

    What I have here is a simple stock consolidation spreadsheet with 3 sheets in - "DATA", "SAP" & "STOCKS". "DATA" sheet is a basic product parameters database, "SAP" is stock report download from business software, "STOCKS" is where I want only specific stock figures going on.

    There are 2 criteria that will filter the end result:
    • All products with distributor "SHOP" on a "DATA" sheet
    • All products with status "LIVE" as per "DATA" sheet

    The aim is to match those 2 criteria and return all matching figures from sheet "SAP" onto sheet "STOCKS".

    How do I go about it? A dummy is attached...

    Thanks in advance for your priceless help!
    Attached Files Attached Files

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: Consolidate a list from range with 2 criteria

    Here's one way:
    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Forum Contributor ABSTRAKTUS's Avatar
    Join Date
    04-18-2010
    Location
    England
    MS-Off Ver
    Win10 Excel 2016
    Posts
    609

    Re: Consolidate a list from range with 2 criteria

    Hi sintek and thanks for a response.

    Your code works, but it only picks up the first matched value from SAP sheet. I need to return all entries, that match criteria. Any thoughts?

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Consolidate a list from range with 2 criteria

    Please Login or Register  to view this content.

  5. #5
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: Consolidate a list from range with 2 criteria

    Your code works, but it only picks up the first matched value from SAP sheet. I need to return all entries, that match criteria. Any thoughts?
    Code tested on your sample works... Picks up 3 criteria 101 105 109

  6. #6
    Forum Contributor ABSTRAKTUS's Avatar
    Join Date
    04-18-2010
    Location
    England
    MS-Off Ver
    Win10 Excel 2016
    Posts
    609

    Re: Consolidate a list from range with 2 criteria

    Hi Jindon and thanks for your response. Code works just perfect! Thanks!

  7. #7
    Forum Contributor ABSTRAKTUS's Avatar
    Join Date
    04-18-2010
    Location
    England
    MS-Off Ver
    Win10 Excel 2016
    Posts
    609

    Re: Consolidate a list from range with 2 criteria

    For sintek - appreciate it does pick up the criteria, but returns only one entry per matched criteria, when there are more. Anyway, thanks to you too.

  8. #8
    Valued Forum Contributor
    Join Date
    08-04-2011
    Location
    UK
    MS-Off Ver
    Excel 2021
    Posts
    346

    Re: Consolidate a list from range with 2 criteria

    my humble attempt with formula
    Attached Files Attached Files

+ 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. [SOLVED] extract unique list from a range while other column is criteria
    By marinelkata in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-26-2016, 03:44 AM
  2. [SOLVED] Create alphabetical list from range when criteria is met
    By MissExcel1981 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-24-2016, 07:54 AM
  3. [SOLVED] COUNTIFS with Date Range and Criteria from Dropbox List
    By Betsyboo in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-08-2015, 09:56 AM
  4. consolidate sheets with two criteria using VBA
    By Jayant shettigar in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-04-2014, 04:30 PM
  5. Consolidate from column to row on criteria
    By Steve N. in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-28-2013, 09:53 PM
  6. [SOLVED] Consolidate following a criteria
    By Adamitus in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-30-2012, 05:20 PM
  7. Consolidate a list of data inside a range
    By PY_ in forum Excel General
    Replies: 1
    Last Post: 01-06-2011, 12:56 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