+ Reply to Thread
Results 1 to 3 of 3

Error message in if statement - reg

  1. #1
    Registered User
    Join Date
    12-23-2008
    Location
    Chennai,India,Tamilnadu
    Posts
    70

    Error message in if statement - reg

    Dear Sir,

    For the below said formula in excel, i am getting the error mentioned below, please do the needful.
    Thanks in advance.

    =IF(AF6="-","-",(AF6="","",IF(AF6<0.005,50,IF(AF6<0.0075,40,IF(AF6<0.01,30,IF(AF6<0.025,20,IF(AF6<0.05,3,IF(AF6<0.1,-10,IF(AF6>=0.1,-20)))))))))


    Error Message:
    The formula you typed contains an error.

    > For information about fixing common formula problems , click help.
    > To get assistance in entering a function , click ok , then click function on the insert menu
    > If you are not trying to enter a formula, avoid using an equal (=) or minus sign (-), or precede it with a single quotation mark (').

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

    Re: Error message in if statement - reg

    you just missed an (

    =IF(AF6="-","-",IF(AF6="","",IF(AF6<0.005,50,IF(AF6<0.0075,40,IF(AF6<0.01,30,IF(AF6<0.025,20,IF(AF6<0.05,3,IF(AF6<0.1,-10,IF(AF6>=0.1,-20)))))))))
    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

  3. #3
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Error message in if statement - reg

    You also missed an IF - you had: =IF(AF6="-","-",(AF6="","",IF(AF6<0.005,50,IF(AF..............
    instead of: =IF(AF6="-","-",IF(AF6="","",IF(AF6<0.005,50,IF(AF....................

+ 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