+ Reply to Thread
Results 1 to 8 of 8

Why #VALLUE! error on "correct" formula in Excel 2007?

  1. #1
    Registered User
    Join Date
    12-14-2013
    Location
    NYC
    MS-Off Ver
    Excel 2007
    Posts
    3

    Question Why #VALLUE! error on "correct" formula in Excel 2007?

    I'm getting an unexpected #VALUE! error in Excel 2007 for this formula (sample file attached):

    =SUM(C95+(B96:B99))

    All cells are the same format, Currency. When I step through the calculation, the second part, (B96:B99), generates the error. Believe it or not, when I entered the formula without the closing second paren, Excel suggested THIS formula as the correction and then returned the #VALUE! error. Does anyone know why this is happening or how to fix it? I'm sure I've used this type of formula before and had no problems.

    Kristi

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,953

    Re: Why #VALLUE! error on "correct" formula in Excel 2007?

    I don't see your attachment.
    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    12-14-2013
    Location
    NYC
    MS-Off Ver
    Excel 2007
    Posts
    3

    Smile Re: Why #VALLUE! error on "correct" formula in Excel 2007?

    Sorry--new user. I selected the doc but didn't upload! Attached now, short and sweet example.
    Attached Files Attached Files

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Why #VALLUE! error on "correct" formula in Excel 2007?

    Welcome to the forum

    Havnt looked at your file (I wil though), but try putting the C95+ outsude the SUM()
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Why #VALLUE! error on "correct" formula in Excel 2007?

    You get the #VALUE! error because that formula is an array formula and needs to be entered using the key combination of CTRL, SHIFT, ENTER. That is, hold down both the CTRL and SHIFT keys then press ENTER.

    What the formula is doing is this:

    SUM(C95+B96,C95+B97,C95+B98,C95+B99)

    Is that your intention?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Why #VALLUE! error on "correct" formula in Excel 2007?

    or perhaps this...
    =SUM(B96:B99,C95)

    What exactly are you trying to achieve here? maybe subtotal(9,range) would help?

  7. #7
    Registered User
    Join Date
    12-14-2013
    Location
    NYC
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Why #VALLUE! error on "correct" formula in Excel 2007?

    Yikes, not at all my intention! I meant to do simple math and thought I could use a range for B96:B99 rather than listing them out, like this:

    B95-(B89-C89)+B96+B97+B98+B99

    The value I want is $1,306.75 (C95) + $430.00 (B96+B97+B98+B99) = $1,736.75.

    I realize I could've just created 2 subtotals and added them together--didn't occur to me that what I was trying wouldn't work. I feel pretty silly now. So I can learn/understand, is my use of the range what turned this into an array--or I can just look that up myself in the Excel docs.

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Why #VALLUE! error on "correct" formula in Excel 2007?

    Quote Originally Posted by pollyannadanna View Post
    is my use of the range what turned this into an array
    It's an array formula because you're performing the action of adding the value of cell C95 to each cell value in the range B95:B99.

    =SUM(C95+(B96:B99))

+ 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] Excel 2007: How to Convert "5/2/2013" to "May" then subtract a Month so it's "Apr"
    By Golom in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-19-2013, 02:00 AM
  2. solution for the blank cell using the IF function
    By ragnaedge in forum Excel General
    Replies: 4
    Last Post: 08-23-2013, 11:03 AM
  3. [SOLVED] VBA Excel 2007 : Autofit Merge Cells Error "Run-time error '13': Type Mismatch"
    By Hudas in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-18-2012, 04:10 PM
  4. Replies: 3
    Last Post: 07-08-2011, 02:37 PM
  5. [SOLVED] How do I correct Runtime error "53" in excel 2003
    By mendip04 in forum Excel General
    Replies: 1
    Last Post: 12-12-2005, 06:25 PM

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