+ Reply to Thread
Results 1 to 7 of 7

Index and Match return 0.00 when the reference is empty

  1. #1
    Registered User
    Join Date
    12-14-2021
    Location
    kuching
    MS-Off Ver
    home: Excel 365, working: Excel 2016
    Posts
    50

    Index and Match return 0.00 when the reference is empty

    hi,
    In "moderation" sheet I try index and match from $N$10:$N$18 marks to Y10:Y25 but if $N$10:$N$18
    is empty it returns 0.00 instead of empty ("").
    Formula in Y10: =IFERROR(INDEX($N$10:$N$18,MATCH(V12,$C$10:$C$18,0)),"")
    I need help from my friend here. Thank you very much.

    Visual Explanation in sheets "Explanation"

    sample files
    Attached Files Attached Files
    Last edited by habids; 01-07-2023 at 07:17 AM.

  2. #2
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: Index and Match return 0.00 when the reference is empty

    One way: Custom format your cells as: "0.00;;".

    Now the zeros are invisible, because after the second semicolon is nothing.

  3. #3
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Index and Match return 0.00 when the reference is empty

    I agree with the solution proposed by Hans above, however, hiding the zero result with formatting could have repercussions with other formulas (averages based on those cells etc.).
    You could use the formula below.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    BSB

  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,139

    Re: Index and Match return 0.00 when the reference is empty

    If you are returning NUMBERS, you can also use:

    =IFERROR(1/(1/INDEX($N$10:$N$18,MATCH(V12,$C$10:$C$18,0))),"")

    or if TEXT:

    =IFERROR(INDEX($N$10:$N$18,MATCH(V12,$C$10:$C$18,0))&"","")
    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

  5. #5
    Registered User
    Join Date
    12-14-2021
    Location
    kuching
    MS-Off Ver
    home: Excel 365, working: Excel 2016
    Posts
    50

    Re: Index and Match return 0.00 when the reference is empty

    Thank you very much to BadlySpelledBuoy and Glenn Kennedy. Both of the formula (Function) run smoothly. I am try several days but you just a few minute or may be a few second. One again thank you very much.

  6. #6
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Index and Match return 0.00 when the reference is empty

    It's only easy when you know how

    BSB

  7. #7
    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,139

    Re: Index and Match return 0.00 when the reference is empty

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please click on "Thread Tools" from the menu link (just above the first post in the thread) and 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. Replies: 3
    Last Post: 08-30-2020, 02:07 AM
  2. [SOLVED] Error handling if range is empty and to reference a workbook index name from a cell
    By dummy777 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-03-2020, 09:00 AM
  3. Replies: 3
    Last Post: 04-07-2020, 11:58 AM
  4. Replies: 6
    Last Post: 05-22-2019, 11:29 PM
  5. [SOLVED] Index / Match - match 3 input values and return the results from the index
    By t83357 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-08-2016, 07:34 PM
  6. Replies: 4
    Last Post: 01-13-2014, 04:16 AM
  7. Replies: 1
    Last Post: 08-16-2012, 12:59 PM

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