+ Reply to Thread
Results 1 to 5 of 5

How to calculate a value out of a table without a value

  1. #1
    Registered User
    Join Date
    07-25-2014
    Location
    Wales
    MS-Off Ver
    2010
    Posts
    23

    How to calculate a value out of a table without a value

    Hi all,

    Been at the grindstone for too long.
    As per the attached. In the blue area there are times where there are no 90 deg bends, or 45 deg etc. I'm trying to figure if I have not value in one cell (C6) that the formula in I6 does not report an #value!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: How to calculate a value out of a table without a value

    What I see the current formula in I6 doing (follow along with the evaluate formula tool, if desired):

    1) Look at the value in C6. Is it less than 1? In this case, C6 is 0, so this test returns TRUE, so the IF() function will proceed to the value_if_true argument.
    2) The value if true argument is a space character.
    3) Take the sum of C6:D6 (4).
    4) Multiply 4 by a space character. Excel does not know how to multiply a number by text, so it generates and error.
    5) Divide the error value by 1000, which propagates the error.

    The solution is to replace that space character with a number or to otherwise change the flow of logic so that you are not asking excel to multiply numbers and text. I'm not sure I understand what you want to happen when C6 is less than 1, so I cannot recommend something specific.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: How to calculate a value out of a table without a value

    Do you mean = IF($C6<1,"",VLOOKUP($A6,Sheet1!$A$15:$E$15,3,0)*$C$4*SUM($C6:$G6)/1000)

  4. #4
    Registered User
    Join Date
    07-25-2014
    Location
    Wales
    MS-Off Ver
    2010
    Posts
    23

    Re: How to calculate a value out of a table without a value

    Thank you all for the replies.
    Perhaps I need to turn this cart around?
    Let's forget the formula for now.
    Essentially what I am trying to achieve is that in the blue table, I will enter values depending how many fittings are on each section (columns) of the line. Once I have populated the blue section, I need to do a lookup and retrieve a value from row 15 (there will be more rows in the big model) and multiply that out with the value in C4. The problem I have is that if the cell has no value, then the formula report #value!

    Thanks again for the feedback.

  5. #5
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: How to calculate a value out of a table without a value

    It's not clear to me what I6 should be when C6 is 0. The formula in I11 is a simple sum of I6:I10, so maybe I6 should be 0 when C6 is 0? Which would be a simple edit to replace the space character with the number 0?

+ 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. Replies: 1
    Last Post: 12-05-2019, 03:47 AM
  2. [SOLVED] How to calculate from a table
    By jimd1768 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-08-2019, 05:05 AM
  3. [SOLVED] How to calculate % in a pivot table ?
    By Tarantino in forum Excel General
    Replies: 4
    Last Post: 02-23-2018, 12:12 PM
  4. Replies: 7
    Last Post: 02-27-2017, 07:41 AM
  5. How to calculate interpolated value in a table?
    By sein in forum Excel General
    Replies: 4
    Last Post: 11-23-2014, 07:54 AM
  6. How to Calculate total in table?
    By Reema in forum Access Programming / VBA / Macros
    Replies: 3
    Last Post: 05-25-2009, 06:43 PM
  7. calculate fees from table
    By jcavigli in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 06-03-2008, 11:34 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