+ Reply to Thread
Results 1 to 6 of 6

Constant value causing #value! error????

  1. #1
    Forum Contributor
    Join Date
    10-27-2009
    Location
    San Diego California
    MS-Off Ver
    Excel 2010
    Posts
    160

    Constant value causing #value! error????

    I have a sumifs formula that appears to be correct in every way, I have successfully used them in other worksheets but this one is stumping me.
    The formula in S6 is meant to be copied across and down thru Y57.
    I inserted row 5 with numbers vs. location name to attempt to correct the error but no luck.
    It may be something simple I'm missing, can anyone find the cause of the error in the attached file?
    Thanks,
    #VALUE! ERROR FIX NEEDED 5-29-14.xlsm

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

    Re: Constant value causing #value! error????

    You can't do that with Sumifs.
    The ranges must be of equal dimensions.
    So you can't do one criteria in a column C6:C92
    And a 2nd criteria in a row E5:K5


    Try this in S6 filled right/down

    =SUMIF($D$6:$D$92,$R6,INDEX($E$6:$K$92,0,MATCH(S$4,$E$4:$K$4,0)))

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

    Re: Constant value causing #value! error????

    Or if the headers in S4:Y4 are the same as the headers in E4:K4 (and in the same order left to right)
    Then it's just
    =SUMIF($D$6:$D$92,$R6,E$6:E$92)

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,645

    Re: Constant value causing #value! error????

    I think the problem might be the second criteria range $E$5:$K$5, each criteria range has to be the same size as the sum range.
    If posting code please use code tags, see here.

  5. #5
    Forum Contributor
    Join Date
    10-27-2009
    Location
    San Diego California
    MS-Off Ver
    Excel 2010
    Posts
    160

    Re: Constant value causing #value! error????

    The Index-Match formula worked as well as the other one, thanks JonMo1 for that. I knew it might hinge around my ranges, just didn't stumble on the solution.
    Learn something every day.

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

    Re: Constant value causing #value! error????

    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. Checkbox causing error
    By ezzzcel in forum Excel General
    Replies: 8
    Last Post: 03-02-2015, 12:33 AM
  2. DTPicker Not available causing error
    By djsouljah in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-14-2013, 11:08 AM
  3. [SOLVED] Compile error: Constant expression required error when merging two Codes
    By Kezwick in forum Outlook Programming / VBA / Macros
    Replies: 8
    Last Post: 06-26-2013, 09:32 AM
  4. quotes causing error
    By dftf in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-02-2009, 03:27 PM
  5. INDEX, IF with AND causing #NUM! error
    By cedarhill in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-10-2009, 01:33 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