+ Reply to Thread
Results 1 to 16 of 16

INDEX MATCH Not returing 0 (zero).

  1. #1
    Registered User
    Join Date
    01-17-2016
    Location
    England
    MS-Off Ver
    2013
    Posts
    23

    INDEX MATCH Not returing 0 (zero).

    I have a datasheet, I need to return the value from column D based on criteria in 2 other columns (A and B).

    I keep getting blank cell when it should be returning 0.

    =INDEX(Data!D1:D1481,MATCH(1,($A7=Data!A1:A1481)*($A8=Data!B1:B1481),0))

    What do I need to do to make the formula return the 0?

    Thanks in advance.
    Kerry

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

    Re: INDEX MATCH Not returing 0 (zero).

    Hi, welcome to the forum

    If is returning nothing, maybe there is nothing to return?

    perhaps...
    =IF(INDEX(Data!D1:D1481,MATCH(1,($A7=Data!A1:A1481)*($A8=Data!B1:B1481),0))="","",=INDEX(Data!D1:D1481,MATCH(1,($A7=Data!A1:A1481)*($A8=Data!B1:B1481),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
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,552

    Re: INDEX MATCH Not returing 0 (zero).

    I think that is an Array Formula and would need to be committed with Ctrl-Shift-Enter rather than just Enter.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: INDEX MATCH Not returing 0 (zero).

    Is the sheet set up to display zeroes?
    Go to File > Options > Advanced, scroll down until you find 'Display options for this worksheet', check if 'Show a zero in cells that have zero value' is ticked - if not, then tick it.
    (The option might be somewhere slightly different for you in Excel 2013 - that's where it is in 2010.)


    Edit: It's more likely that TMS's suggestion above is the solution you need.
    Last edited by Aardigspook; 01-17-2016 at 07:54 PM. Reason: Refer to other solution
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

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

    Re: INDEX MATCH Not returing 0 (zero).

    I think Trevor has hit it, there

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,552

    Re: INDEX MATCH Not returing 0 (zero).

    Well, CSE certainly works for me with a very, very simple test case.

    Regards, TMS

  7. #7
    Registered User
    Join Date
    01-17-2016
    Location
    England
    MS-Off Ver
    2013
    Posts
    23

    Re: INDEX MATCH Not returing 0 (zero).

    Thank you for your reply. It is already entered as an array formula, I just forgot to add in the {} when I pasted the formula above.

  8. #8
    Registered User
    Join Date
    01-17-2016
    Location
    England
    MS-Off Ver
    2013
    Posts
    23

    Re: INDEX MATCH Not returing 0 (zero).

    Workbook is also set to show zeros.

    On the sheet with my data in, I have used filters to manually find if there is something to return and there is definitely 0.
    I must return the 0, I am unable to leave it blank because some of my results will be blank and we need to know the difference.

  9. #9
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: INDEX MATCH Not returing 0 (zero).

    you dont need to type curly braces by your self in the formula provided by Fdibbins
    fdibbins provided
    =IF(INDEX(Data!D1:D1481,MATCH(1,($A7=Data!A1:A1481)*($A8=Data!B1:B1481),0))="","",=INDEX(Data!D1:D1481,MATCH(1,($A7=Data!A1:A1481)*($A8=Data!B1:B1481),0)))
    At the same time I think you need to remove = sign in red colour provided by Fdibbins


    you need to copy paste above then hold control and shift together and hit enter instead of just Enter


    Curly braces will come automatically confirming the entry of formula as array.
    Last edited by hemesh; 01-18-2016 at 05:49 AM.
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  10. #10
    Registered User
    Join Date
    01-17-2016
    Location
    England
    MS-Off Ver
    2013
    Posts
    23

    Re: INDEX MATCH Not returing 0 (zero).

    Just to confirm, I haven't been typing curly brackets in myself, I've been entering it as array formula with Ctrl Shift Enter.

    However, when I copied the from the formula bar and pasted here the curly brackets don't copy, so I just meant i'd not added them to the formula here to show people it was an array.

  11. #11
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,552

    Re: INDEX MATCH Not returing 0 (zero).

    If you are getting a "blank" cell, I suspect the cell has a space in it. If you match on the values and the cell to be returned has a zero (0) OR is (truly) blank/empty, you would get a zero returned.

  12. #12
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,552

    Re: INDEX MATCH Not returing 0 (zero).

    Suggest you post a sample workbook.

  13. #13
    Registered User
    Join Date
    01-17-2016
    Location
    England
    MS-Off Ver
    2013
    Posts
    23

    Re: INDEX MATCH Not returing 0 (zero).

    I have attached the formula and data sheet so you can take a look (if you don't mind).
    If I change the 0 to any other number then that number is returned by the formula, but just zero is not!

    Thank you.


    index match problem.xlsx

  14. #14
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,552

    Re: INDEX MATCH Not returing 0 (zero).

    You have a custom number format, 0;-0;;@, which hides zero value

  15. #15
    Registered User
    Join Date
    01-17-2016
    Location
    England
    MS-Off Ver
    2013
    Posts
    23

    Re: INDEX MATCH Not returing 0 (zero).

    ah ok...can't believe I didn't check that!
    brilliant thanks

  16. #16
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,552

    Re: INDEX MATCH Not returing 0 (zero).

    You're welcome.




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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] Match-Index in stead of Index-Match lookup Array among Arrays
    By Numnum in forum Excel General
    Replies: 2
    Last Post: 10-15-2015, 02:08 PM
  2. INDEX MATCH MATCH/OFFSET MATCH MATCH with named ranges
    By Andrew-Mark in forum Excel General
    Replies: 3
    Last Post: 02-27-2015, 10:56 PM
  3. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  4. Replies: 6
    Last Post: 11-08-2013, 10:29 PM
  5. Replies: 3
    Last Post: 05-02-2013, 01:31 AM
  6. Returing multiple values with MATCH function
    By tadrose in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-13-2012, 09:00 AM
  7. Index & Match returing the first name every time
    By kcjaries78 in forum Excel General
    Replies: 3
    Last Post: 04-25-2009, 12:08 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