+ Reply to Thread
Results 1 to 5 of 5

Need to retrieve multiple records from data, based on multiple criteria

  1. #1
    Registered User
    Join Date
    11-21-2014
    Location
    Fresno, CA
    MS-Off Ver
    2007
    Posts
    5

    Question Need to retrieve multiple records from data, based on multiple criteria

    Hello All,

    I've been stumped on this problem for months and could use a helping hand.

    Hopefully I can explain this well enough - it's a very unique situation I believe.


    I have a spreadsheet tab that is linked to a database in Access (so it is ever changing when the database is updated). The number on columns will not change, but the number or rows will, this makes it difficult to pinpoint a formula. I cannot change the wording of anything on the first tab (that is linked to the Database), but I can change the order of the columns if needed to make a formula work.
    There are a number of clients listed, and for multiple years.

    What I am trying to achieve is to pull in information (from a number of different columns) to a separate tab, based on two criteria the client code (LNAMES) AND the year (YEAREND).


    I have been back and forth with INDEX/MATCH formulas, and LOOKUPS, but can't seem to get any of them to work for what I need.
    I did have success with the DGET formula, but only for the first entry (as seen on the second tab of my attached example).
    Does anyone know of a way to effectively drag that formula down to all the rest without error?
    Or even, a different formula that I could use for the multiple criteria?



    Any and all help would be much appreciated.

    Thanks!
    Ashley
    Attached Files Attached Files
    Last edited by lqangel; 11-21-2014 at 01:45 PM.

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Need to retrieve multiple records from data, based on multiple criteria

    In C2, enter this formula with Ctrl + Shift + Enter keys together since it is an array formula. Then drag the formula down and across

    =INDEX('Linked to Database in Access'!C$2:C$13,MATCH($A2&$B2,'Linked to Database in Access'!$A$2:$A$13&'Linked to Database in Access'!$B$2:$B$13,0))

  3. #3
    Registered User
    Join Date
    11-21-2014
    Location
    Fresno, CA
    MS-Off Ver
    2007
    Posts
    5

    Wink Re: Need to retrieve multiple records from data, based on multiple criteria

    JieJenn you are a lifesaver!!

    Now, just because I'm trying to keep the new tab as clean as possible, is there a way to use that formula and have it return a blank cell for blank cells, rather than return a zero?


    Thanks a bunch!

  4. #4
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Need to retrieve multiple records from data, based on multiple criteria

    You can just put an IF condition.

    =IF(INDEX('Linked to Database in Access'!C$2:C$13,MATCH($A2&$B2,'Linked to Database in Access'!$A$2:$A$13&'Linked to Database in Access'!$B$2:$B$13,0))<>0,INDEX('Linked to Database in Access'!C$2:C$13,MATCH($A2&$B2,'Linked to Database in Access'!$A$2:$A$13&'Linked to Database in Access'!$B$2:$B$13,0)),"")

  5. #5
    Registered User
    Join Date
    11-21-2014
    Location
    Fresno, CA
    MS-Off Ver
    2007
    Posts
    5

    Re: Need to retrieve multiple records from data, based on multiple criteria

    Thanks again!

    You just helped relieve me of the biggest excel headache I've ever had!



    -Ashley

+ 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. Retrieve multiple cell references based on a criteria
    By Danut Alexandru in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-04-2014, 02:16 PM
  2. [SOLVED] Help with formula: retrieve multiple values based on multiple criteria + "merging"
    By Bruckner in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 08-28-2012, 03:51 PM
  3. Excel 2007 : Retrieve values based on multiple criteria
    By douglas77 in forum Excel General
    Replies: 0
    Last Post: 06-29-2011, 03:05 PM
  4. Replies: 1
    Last Post: 05-31-2011, 02:08 PM
  5. [SOLVED] Vlookup Twist: retrieve one value based on Multiple criteria
    By mellowe in forum Excel General
    Replies: 5
    Last Post: 01-19-2006, 08:55 AM

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