+ Reply to Thread
Results 1 to 10 of 10

Find data from a table using 4 inputs

  1. #1
    Forum Contributor
    Join Date
    09-22-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Office 2019
    Posts
    310

    Find data from a table using 4 inputs

    Hi

    (Difficult to title this one!)

    Please see attached workbook. I have a table of Inputs (sheet "Inputs") which has rows of 4 numbers across 6 possible columns (Two always blank) and a number in the 7th column that I want to retrieve.

    On the sheet "Check" I'd select 4 different numbers from a long drop down list. I then need to be able to click on the "Check Button" and for excel to search for the row in the Sheet "Inputs" where those four numbers are together, in any order, across the row, and return the value in the 7th column (Best Number) in that row to show in cell G2 on the sheet "Check".

    The for numbers currently selected are definitely in a row in the sheet "inputs" and I've pasted a copy of the numbers in cells S2:V2 so you can get them back if you change the drop down numbers.

    A really nice finish would be a message box that says "This selection of numbers has not been entered yet" if the search draws a blank.

    Many thanks

    Frankie
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,887

    Re: Find data from a table using 4 inputs

    Will a "Check "value only appear once in Input i.e. in only ONE of the 6 columns? Your posted file only has a single occurrence of each.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,958

    Re: Find data from a table using 4 inputs

    One way...With a helper column...
    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 [★ Add Reputation] to left of post window...
    Also....Add a comment if you like!!!!
    And remember...Mark Thread as Solved...
    Excel Forum Rocks!!!

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,887

    Re: Find data from a table using 4 inputs

    @Sintek: Fallen at the first hurdle!

    This only works if the "Check" values (helper column) are in the same sequence as the Input column data

    Input: 609C/2967A/44E/3012A vs "Check": 609C/44E/3012A/2967A for match on row 47.
    Last edited by JohnTopley; 05-12-2022 at 09:30 AM.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,887

    Re: Find data from a table using 4 inputs

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by JohnTopley; 05-12-2022 at 09:35 AM.

  6. #6
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,958

    Re: Find data from a table using 4 inputs

    @ John...Got confused at your response until I only NOW noticed this...
    where those four numbers are together, in any order, across the row
    Oops...My bad...Yep, fallen hard lol...

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,887

    Re: Find data from a table using 4 inputs

    @ Sintek: equally my offering will fail if a "check" value occurs more than once in a given column (as I use MATCH).

    Pick yourself up, dust yourself down and off you go!!!

  8. #8
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,958

    Re: Find data from a table using 4 inputs

    Pick yourself up, dust yourself down and off you go!!!
    True...I will revisit this a bit later...
    For you...Just a heads up...6 + variables not declared...
    Add Option Explicit to top of your code and run...

  9. #9
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: Find data from a table using 4 inputs

    Please try

    Please Login or Register  to view this content.
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    09-22-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Office 2019
    Posts
    310

    Re: Find data from a table using 4 inputs

    Hi Folks

    Thank you everyone for giving this a go. Great to see so many rising to the challenge!

    Special thanks to Bo_Ry who seems to have cracked it quite simply in the end!!

    Now on to the next bit of the puzzle.

    Cheers

    Frankie

+ 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. Variable row and column inputs y data table
    By perito372 in forum Excel General
    Replies: 13
    Last Post: 04-18-2016, 05:42 AM
  2. Data table - two inputs that are variables
    By bp22 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-15-2013, 03:13 PM
  3. Data table with 2 rows of inputs
    By mljs54 in forum Excel General
    Replies: 1
    Last Post: 03-11-2011, 10:43 PM
  4. Create a data table by varying inputs
    By umtemplt in forum Excel General
    Replies: 2
    Last Post: 11-18-2010, 12:31 AM
  5. [SOLVED] how do i get my data table column inputs to work?
    By wms in forum Excel General
    Replies: 0
    Last Post: 02-14-2006, 04:30 PM
  6. Find value in table based on two inputs
    By AMDRIT in forum Excel General
    Replies: 3
    Last Post: 12-30-2005, 12:50 PM
  7. Replies: 0
    Last Post: 05-03-2005, 11:06 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