+ Reply to Thread
Results 1 to 10 of 10

Match and lookup or better

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    09-15-2005
    Location
    Florida
    MS-Off Ver
    Excel Professional Plus 2016
    Posts
    153

    Match and lookup or better

    Hi to all:

    I have a spreadsheet with two worksheet:

    Data & Helper List

    Data:
    Market COID
    empty cell 10076
    empty cell 24548

    Helper list:

    Market COID
    Broward 24548
    Dade 10076

    What is the most efficient and fast formula that would fill in the
    Empty cells from the Helper List I created.


    Thank you excel community. This week what would I have done with out you. Been very helpfull.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2021
    Posts
    1,013

    Re: Match and lookup or better

    Hi rogrand,

    Pop this in cell A2 and copy it down. I've wrapped the IFERROR function around it as not all of the COID numbers have a corresponding match.

    =IFERROR(INDEX(Table2[Market],MATCH(Table1[@COID],Table2[COID],0)),"")

    Regards,

    Snook

  3. #3
    Forum Contributor
    Join Date
    09-15-2005
    Location
    Florida
    MS-Off Ver
    Excel Professional Plus 2016
    Posts
    153

    Re: Match and lookup or better

    It does insert information but it grabs the first cell and it may not correspond to the COID as it its not really looking up to match it.

  4. #4
    Forum Contributor
    Join Date
    09-15-2005
    Location
    Florida
    MS-Off Ver
    Excel Professional Plus 2016
    Posts
    153

    Re: Match and lookup or better

    Quote Originally Posted by The_Snook View Post
    Hi rogrand,

    Pop this in cell A2 and copy it down. I've wrapped the IFERROR function around it as not all of the COID numbers have a corresponding match.

    =IFERROR(INDEX(Table2[Market],MATCH(Table1[@COID],Table2[COID],0)),"")

    Regards,

    Snook
    It fill in a market, but it takes the first cell and its not looking up and matching.

  5. #5
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,682

    Re: Match and lookup or better

    probably using an index/match.
    something like this...=INDEX('Helper List'!$A$2:$A$1001,MATCH(B2,'Helper List'!$B$2:$B$1001,0)) dragged down.
    the misses will show as #N/A so you can add an iferror to it to show mismatches like this...
    =IFERROR(INDEX('Helper List'!$A$2:$A$1001,MATCH(B2,'Helper List'!$B$2:$B$1001,0)),"missing")
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  6. #6
    Forum Contributor
    Join Date
    09-15-2005
    Location
    Florida
    MS-Off Ver
    Excel Professional Plus 2016
    Posts
    153

    Re: Match and lookup or better

    Quote Originally Posted by Sambo kid View Post
    probably using an index/match.
    something like this...=INDEX('Helper List'!$A$2:$A$1001,MATCH(B2,'Helper List'!$B$2:$B$1001,0)) dragged down.
    the misses will show as #N/A so you can add an iferror to it to show mismatches like this...
    =IFERROR(INDEX('Helper List'!$A$2:$A$1001,MATCH(B2,'Helper List'!$B$2:$B$1001,0)),"missing")
    I have been most successful with your formula, however some item I get a #N/A and in order to get the formula to work, I have to re-type the number it needs to match. Any ideas?

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Match and lookup or better

    a2 =Vlookup(B2,'Helper List'!$B$2:$C$1002,2,0)

    b2 =20712

    in the helper list I duplicate column A in Column C.



    Since you added an example (20076) which is not in the list you find #N/A.


    See the attached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  8. #8
    Forum Contributor
    Join Date
    09-15-2005
    Location
    Florida
    MS-Off Ver
    Excel Professional Plus 2016
    Posts
    153

    Re: Match and lookup or better

    Why the two Column "Kolom1" and "Market2" and can the "$B$2:$C$1002" be express differently? I tried substituting it for the table name

  9. #9
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,682

    Re: Match and lookup or better

    Maybe the numbers you are retyping are text. If they are (or any in that column are) try this little trick to convert them to numbers.
    Highlight the column, go to the data tab and select text to columns and when it opens if delimited is selected leave that, if it isn't then click that, then just hit finish and it will change any text in the column to numbers.

  10. #10
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Match and lookup or better

    @Rogrand

    Since you got answers of several forummembers it is good to add to whom you replying.


    It does insert information but it grabs the first cell and it may not correspond to the COID as it its not really looking up to match it.

    Since you added an example (20076) which is not in the list you find #N/A.

    Why the two Column "Kolom1" and "Market2" and can the "$B$2:$C$1002" be express differently?

    There is no need for it, but maybe I am old school, but I find the table names annoying.

+ 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: 3
    Last Post: 06-03-2018, 01:23 AM
  2. [SOLVED] Lookup/Match from 2 worksheet & populate data based on lookup
    By plcouch in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-22-2015, 08:16 PM
  3. Replies: 3
    Last Post: 06-17-2013, 12:37 PM
  4. Match/Index/Lookup - Searching From Bottom to Top (A reverse lookup maybe)
    By Neutralizer in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-02-2013, 03:55 AM
  5. Replies: 7
    Last Post: 06-19-2011, 12:51 PM
  6. Replies: 5
    Last Post: 02-24-2011, 11:26 AM
  7. [SOLVED] Lookup? Match? pulling rows from one spreadsheet to match a text f
    By cjax in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-21-2006, 09:51 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