+ Reply to Thread
Results 1 to 11 of 11

Please help correcting the formula for IF(ISNUMBER(MATCH with return yes or no formula

  1. #1
    Registered User
    Join Date
    09-25-2012
    Location
    Seattle
    MS-Off Ver
    Excel 2010
    Posts
    49

    Please help correcting the formula for IF(ISNUMBER(MATCH with return yes or no formula

    Hi,

    I have the formula for the attached worksheet as follows:

    =IF(ISNUMBER(MATCH(A1,SHEET2!A:A,0)),"YES","NO")

    however it does not give me the correct answer

    like for instance in row 22,44, and 71 which is supposed to be Yes instead of No

    Please advise,

    Thank you
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,847

    Re: Please help correcting the formula for IF(ISNUMBER(MATCH with return yes or no formula

    There are trailing spaces on sheet 2, so no match. Try this:

    =IF(ISNUMBER(MATCH(A1,TRIM(Sheet2!A:A),0)),"YES","NO")
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Please help correcting the formula for IF(ISNUMBER(MATCH with return yes or no formula

    Another way, with fewer function calls:

    =IF(COUNTIF(Sheet2!A:A,A1&"*"),"Yes","No")

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    09-25-2012
    Location
    Seattle
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: Please help correcting the formula for IF(ISNUMBER(MATCH with return yes or no formula

    Thank you,

    It looks like it only works with the lookup value starting with the letter,
    it does not work for the number
    for instance:

    under sheet 1: 53732
    under sheet 2: 53732

    with the formula given it still responds as no

    Please advise,

    Thank you,

  5. #5
    Valued Forum Contributor
    Join Date
    10-17-2007
    Location
    Tasmania, Australia
    MS-Off Ver
    2019, 365(v2310)
    Posts
    366

    Re: Please help correcting the formula for IF(ISNUMBER(MATCH with return yes or no formula

    If you paste AliG's or Pete's formula into B1 and copy down, the values in B22, B44, B71 change to Yes.

    Guessing you have pasted the suggestion into either of the above cells, which references A1

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

    Re: Please help correcting the formula for IF(ISNUMBER(MATCH with return yes or no formula

    In sheet 2 all numbers are stored as texts.(aligned on the left)
    If you type the number in sheet 1 it is stored as number (aligned on the right)
    and it is not recognized because on sheet 2 it is a text

  7. #7
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Please help correcting the formula for IF(ISNUMBER(MATCH with return yes or no formula

    You may thy this in Ali's formula.

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

  8. #8
    Registered User
    Join Date
    09-25-2012
    Location
    Seattle
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: Please help correcting the formula for IF(ISNUMBER(MATCH with return yes or no formula

    Thank you,

    It works...however I have thousands of rows and took lots of time to recalculate every time I add in a cell.
    Is there a way to modify the formula to allow faster recalculation.

    Thanks,

  9. #9
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Please help correcting the formula for IF(ISNUMBER(MATCH with return yes or no formula

    Which formula did you use?

    Once you enter the formula into cell B1, you can quickly copy it down the column by dragging it down, or by double-clicking the copy icon (the bottom right corner of the cursor).

    Hope this helps.

    Pete

  10. #10
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Please help correcting the formula for IF(ISNUMBER(MATCH with return yes or no formula

    Humm, I don't see this formula being the problem.

  11. #11
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Please help correcting the formula for IF(ISNUMBER(MATCH with return yes or no formula

    Using formulas only addresses the surface, and your original data remains unchanged.
    To address the root cause, you need to modify your data.
    Your data has two issues:
    Many cells have trailing spaces.
    Many values are stored as text.

    The quickest way is as follows:

    Step 1: Use Find & Replace to replace " " with "":
    Find What: (input 1 space)
    Replace with: Blank

    Step 2: Use Add Value to add 0 to number cells to convert text to value.
    Copy any empty cell.
    Select column A.
    Paste special: Operation: Add
    Attached Images Attached Images
    Quang PT

+ 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: 2
    Last Post: 11-28-2021, 01:20 PM
  2. [SOLVED] How to fit in Exact Match into an Index and Match formula that contains Isnumber
    By y0urd00md in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-19-2021, 07:27 AM
  3. Correcting index match formula
    By sunboy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-16-2020, 01:20 AM
  4. Correcting a formula INDEX + MATCH
    By hlc in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-28-2019, 11:44 AM
  5. Multiple lookup array for ISNUMBER (MATCH) formula
    By erincox2010 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-27-2018, 01:50 AM
  6. need slight edit to ISNUMBER)MATCH formula
    By tlacloche in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-26-2013, 10:01 AM
  7. [SOLVED] Alphanumeric 'ISNUMBER' formula to return 'Yes' or 'No'
    By RuthieBuxton in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 05-08-2013, 10:27 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