+ Reply to Thread
Results 1 to 9 of 9

match an a string of numbers in a table and return value

  1. #1
    Registered User
    Join Date
    11-15-2018
    Location
    australia
    MS-Off Ver
    365
    Posts
    4

    match an a string of numbers in a table and return value

    I have a set of 6 numbers in A1:A6 (example 10,20,30,40,50,60). I'm trying to match the 6 numbers against a table 6x300ish and return a value of the matching row in the table. The first 6 columns are numbers the I need to lookup and the last column is the reference number 1 to 5 in example

    table example

    11,20,30,40,50,60,1
    12,20,30,40,50,60,2
    13,20,30,40,50,60,3
    14,20,30,40,50,60,4
    15,20,30,40,50,60,5

  2. #2
    Registered User
    Join Date
    02-14-2018
    Location
    India
    MS-Off Ver
    2007
    Posts
    13

    Re: match an a string of numbers in a table and return value

    please provide the data in excel sheet with sample solution

  3. #3
    Registered User
    Join Date
    11-15-2018
    Location
    australia
    MS-Off Ver
    365
    Posts
    4

    Re: match an a string of numbers in a table and return value

    how do i attach a file or do you mean attach image

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: match an a string of numbers in a table and return value

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: match an a string of numbers in a table and return value

    Hi

    See if this helps you

    A$1:A$6 are the numbers to search
    $A$21:$ZZ$21 is a table 6 x ...

    Use and copy forward for other columns
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    see the file
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    11-15-2018
    Location
    australia
    MS-Off Ver
    365
    Posts
    4

    Re: match an a string of numbers in a table and return value

    I have uploaded a file as requested and the file contains before and after. hope this helps


    the pattern combination contain 210 possibilities and every event produces a list of 6 numbers, I need to know what pattern the 6 numbers are equal to.

    cheers
    Attached Files Attached Files

  7. #7
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: match an a string of numbers in a table and return value

    Try this
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Note: Date after not correct?

    see the file
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    11-15-2018
    Location
    australia
    MS-Off Ver
    365
    Posts
    4

    Re: match an a string of numbers in a table and return value

    awesome news it works, thank you.

    Just one more thing, how would i go about solving this problem using VBA. Im not looking for a solution just some advise, so I can investigate.

  9. #9
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: match an a string of numbers in a table and return value

    Hi
    You are welcome.

    You can post the question in this forum under the group
    Excel Programming / VBA / Macros (Post any VBA, Macros, Add-Ins questions here).

    Do not forget to mark this thread as solved (use Thread Tools located above your first post and choose "Mark this thread as solved"

+ 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. return row if string match
    By mariur89 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-09-2015, 10:37 AM
  2. [SOLVED] FIND with RIGHT to return numbers from a string
    By jndipworm in forum Excel General
    Replies: 6
    Last Post: 03-26-2015, 09:34 AM
  3. [SOLVED] Return Value from string if it Match is Found in Range
    By Jonathan78 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-17-2015, 10:05 AM
  4. Match string in one column, return value in same row, skip rows that down't match
    By anilsen0711 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-01-2013, 05:35 AM
  5. Search string for substring...return match
    By Gambinus in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-21-2012, 03:18 PM
  6. Return the string between two character numbers
    By rhua5436 in forum Excel General
    Replies: 3
    Last Post: 09-30-2011, 01:25 AM
  7. [SOLVED] Return a digit in a string of numbers
    By W M in forum Excel General
    Replies: 5
    Last Post: 05-11-2005, 02:06 PM

Tags for this Thread

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