+ Reply to Thread
Results 1 to 10 of 10

Display different types of error if accurate results not found on multiple match

  1. #1
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Display different types of error if accurate results not found on multiple match

    Hi,
    Currently I am using below formula

    {(INDEX(S!$BC$4:$BC$249,MATCH(D!T2&V2&X2,S!$A$4:$A$5000&S!$V$4:$V$5000&S!$AJ$4:$AJ$5000,0))}

    What I want is that-

    1.To display error of data containing in cell reference : D!$T$1 (If out of 3, 1st match is not found)

    2.To display error of data containing in cell reference : D!$V$1 (If out of 3, 2nd match is not found which mean 1st & 3rd match found

    3.To display error of data containing in cell reference : D!$X$1 (If out of 3, 3rd match is not found which mean 1st & 2nd match found

    4.To display error of data containing in cell reference : D!$V$1&D!$X$1 (If out of 3, 2 &3rd match is not found which mean 1st match is only found)
    & likewise.

    Currently using above formula I am getting #NA error which I want to elaborate much deeper the cause using above cell reference.
    Anyone can alter the formula or provide the best or comprehensive formula taking into account above things.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,604

    Re: Display different types of error if accurate results not found on multiple match

    800 posts and no workbook
    Your index range is 246 rows 4 -249. Your match range is 4997 rows so what happen if the match is found in row 250, or 2500, ...?
    Ben Van Johnson

  3. #3
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Display different types of error if accurate results not found on multiple match

    If the match is found it will display the result from column B i.e within range S!$BC$4:$BC$249.All is about bifurcation of #NA error

  4. #4
    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,647

    Re: Display different types of error if accurate results not found on multiple match

    This won't be possible without VBA, if at all. Shall I move the thread?

    Please don't ignore requests to provide a workbook.
    Last edited by AliGW; 05-10-2020 at 03:12 AM.
    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.

  5. #5
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Display different types of error if accurate results not found on multiple match

    Sure you can move.I will sure provide workbook soon as I have to minimise data from original file.

  6. #6
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Display different types of error if accurate results not found on multiple match

    Ok I have added file and done little changes the references and worksheet name and added few data.I have mentioned sample results which I require in BD column of DO worksheet and highlighted with green.

    Let me explain again,matching is done between two worksheet DO column AY with that of worksheet SO column BD .Now if match is not found it will display error.Here only the error part bifurcation I require which I have mentioned in BD column of DO worksheet.

    Plz note matching of multiple columns can be done by any formula so this can be altered as per flexibility but the error description is most important which I have mentioned.
    Attached Files Attached Files
    Last edited by paradise2sr; 05-10-2020 at 11:59 PM.

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

    Re: Display different types of error if accurate results not found on multiple match

    Well, since no one else has answered yet, I'll give you my solution - it seems to work, but it's not elegant. You can probably make it more elegant, but I don't have the time to put into and, like I said, it seems to work. It involves several helper columns to make it simpler for me (which I've hidden in the attachment for aesthetics, but you can unhide them to see. The helper columns check for each column to match on. Since you are on Excel V2019, you have access to formula TEXTJOIN, which I also employ.

    After checking to see if each element matched, I put this formula in BD2 and copied it down:
    =IF(BE2="***SaleOrderNo","***Sales Order",BF2&TEXTJOIN(" &",TRUE,BG2:BI2))

    Please see the attached.
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Display different types of error if accurate results not found on multiple match

    Thanx for your response.If you could club into a single formula that would be most benefitted to me since I have to deal with large data set with several other formula it.in it.
    Last edited by paradise2sr; 05-12-2020 at 08:08 AM.

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

    Re: Display different types of error if accurate results not found on multiple match

    1. I think it would be better as helper columns for ease of modifying later instead of having one huge formula that's hard to decipher.
    2. You can put these helper columns in any column you want (way far to the right if you want) so they are out of the way, plus, like I said, you can hide them.
    3. I'm not even sure it can be put into one formula, so I can't help there, sorry.

  10. #10
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Display different types of error if accurate results not found on multiple match

    I hope someone would help us in deriving into single one.

+ 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. [SOLVED] Reset script error 13: types do not match
    By Solvax in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-23-2018, 10:56 AM
  2. Index and match display multiple results?
    By oskar.dlugolecki in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-07-2017, 07:24 AM
  3. [SOLVED] Help on Error message when no results found
    By chrisandsally in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-23-2015, 05:50 PM
  4. [SOLVED] Index/Match Multiple Criteria not accurate
    By Groovicles in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-20-2015, 05:55 PM
  5. Replies: 6
    Last Post: 08-16-2013, 08:46 AM
  6. [SOLVED] Display search results inluding results that match patrially
    By RichTea88 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-06-2013, 08:52 AM
  7. Error in Filter Macro when no results found
    By aravindhan_31 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-13-2012, 08: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