+ Reply to Thread
Results 1 to 11 of 11

Pulling data from database with criteria matching.

  1. #1
    Registered User
    Join Date
    01-31-2020
    Location
    South Africa
    MS-Off Ver
    Office365
    Posts
    4

    Pulling data from database with criteria matching.

    Hi Guys

    I'm going to have some trouble explaining myself here but I'll try my best.

    I have a small database of information that I need to pull some information from into another sheet.

    What I want to do is look at the "Voyage Number" and compare that with the source. So from source relevant to OV0010_B11 goes to Source and put it automatically under the source.

    Please look at my sample spreadsheet for more understanding.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    3,168

    Re: Pulling data from database with criteria matching.

    You may (or should) have access to these formulas, so you can try this - in F8 enter:
    =UNIQUE(FILTER($C$2:$C$17,($A$2:$A$17=$F4)*($C$2:$C$17<>"")))
    This will try to "Spill down all the values, so delete your results under F8, and they will appear there.
    I'm uploading the file for reference.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    01-31-2020
    Location
    South Africa
    MS-Off Ver
    Office365
    Posts
    4

    Re: Pulling data from database with criteria matching.

    Thanks for the reply but I dont have some of the functions you have in the example.

    I was more looking for something along the lines of Index/Match.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,235

    Re: Pulling data from database with criteria matching.

    The UNIQUE function is still only available to those on the Office insiders' programme, I believe.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    3,168

    Re: Pulling data from database with criteria matching.

    I think they are rolling those functions (Unique, Filter, Sort, etc.) out a little at a time. I am NOT and Insider, just a normal O365 subscriber, and I now have them available to me.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,235

    Re: Pulling data from database with criteria matching.

    Interesting. Well, the OP either needs to check for updates or wait.

  7. #7
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,982

    Re: Pulling data from database with criteria matching.

    Select in f3 e g3 with dropdown list voyage code and Reason code


    F6=IFERROR(INDEX(C$2:C$100,SMALL(IF($B$2:$B$100=$G$3,IF($A$2:$A$100=$F$3,ROW(C$2:C$100)-ROW(C$2)+1)),ROWS($C$2:C2))),"")

    control+shift+enter

    copy down and across

    F5=SUM(G6:G100)
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,632

    Re: Pulling data from database with criteria matching.

    Or you can use a pivot table
    Attached Files Attached Files
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  9. #9
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,713

    Re: Pulling data from database with criteria matching.

    Quote Originally Posted by AliGW View Post
    The UNIQUE function is still only available to those on the Office insiders' programme, I believe.
    Everyone on the monthly channel now has the dynamic array functions, not sure about the yearly channel.
    Also the new Xlookup & XMatch are being rolled out to the monthly channel.
    https://twitter.com/jjmcdaid

  10. #10
    Registered User
    Join Date
    01-31-2020
    Location
    South Africa
    MS-Off Ver
    Office365
    Posts
    4

    Re: Pulling data from database with criteria matching.

    Thanks! This is exactly what I wanted.

  11. #11
    Registered User
    Join Date
    01-31-2020
    Location
    South Africa
    MS-Off Ver
    Office365
    Posts
    4

    Re: Pulling data from database with criteria matching.

    Quote Originally Posted by popipipo View Post
    Or you can use a pivot table
    This also works, thanks for the tip.

+ 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: 03-27-2019, 11:57 PM
  2. Replies: 7
    Last Post: 10-15-2014, 07:33 AM
  3. Replies: 6
    Last Post: 01-26-2014, 07:49 PM
  4. Need help pulling information from a cell, based on two matching criteria
    By acvitanov in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-18-2012, 06:45 PM
  5. Pulling data from external database based on criteria using VBA
    By cjc9119 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-17-2012, 02:46 AM
  6. [SOLVED] Pulling data from one database into another with multiple Criteria
    By nbl55555 in forum Excel General
    Replies: 9
    Last Post: 06-13-2012, 11:33 AM
  7. Replies: 1
    Last Post: 07-14-2010, 07:08 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