+ Reply to Thread
Results 1 to 5 of 5

#VALUE! Error message with IF statment

  1. #1
    Registered User
    Join Date
    12-12-2012
    Location
    San Francisco, Californa
    MS-Off Ver
    Excel 2010
    Posts
    35

    #VALUE! Error message with IF statment

    Hi.

    I am using a nested IF statement but continue to get an error message when there is no value in column O. The function is:

    =IF(N420=0,G420,IF(N420>0,N420*O420,0))

    I also tried the IFERROR which was an epic fail. Is there another function that I need to nest to make this one work?

    Thanks.

  2. #2
    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
    52,938

    Re: #VALUE! Error message with IF statment

    assuming that you are working with data in row 420, try this...

    =IF(N420="",G420,IF(N420>0,N420*O420,0))
    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

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: #VALUE! Error message with IF statment

    The following should work ,

    Please Login or Register  to view this content.
    If not try this,


    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    12-12-2012
    Location
    San Francisco, Californa
    MS-Off Ver
    Excel 2010
    Posts
    35

    Re: #VALUE! Error message with IF statment

    Thanks FDibbins and kvsrinivasamurthy. =IF(N420="",G420,IF(N420>0,N420*O420,0)) returns a result of zero when there is a value in column N which is not the result needed. =IFERROR(IF(N420=0,G420,IF(N420>0,N420*O420,0)),"") worked perfectly.

    Thank you! Gracias! Merci!

  5. #5
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: #VALUE! Error message with IF statment

    =if(n420=0,g420,if(n420>0,n420*o420,0))
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by vlady; 01-09-2013 at 02:31 AM.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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