+ Reply to Thread
Results 1 to 4 of 4

#VALUE! error

  1. #1
    Registered User
    Join Date
    12-04-2017
    Location
    USA
    MS-Off Ver
    365
    Posts
    3

    #VALUE! error

    Hello New in this Forum
    I have error #VALUE!

    Cell B4 have Vlookup formula
    Cell G4 have if formula IF(B4>0,B4+C4+D4+E4,0)
    When B4 has no value, then I get #VALUE! error.

    Same H4 have formula (B4*40%)+B4+C4+D4
    When B4 has no value, then I get #VALUE! error.

    Same I4 Have formula B4+H4
    When B4 has no value, then I get #VALUE! error.

    Please help me to solve this error

    Thanks in advance

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: #VALUE! error

    welcome to the forum. i am guessing your VLOOKUP formula shows a blank or error when you say "no value"? it wouldnt be a problem if B4 is a number. so to counter that, use SUM (sum ignores text) instead of "+". "+" cannot add texts:
    =IF(B4>0,SUM(B4:E4),0)

    otherwise, just cover it with an IFERROR:
    =IFERROR(IF(B4>0,B4+C4+D4+E4,0),"")

    =IFERROR(B4*40%+B4+C4+D4,"")

    =IFERROR(B4+H4,"")

    do upload an excel sample so that we do not have to manually key in your data to do a testing.

    input the desired results so that we don't have to second-guess if what we are doing is correct or not. you may look at my signature to upload an eg that is easier to understand.

    the upload attachment must be done by going to Go Advanced. click on Manage Attachments. Choose file, upload and close the window.

    hopefully, i did a correct guess. otherwise, it's wasted effort coming up with something that does not help you. if i really guessed it wrongly, please upload something according to my recommendations. try to use the solution i have given and we'll help to advise what went wrong

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,809

    Re: #VALUE! error

    The formula in B4 is important but you didn't include that.

    What does "B4 has no value" mean? VLOOKUP either returns a value, or an error. Do you mean it returns an error?

    What result do you want in G4, H4, I4 if B4 has no value?

    I think you want something like this in B4. If VLOOKUP returns an error, the B4 will be 0:

    =IFERROR(current vlookup formula, 0)
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  4. #4
    Registered User
    Join Date
    12-04-2017
    Location
    USA
    MS-Off Ver
    365
    Posts
    3

    Re: #VALUE! error

    Thank you benishiryo
    my error problem is solved with your formula suggestions.

    Thanks again

+ 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. VBA ERROR: run time error 1004: Application-defined or Object-defined error in excel 2013
    By AnanthKrishna in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-13-2015, 06:16 AM
  2. [SOLVED] Run-tim error -2147467259(80004005): Automation error Unspecidied error
    By mattress58 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-25-2014, 12:12 PM
  3. Excel macro (compile error. syntax error.) error
    By salar_younis in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-06-2014, 06:11 AM
  4. Receiving following error “Complie error : syntax error” Help
    By masond3 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-02-2012, 10:19 AM
  5. Error "run-time Error '1004': General Odbc Error
    By D4WNO77 in forum Access Tables & Databases
    Replies: 2
    Last Post: 07-16-2012, 09:55 AM
  6. Error 75 File/Path access error, sometimes Error 1004
    By smokebreak in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 02-16-2011, 02:35 PM
  7. Error Handling - On Error GoTo doesn't trap error successfully
    By David in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-16-2006, 02:10 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