+ Reply to Thread
Results 1 to 12 of 12

Sumifs Statement Returning a #value Sign

  1. #1
    Registered User
    Join Date
    02-20-2012
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2010
    Posts
    74

    Sumifs Statement Returning a #value Sign

    Hi, I am hoping someone can help me solve this.

    I have six rows of data Date Field (01/2014) Vendor, Company, Product, Gross Profit and Revenue

    In another worksheet i am trying to do a sumif based on a selected date range however my formula keeps returning a #value sign and i can't figure out why.

    One one tab i have a date lookup (Data Validation) looking up the 1st column in my data sheet like this:
    Start Date = 01/2014
    End Date = 02/2014

    In the data there are multiple data points with this date.

    In the lookup field where my sumifs is i have it saying sum ifs where "3M" matches these date ranges but its returning a #value sign everytime. I've tried to troubleshoot and it still isn't working.

    Here is an example of my formula = =SUMIFS(BigSumRange,BigRange1,$H50,BigDateRange,">="&$P$48,BigDateRange,">="&$R$48)

    and a few rows of my data with an example of what i am trying to do. I am building a cascading drop dop in another workbook but i don't think that should change the sumif.
    Sumif.xlsx

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

    Re: Sumifs Statement Returning a #value Sign

    Can you post a book that actually includes the formula using the named ranges?
    The formula in that book is using regular hard coded ranges.


    FYI, the dates you have in column A are not really dates. They're just text strings.
    Confirmed with
    =ISNUMBER(A2) <- returns FALSE

  3. #3
    Registered User
    Join Date
    02-20-2012
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2010
    Posts
    74

    Re: Sumifs Statement Returning a #value Sign

    Okay, so how do i fix this so that it works properly?

  4. #4
    Registered User
    Join Date
    02-20-2012
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2010
    Posts
    74

    Re: Sumifs Statement Returning a #value Sign

    I tried to attached the sheet with the named ranges but its too large.

  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 Statement Returning a #value Sign

    Quote Originally Posted by krunk View Post
    Okay, so how do i fix this so that it works properly?
    I don't know, need to see the formula using the named ranges.

    The issue with the dates won't cause the formula to return #Value! error.
    It would just result in an incorrect answer, probalby 0

    Anyway, you can probably correct the dates by highlighting column A, Data - Text To Columns - Delminated - Finish
    That should convert all the strings to real dates (each will be the first of each month)

    But again, that's not the cause of the #Value! error

  6. #6
    Registered User
    Join Date
    02-20-2012
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2010
    Posts
    74

    Re: Sumifs Statement Returning a #value Sign

    I think i just figured out why it won't work, its excel 2003! so if i want to use a sumproduct formula how would i do that?

  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 Statement Returning a #value Sign

    If it was XL2003, you'd get the error #NAME?

    My best guess at the #VALUE! error is that your named ranges are not of equal demensions.
    They must all be the same size.

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

    Re: Sumifs Statement Returning a #value Sign

    Anyway, sumproduct equivelent would be

    =SUMPRODUCT(--(BigRange1=$H50),--(BigDateRange>=$P$48),--(BigDateRange<=$R$48),BigSumRange)

  9. #9
    Registered User
    Join Date
    02-20-2012
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2010
    Posts
    74

    Re: Sumifs Statement Returning a #value Sign

    Nope still did not work..

    Here are my named ranges =

    BigRange1=INDIRECT("Cascading!"&ADDRESS(2,MATCH(MyDashboard!$H$49,Cascading!$1:$1,0))&":"&ADDRESS(COUNTA(Cascading!$A:$A),MATCH(MyDashboard!$H$49,Cascading!$1:$1,0)))

    BigSumRange= =INDIRECT("Cascading!"&ADDRESS(2,MATCH(MyDashboard!$G$48,Cascading!$1:$1,0))&":"&ADDRESS(COUNTA(Cascading!$A:$A),MATCH(MyDashboard!$G$48,Cascading!$1:$1,0)))

    BigDateRange = =OFFSET(Cascading!$A$2,0,0,COUNTA(Cascading!$A:$A),1)

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

    Re: Sumifs Statement Returning a #value Sign

    Yep, they're not the same size.

    Let's say COUNTA(Cascading!$A:$A) = 10 just for example
    BirRange1 and BigSumRange use 10 directly as the end row #, so they end up with rows from 2 to 10

    However, BigDateRange is using a different method to create the rows.
    It offsets from A2 and creates a range that is 10 rows long.
    So it ends up with rows beginning in Row 2, 10 rows long, so it goes from row 2 to 11


    You need to decide which one is correct, my guess is BigRange1 and BigSumRange are the correct..
    So subtract 1 from the COUNTA in the BigDateRange

    or vice versa, ADD 1 to the counta in the other 2.

  11. #11
    Registered User
    Join Date
    02-20-2012
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2010
    Posts
    74

    Re: Sumifs Statement Returning a #value Sign

    OMG you are a genus. thank you.

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

    Re: Sumifs Statement Returning a #value Sign

    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] SUMIFS returning #VALUE
    By mglassco in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-06-2013, 06:45 PM
  2. SUMIFS returning #VALUE!
    By HarvardMajesty in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 01-27-2013, 10:35 PM
  3. [SOLVED] SUMIFS formula returning #VALUE!
    By Kuehl5000 in forum Excel General
    Replies: 3
    Last Post: 05-25-2012, 04:11 PM
  4. SUMIFS returning #VALUE!
    By Lifeseeker in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-08-2011, 08:59 AM
  5. Sumifs Value Returning Problem:
    By pipsturbo in forum Excel General
    Replies: 2
    Last Post: 09-23-2009, 04:39 PM

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