+ Reply to Thread
Results 1 to 4 of 4

SumIf Error

  1. #1
    Registered User
    Join Date
    03-13-2007
    Posts
    71

    SumIf Error

    Afternoon,

    I have written the formula below, to sum a range of data, if it corresponds to January.

    =SUMIF($Q$17:$Q$65536,"January",$R$17:$R$65536)

    However, at times there will be an error in the sum range (#N/A)

    What I would like is a formula, based on the above, that will tell Excel to ignore any cell which has an error.

    Alternatively - if this is not possible, if there is an error in the sum range, the total should = " ".

    Regards

    Howardjo

  2. #2
    Forum Contributor
    Join Date
    02-28-2006
    Posts
    690
    try using
    =if(iserror(yourformula)," ",yourformula)

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,717
    To treat errors in the sum range as zeroes try this array formula

    =SUM(IF($Q$17:$Q$65536="January",IF(ISNUMBER( $R$17:$R$65536),$R$17:$R$65536)))

    needs to be confirmed with CTRL+SHIFT+ENTER so that curly braces like { and } appear around the formula in the formula bar

  4. #4
    Registered User
    Join Date
    03-13-2007
    Posts
    71

    Solved

    Thanks for your time in looking at this,

    I have this working now.

    Regards

    Howardjo

+ 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