+ Reply to Thread
Results 1 to 6 of 6

If Function. How to Add more criteria

  1. #1
    Corey
    Guest

    If Function. How to Add more criteria

    Is it posible to add more If functions to a single If calc ?

    I need to add, if i can to the below :
    =IF(D58=R69,AJ69,IF(D58=R70,AJ70,IF(D58=R71,AJ71,IF(D58=R72,AJ72,IF(D58=R73,AJ73,IF(D58=R74,AJ74,IF(D58=R75,AJ75,IF(D58=R76,AJ76))))))))

    I want to add about another 26 IF's to this.

    Can i some how?


    If i try anymore i get an error, but the above seems to be the limit.

    --
    Regards

    Corey



  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
    HI

    The attached should help

    http://www.j-walk.com/ss/excel/usertips/tip080.htm

    http://www.cpearson.com/excel/nested.htm

    VBA Noob

  3. #3
    Biff
    Guest

    Re: If Function. How to Add more criteria

    Hi!

    Try this:

    =INDEX(AJ69:AJ102,MATCH(D58,R69:R102,0))

    Biff

    "Corey" <[email protected]> wrote in message
    news:[email protected]...
    > Is it posible to add more If functions to a single If calc ?
    >
    > I need to add, if i can to the below :
    > =IF(D58=R69,AJ69,IF(D58=R70,AJ70,IF(D58=R71,AJ71,IF(D58=R72,AJ72,IF(D58=R73,AJ73,IF(D58=R74,AJ74,IF(D58=R75,AJ75,IF(D58=R76,AJ76))))))))
    >
    > I want to add about another 26 IF's to this.
    >
    > Can i some how?
    >
    >
    > If i try anymore i get an error, but the above seems to be the limit.
    >
    > --
    > Regards
    >
    > Corey
    >




  4. #4
    Corey
    Guest

    Re: If Function. How to Add more criteria

    thanks Biff

    To easy once ya know....


    Corey.....



  5. #5
    Biff
    Guest

    Re: If Function. How to Add more criteria

    You're welcome!

    Biff

    "Corey" <[email protected]> wrote in message
    news:uKH%[email protected]...
    > thanks Biff
    >
    > To easy once ya know....
    >
    >
    > Corey.....
    >




  6. #6
    Bob Phillips
    Guest

    Re: If Function. How to Add more criteria

    =INDEX(AJ69:AJ76,MATCH(D58,R69:R76,0))

    just extend the 76 part.

    If it might not match add error checking

    =IF(ISNA(MATCH(D58,R69:R76,0)),"No
    match",INDEX(AJ69:AJ76,MATCH(D58,R69:R76,0)))

    --
    HTH

    Bob Phillips

    (replace somewhere in email address with gmail if mailing direct)

    "Corey" <[email protected]> wrote in message
    news:[email protected]...
    > Is it posible to add more If functions to a single If calc ?
    >
    > I need to add, if i can to the below :
    >

    =IF(D58=R69,AJ69,IF(D58=R70,AJ70,IF(D58=R71,AJ71,IF(D58=R72,AJ72,IF(D58=R73,
    AJ73,IF(D58=R74,AJ74,IF(D58=R75,AJ75,IF(D58=R76,AJ76))))))))
    >
    > I want to add about another 26 IF's to this.
    >
    > Can i some how?
    >
    >
    > If i try anymore i get an error, but the above seems to be the limit.
    >
    > --
    > Regards
    >
    > Corey
    >
    >




+ 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