+ Reply to Thread
Results 1 to 8 of 8

Problems with multiple statements IF function (Excel 2003)

Hybrid View

  1. #1
    Registered User
    Join Date
    02-02-2008
    Posts
    5

    Problems with multiple statements IF function (Excel 2003)

    Hi,
    I'm trying to use IF function with multiple statements in Excel 2003. However, whenever I try I get the "The formula you typed contains an error message".
    I've tried even copying and pasting the example provided in the very Excel help file: =IF(A2>89,"A",IF(A2>79,"B", IF(A2>69,"C",IF(A2>59,"D","F")))) (without changing any value or symbol) in a blank worksheet but even so I get the same error message.
    I'd really appreciate your help, as I don't know what else to do. I've also tried by copying and pasting examples I've found in different web pages, but the result is the same
    Thanks a lot,
    Manupi

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Maybe

    =IF(A2="","",LOOKUP(A2,{0,59,69,79,89},{"F","D","C","B","A"}))
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    02-02-2008
    Posts
    5
    Quote Originally Posted by VBA Noob
    Maybe



    VBA Noob
    It doesn't work either Thanks for the try, anyway.

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    It doesn't work either
    The above comment isn't helpful if you want to find a solution.

    Can you please explain why it doesn't work

    VBA Noob

  5. #5
    Registered User
    Join Date
    02-02-2008
    Posts
    5
    Sorry, I get the same error message: "The formula you typed contains an error". I just copied and pasted your formula, without changing anything. Could it be that there's one argument missing?
    Last edited by Manupi; 02-03-2008 at 07:05 AM.

  6. #6
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    What happens if you type a simple if statement

    =if(A1="","",A1)
    Can you use any other forumlas

    Have you tried to evaluate the formula (see link)

    http://www.bettersolutions.com/excel...I320311912.htm

    Are you sure you have xl 2003 could it be microsoft works ??

    VBA Noob

  7. #7
    Registered User
    Join Date
    02-02-2008
    Posts
    5

    Unhappy

    Quote Originally Posted by VBA Noob
    What happens if you type a simple if statement



    Can you use any other forumlas

    Have you tried to evaluate the formula (see link)

    http://www.bettersolutions.com/excel...I320311912.htm

    Are you sure you have xl 2003 could it be microsoft works ??

    VBA Noob
    Hi,
    Yes, I've tried to do all this and it works with one single statement but not with multiple. I also have Open Office, and tried to do the function on it (again, copying and pasting the formula provided in the "Help" of the program itself) but I had the same problem. It only seems to work with one statement. It's very weird, isn't it?
    And it's Excel 2003 (original Office cd).
    Last edited by Manupi; 02-14-2008 at 01:07 PM.

  8. #8
    Registered User
    Join Date
    02-02-2008
    Posts
    5
    I've come up with the solution! I only had to change the coma for a semi-column. If someone else has the same problem, that's the solution

+ 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