+ Reply to Thread
Results 1 to 4 of 4

INDEX/MATCH: how to prevent #N/A error

  1. #1
    Registered User
    Join Date
    10-01-2008
    Location
    sydney
    Posts
    16

    Question INDEX/MATCH: how to prevent #N/A error

    Hi Valued Forum Members,

    I have a situation in which I want to SUM several costs in separate columns according to the date to which they correspond.

    (see attached sheet with dummy example)

    eg: any cost falling on April 3, sum them and give the total amount.

    I can achieve this using iterations of the following formula:

    Please Login or Register  to view this content.
    My problem is that if the date range in columns L or O don't fall within the range in column F (which will always be FIXED), the formula returns #N/A.

    Is there any way in which I can still add all the values, but override the error if the dates don't happen to (always) match?

    Regards,

    Z.
    Attached Files Attached Files
    Last edited by zusammen; 04-07-2009 at 09:39 AM.

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: INDEX/MATCH: how to prevent #N/A error

    Hi Z,

    Try this:

    Please Login or Register  to view this content.
    Cheers,
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,721

    Re: INDEX/MATCH: how to prevent #N/A error

    Simpler to use SUMIF, I think. Try this formula in I7

    =SUMIF(L$7:O$37,H7,M$7:P$37)+SUM(C7:E7)

    format as general and copy down

  4. #4
    Registered User
    Join Date
    10-01-2008
    Location
    sydney
    Posts
    16

    Re: INDEX/MATCH: how to prevent #N/A error

    Thanks Guys. Much appreciated.

    FYI: I used the SUMIF solution and it works a treat.

    Regards,

    Z.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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