+ Reply to Thread
Results 1 to 8 of 8

If Function #Value! error

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    03-30-2015
    Location
    Northampton
    MS-Off Ver
    2010
    Posts
    275

    If Function #Value! error

    i have this formula

    =IF(E9="Yes",J9+K9-N9,IF(E9="No",K9-N9))
    which works ok but i have had to omit a cell because the formula does not like it as its an empty cell (but has a formula in it)

    this is how i would like the formula to look like.

    =IF(E9="Yes",J9:L9-N9,IF(E9="No",J9:L9-N9))
    but result is #Value

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,980

    Re: If Function #Value! error

    Assuming you mean sum(J9:L9) rather than J9:L9, isn't that the same formula in both parts of the IF function?
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Forum Contributor
    Join Date
    03-30-2015
    Location
    Northampton
    MS-Off Ver
    2010
    Posts
    275

    Re: If Function #Value! error

    Quote Originally Posted by romperstomper View Post
    Assuming you mean sum(J9:L9) rather than J9:L9, isn't that the same formula in both parts of the IF function?
    yes but if No is entered there there will be an empty cell but that should not matter should it?

  4. #4
    Forum Contributor
    Join Date
    03-30-2015
    Location
    Northampton
    MS-Off Ver
    2010
    Posts
    275

    Re: If Function #Value! error

    take a look at Full_Time_DI on this workbook O9 is where the formula is

    https://www.dropbox.com/s/z9qkgxe2x7...orum.xlsm?dl=0

  5. #5
    Forum Contributor
    Join Date
    03-30-2015
    Location
    Northampton
    MS-Off Ver
    2010
    Posts
    275

    Re: If Function #Value! error

    also change O10 on Full_Time_Contracts to 8 then go back to the other sheet. or just turn E10 to Yes

  6. #6
    Forum Contributor
    Join Date
    07-30-2014
    Location
    USA
    MS-Off Ver
    Version 14.4.3, Mac 2011
    Posts
    145

    Re: If Function #Value! error

    Could this be what you are trying to do? I'm not sure what your purpose is.
    It looks like for yes you want to add J9, K9, L9 and subtract N9. and THEN what you really want is to subtract J9, K9, and L9 and subtract N9?

    =IF(E9="Yes",SUM(J9:L9)-N9,IF(E9="No",(J9-K9-L9)-N9))
    Semi-colons don't work unless your are using a defined formula that works with a range.

  7. #7
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,980

    Re: If Function #Value! error

    You just need:
    =SUM(J9:L9)-N9

  8. #8
    Forum Contributor
    Join Date
    03-30-2015
    Location
    Northampton
    MS-Off Ver
    2010
    Posts
    275

    Re: If Function #Value! error

    Quote Originally Posted by romperstomper View Post
    You just need:
    =SUM(J9:L9)-N9
    thank you sir

+ 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] Function Error: Compile error: Expected: list separator or )
    By goss in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-05-2014, 02:10 PM
  2. [SOLVED] Compile Error 'Sub or Function is not define' error on Private Sub Getdata()
    By HafizuddinLowhim in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-24-2014, 11:17 AM
  3. Compile error: Sub or Function not defined Error
    By VBAhelp3456 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-01-2014, 02:16 AM
  4. [SOLVED] Error in function Compile error: Can't find project or library
    By Motario1 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-12-2013, 02:20 AM
  5. index function error using match function to get data from a cell in an array
    By mabildgaard in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-17-2013, 02:21 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