+ Reply to Thread
Results 1 to 7 of 7

Sumifs formula giving #value even though each part individually works as a sum formula

  1. #1
    Registered User
    Join Date
    09-04-2009
    Location
    Gloucestershire, England
    MS-Off Ver
    Excel 2010
    Posts
    45

    Unhappy Sumifs formula giving #value even though each part individually works as a sum formula

    I need to calculate in sheet 2 based on criteria in sheet1. Each part of the sumifs formula works on its own as a sum formula but as soon as I try it as a sumifs formula it will not work. Please can you tell me what I am doing wrong.

    Formula in C12 of sheet 2: =SUMIFS(Sheet1!$F$4:$H$999,Country,Sheet2!A12,Certified_Type,Sheet2!B12,SaleDate,Sheet2!$O$1,Certificate_of_Origin,1)

    I have checked that the ranges are all equivalent size, and have added a formula to change the date from datetime to date only in column AA of sheet 1.
    columns AA,AB, AC & AD in sheet 1 also contain formulas so I am hoping that this will not be the problem
    Column AB formula is: =IF(OR(SUM(F4:H4)>0,SUM(O4:Q4)>0),1,"")

    Please see attached example workbook

    Thank you in advance
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Sumifs formula giving #value even though each part individually works as a sum formula

    SOM.ALS(Country;A4;'G:\CRM Data\Unity\Phase 3\MANUAL UPLOAD CHECKING FILES\[export docs matrix check 1.xlsx]Sheet1'!F4:H999)

    Is this file open if you make the calculation?
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Sumifs formula giving #value even though each part individually works as a sum formula

    Quote Originally Posted by carrach View Post
    I have checked that the ranges are all equivalent size.
    But they're not....

    The SumRange (Sheet1!$F$4:$H$999) is 3 columns
    But each of the named ranges are only 1 column each.

    Why is the sum range covering 3 columns anyway? Change that to just
    Sheet1!$F$4:$F$999

  4. #4
    Registered User
    Join Date
    09-04-2009
    Location
    Gloucestershire, England
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: Sumifs formula giving #value even though each part individually works as a sum formula

    Jommo1 - because I need it to sum all 3 columns as 1 total - is that not possible?
    Oeldere - sorry that is because my original file is called export docs matrix check 1 and it has copied across into the example sheet.

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Sumifs formula giving #value even though each part individually works as a sum formula

    Quote Originally Posted by carrach View Post
    Jommo1 - because I need it to sum all 3 columns as 1 total - is that not possible?
    Not with SumifS - All ranges MUST be the same dimensions (both rows and columns)

    Try
    =SUMPRODUCT(Sheet1!$F$4:$H$999*(Country=Sheet2!A12)*(Certified_Type=Sheet2!B12)*(SaleDate=Sheet2!$O$1)*(Certificate_of_Origin=1))

    Note, this will error if there are any text values in F4:H999
    Last edited by Jonmo1; 01-08-2015 at 10:23 AM.

  6. #6
    Registered User
    Join Date
    09-04-2009
    Location
    Gloucestershire, England
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: Sumifs formula giving #value even though each part individually works as a sum formula

    That worked brilliantly. thank you so much. Hadn't realised that the sumrange had to be 1 column wide as well so thank you for that clarification

  7. #7
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Sumifs formula giving #value even though each part individually works as a sum formula

    Glad to help, thanks for the feedback.

+ 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] SUMIF Formula works but giving too many results
    By kaplanj23 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-26-2014, 11:02 AM
  2. [SOLVED] Either/Or within a SUMIFS formula (part of a weighted average formula)
    By macrorookie in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-11-2014, 09:56 PM
  3. [SOLVED] Master formula sheet works but is giving #NUM for data worksheet
    By Gavalar in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-04-2014, 12:03 PM
  4. [SOLVED] SUMIFS Formula not giving desired result
    By lukemelville in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-12-2013, 09:15 AM
  5. Formula works but not when part of the main formula?
    By dudanation in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-22-2013, 08:58 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