+ Reply to Thread
Results 1 to 4 of 4

Replace #N/A error with 0 in my index match

Hybrid View

  1. #1
    Registered User
    Join Date
    10-22-2013
    Location
    USA
    MS-Off Ver
    MS365 Version 2208
    Posts
    7

    Replace #N/A error with 0 in my index match

    Hi! I'm trying to replace #N/A error with 0 in my index match. The #N/A are expected. I know all the lookups don't have matches.

    =INDEX(Forcast!$F:$M,MATCH($A6&$B2&B1,Forcast!A:A&Forcast!C:C&Forcast!D:D,0),MATCH($B$3,Forcast!$F$3:$M$3,0))
    I tried iserror but got a too many arguments error. I know that is me messing it up!

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

    Re: Replace #N/A error with 0 in my index match

    This should work:

    =IFNA(INDEX(Forcast!$F:$M,MATCH($A6&$B2&B1,Forcast!A:A&Forcast!C:C&Forcast!D:D,0),MATCH($B$3,Forcast!$F$3:$M$3,0)),0)
    Last edited by AliGW; 06-02-2023 at 09:20 AM. Reason: Colour added to text.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    10-22-2013
    Location
    USA
    MS-Off Ver
    MS365 Version 2208
    Posts
    7

    Re: Replace #N/A error with 0 in my index match

    Wow! thanks! Not going to lie that makes me feel a little dumb. I didn't even think of IFNA.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,796

    Re: Replace #N/A error with 0 in my index match

    LOL! Been there, got the T-shirt ...

+ 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. Index match - replace tab reference
    By bernard.x in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-18-2020, 07:22 AM
  2. [SOLVED] INDEX MATCH with MID or REPLACE
    By Emile du Toit in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-12-2017, 02:29 PM
  3. [SOLVED] How to replace VLOOKUP with INDEX and MATCH
    By jackson_hollon in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-06-2014, 04:38 PM
  4. Replies: 3
    Last Post: 05-02-2013, 01:31 AM
  5. Match and replace with index
    By prayami in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-26-2011, 08:51 PM
  6. Match, Index, Data replace.
    By JapanDave in forum Excel General
    Replies: 3
    Last Post: 08-01-2011, 12:52 AM
  7. [SOLVED] index/match/replace
    By InventoryQueryGuy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-13-2006, 11:10 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