+ Reply to Thread
Results 1 to 3 of 3

Can't determine why I'm getting #Value for Sumifs function

  1. #1
    Registered User
    Join Date
    09-23-2014
    Location
    Wisconsin
    MS-Off Ver
    2013
    Posts
    28

    Can't determine why I'm getting #Value for Sumifs function

    I'm trying to calculate total walking distances for users by week when I have daily data.

    In row 2, I have the week number and in column A, I have the users. In cells b3:BS10, I have their actual miles.

    Named ranges are: DailyWeek (B2:BS2), DailyMiles (B3:BS10), Walkers (A3:A10)

    My weeks and walkers are formatted as text and my miles are formatted as number

    My formula is this: =SUMIFS($B$3:$BS$10,DailyWeek,"1",A3:A10,"XXX") and I continue to get a #Value error, but I don't understand why if everything is formatted the way it should be. Please help!

    My workbook is attached.
    Attached Files Attached Files
    Last edited by jlheath01; 01-30-2015 at 02:38 PM.

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

    Re: Can't determine why I'm getting #Value for Sumifs function

    The ranges must be the same dimensions in Sumifs..

    You have 2 ranges going accross 1 row from column B to BS, but the last range is going down a single column from row 3 to 10.
    Can't do that..

    Try
    =SUMPRODUCT((DailyWeek=1)*(A3:A10="XXX")*($B$3:$BS$10))

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Can't determine why I'm getting #Value for Sumifs function

    Put this formula in B13:

    =SUMPRODUCT($B$3:$BS$10,(DailyWeek=--SUBSTITUTE(LEFT(B$12,FIND("-",B$12)-1),"Week",""))*($A$3:$A$10=$A13))

    then you can copy this across and down that lower summary table. Note that your week numbers in row 2 are numerical values (though the cells are formatted as text), hence the need for the -- in the middle of the formula, but if you change the week numbers then you will need to omit this part.

    Hope this helps.

    Pete

+ 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 / or function help
    By HATLET in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-03-2014, 11:06 AM
  2. Help nesting an OR function inside a SUMIFS function
    By wes228 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-21-2014, 06:22 PM
  3. [SOLVED] Using IF function to determine your value.
    By Manuel Pedro in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-06-2014, 09:25 AM
  4. [SOLVED] SUMIFS function?
    By jed38 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2012, 04:33 PM
  5. OR function in SUMIFS
    By skysurfer in forum Excel General
    Replies: 6
    Last Post: 05-09-2012, 02:41 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