+ Reply to Thread
Results 1 to 6 of 6

Else If

  1. #1
    Registered User
    Join Date
    04-08-2006
    Posts
    15

    Else If

    Hi,

    Is it possible to use

    IF()
    ELSE IF()
    ELSE IF() block? and how to use?

    Lets say i have a cell, and wanna use if else block.
    if (A1 > 1,25;true;false) else if(A1 > 1,33;true;false) etc.

  2. #2
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    If you are talking about Formulas ... the answer is No
    you have to "nest" your IF's i.e. =If(x=y,z,If(a=b,c,d))

    If you are talking about VBA ... the answer is Yes
    do not forget the End If

    HTH
    Carim

  3. #3
    Registered User
    Join Date
    04-08-2006
    Posts
    15

    Error

    Hi,

    i wrote something like this;

    =IF(C2>1,25;"UPPER";"";IF(C2<1,33;"UPPER";""))

    But it says too many independent variables!

  4. #4
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    you wrote :
    =IF(C2>1,25;"UPPER";"";IF(C2<1,33;"UPPER";""))

    first is your separator , or ; select the adequate one

    What does "UPPER" mean to you ... ?
    Do you have more than 2 instances otherwise
    =IF(C2>1,25,33)

    HTH
    Carim

  5. #5
    Registered User
    Join Date
    04-08-2006
    Posts
    15

    Hi

    Hello,

    first of all my seperator is ; and its true! when i use (,) it gives error. Anyway dont bother with "UPPER" just tell me how to use the statement correctly,
    .

    =EĞER(C2>1,25;"true";"false";EĞER(C2<1,33;"true";"false"))

    in this statement the cell has o be the same which is C2! and as i said b4 it says too many variables...

  6. #6
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    =EĞER(C2>1,25;"true";EĞER(C2<1,33;"true";" false"))


    HTH
    Carim

+ 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