+ Reply to Thread
Results 1 to 10 of 10

If match return N/a

  1. #1
    Registered User
    Join Date
    01-29-2019
    Location
    London
    MS-Off Ver
    2013
    Posts
    10

    If match return N/a

    Hi Folks,

    Apologies for asking,

    I have this array formula which works fine as long it's having data, but if there is no data will return N/A

    =INDEX(LiveData!G:G,MATCH(1,(Sheet1!K6=LiveData!A:A)*(Sheet1!P6=LiveData!E:E),0))

    Is any chance that I can make this show 0 or nothing if there is no match between two words?

    Please let me know

    Thank you.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: If match return N/a

    Hi, welcome to the forum

    Try this...
    =iferror(INDEX(LiveData!G:G,MATCH(1,(Sheet1!K6=LiveData!A:A)*(Sheet1!P6=LiveData!E:E),0)),"")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    01-29-2019
    Location
    London
    MS-Off Ver
    2013
    Posts
    10

    Re: If match return N/a

    Thank you, works perfectly.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: If match return N/a

    You might also want to try this:

    =iferror(INDEX(LiveData!G1:G100,MATCH(1,INDEX((Sheet1!K6=LiveData!A1:A100)*(Sheet1!P6=LiveData!E1:E),0),0)),"")

    Your current formula might be slow as it is searching more than 1,000,000 rows. Adjust the ranges to be sensible... Also, this variant does NOT need to be entered as an array.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: If match return N/a

    Happy to help

  6. #6
    Registered User
    Join Date
    01-29-2019
    Location
    London
    MS-Off Ver
    2013
    Posts
    10

    Re: If match return N/a

    Hi,

    Just have a question regarding the N/A

    I have another issue, I have the array below;

    =IF(INDEX(LiveData!H:H,MATCH(1,(Report!B6=LiveData!A:A)*(Report!K6=LiveData!E:E),0))=0,"",INDEX(LiveData!H:H,MATCH(1,(Report!B6=LiveData!A:A)*(Report!K6=LiveData!E:E),0)))

    The formula above works fine, as long it matches two of my criteria and doesn't find the third will show me a blank cell which I need, but I have the case where you can match first criteria, but not the second as doesn't exist and the return value for my result is N/A when I should have a blank.

    Anyone that can help?

    example of data:

    Order Number Product 1 Status SCH Date Product 2 Status SCH Date
    1000 TESTA Order Entered 11/10/2020 TESTB Order Entered 11/10/2020
    1001 TESTB Order Entered 20/10/2020 TESTC #N/A
    1002 TESTC Order Entered 20/10/2020 TESTA Order Entered 11/10/2020
    1003 TESTD Order Entered 20/10/2020 TESTA Order Entered



    As you can see above the array is showing blank on the last product as there is a match for order number, product2, the result is blank

    my issue is with the second order on which there is a match or not for the order but the result is N/A and I wish to display blank if there is no matching result.

    any can help, please?

  7. #7
    Registered User
    Join Date
    01-29-2019
    Location
    London
    MS-Off Ver
    2013
    Posts
    10

    Re: If match return N/a

    Hi Glenn,

    Your formula works fine, it does return Blank if there is two match, if there is no match will return back to me as 00/01/1900

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: If match return N/a

    Maybe:
    =iferror(INDEX(LiveData!G1:G100,MATCH(1,INDEX((Sheet1!K6=LiveData!A1:A100)*(Sheet1!P6=LiveData!E1:E),0),0))&"","")

    BUT... Best solutions = sample excel sheet.

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? However, please give us an indication of the approximate number of rows of data you want the solution to work with (100, 1000, 100,000 or whatever). Please don't attach a picture of an Excel sheet (no-one will want to re-type all your stuff before starting).

    1. It does NOT have to be your real sheet - mock up a SAMPLE if you need to. But not 1000's of rows!!! It makes manual checking so tedious. Whatever you do... make sure that all confidential information is removed first!!

    2. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    3. Make sure that your desired solution is also shown (mock up the results manually).

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

  9. #9
    Registered User
    Join Date
    01-29-2019
    Location
    London
    MS-Off Ver
    2013
    Posts
    10

    Re: If match return N/a

    Hi,

    I have attached sample data.

    I'm entering my details on DataEntry

    The source data is taken from LiveData

    The report will show me the details I need, which is the one I'm having issues making it work.
    Attached Files Attached Files

  10. #10
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,556

    Re: If match return N/a

    Assuming that you are using the formula to populate column L this modification of Glenn's formula yields either the value from LiveData column G or a blank:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    It would be easier to help, as Glenn states, if the desired results were shown and explained.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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: 6
    Last Post: 09-03-2015, 09:51 PM
  2. [SOLVED] Combining 3 Formulas: Return all Names that Match Criteria Using Index/Match
    By bchilme in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 09-29-2014, 09:28 AM
  3. Replies: 3
    Last Post: 05-08-2013, 02:10 PM
  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. Replies: 20
    Last Post: 04-15-2013, 01:06 PM
  6. [SOLVED] Two Excel sheets trying to match text data and return the match from the second column!
    By bankcott in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-02-2013, 02:17 PM
  7. Replies: 2
    Last Post: 11-12-2012, 06:26 AM

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