+ Reply to Thread
Results 1 to 4 of 4

Cannot figure out why Excel objects to a simple forumula

  1. #1
    Registered User
    Join Date
    09-28-2021
    Location
    Vancouver Island, BC
    MS-Off Ver
    2016
    Posts
    2

    Cannot figure out why Excel objects to a simple forumula

    Hi!

    I have been using Excel for years. My spreadsheets use very simple formulas, but this one has me stumped.

    I use Excel to track inventory. As orders are fulfilled, I want the total to reduce. My beginning inventory figure is 100. Each sale will be entered in the next cell below - B2, B3, etc.

    Snap 2021-09-28 at 12.01.31.jpg

    #VALUE! is the result of the formula. But if I enter the formula as: +100-B1-B2-B3....etc., the correct result is returned.

    What am I missing??

    Thank for any and all help.

    Doug

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,834

    Re: Cannot figure out why Excel objects to a simple forumula

    try

    =100-SUM(B1:B6)
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Valued Forum Contributor
    Join Date
    07-13-2021
    Location
    California, USA
    MS-Off Ver
    2010
    Posts
    513

    Re: Cannot figure out why Excel objects to a simple forumula

    Quote Originally Posted by Coventry_Kid View Post
    #VALUE! is the result of the formula. But if I enter the formula as: +100-B1-B2-B3....etc., the correct result is returned.
    If that is your intent, then write =100-SUM(B1:B4) .

    (Aha! JT beat me to posting that solution. But the following might still be helpful -- or TMI.)

    When you write =100-B1:B4, Excel does not know how to interpret -B1:B4.

    In fact, be thankful that Excel returned a #VALUE error. If you entered =100-B1:B4 somewhere in row 1 through 4, Excel would have returned a numeric value, which you might not have realized was incorrect.

    In the context =100-B1:B4, the form of B1:B4 is interpreted as "implicit interception" in older versions of Excel. That is, an array of values from which Excel selects a single value, depending on the row in which the formula is entered.

    I'm not sure how newer versions of Excel interpret B1:B4 in that context. The "implicit" interception would be denoted by the operator "@", to wit: =100-@B1:B4. But even then, I suspect that Excel would not know what to do with @B1:B4.

    PS.... Oh! I keep forgetting that I can try these things in Excel Online, a dumbed-down version of Office 365 Excel, I think. If we enter =100-B1:B4, Excel Online does a "spill", which behaves like a range of formulas of the form =100-B1 copied down. But =100-@B1:B4 still returns a #VALUE# error, again because Excel does not know what to do with @B1:B4.
    Last edited by curiouscat408; 09-28-2021 at 03:26 PM.

  4. #4
    Registered User
    Join Date
    09-28-2021
    Location
    Vancouver Island, BC
    MS-Off Ver
    2016
    Posts
    2

    Re: Cannot figure out why Excel objects to a simple forumula

    Thank you John! Problem solved.

    Thanks too CuriousCat!

+ 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] very simple but cant figure it out:(
    By Excl3454 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-04-2021, 06:18 PM
  2. Cannot figure out how to make a simple chart anymore in Excel
    By DermotMW in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 11-19-2020, 06:35 AM
  3. Simple Calc, but can't get forumula right
    By viperiii in forum Excel General
    Replies: 3
    Last Post: 08-29-2015, 07:49 PM
  4. To simple to figure out.
    By elsdon in forum Excel General
    Replies: 2
    Last Post: 09-04-2013, 12:16 PM
  5. Forumula to figure out hours worked as an integer
    By Tsuchigo in forum Excel General
    Replies: 2
    Last Post: 08-03-2009, 03:28 PM
  6. Why can't I figure out this simple formula...???
    By HuskerBronco in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-23-2006, 12:22 PM
  7. [SOLVED] not releasing excel objects..pl see this simple code.
    By asp newbie in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-22-2006, 11:00 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