+ Reply to Thread
Results 1 to 3 of 3

Thread: Nested ifs

  1. #1
    Registered User
    Join Date
    07-22-2011
    Location
    richmond, va
    MS-Off Ver
    spreadsheet
    Posts
    1

    Nested ifs

    I am attempting to use nested ifs without success. Hows the situation:

    Three cells (a1,a2,a3) will contain the values of true/false. Two will be fasle and 1 true.

    I have coded the following statement:
    =if(a1=true,"Team A"); if(a2=true, "Team B"); "Tie")
    I get a 508 err.
    What is my coding error?
    Thanks.

  2. #2
    Forum Guru TMShucks's Avatar
    Join Date
    07-15-2010
    Location
    Manchester, England
    MS-Off Ver
    MSO 2003 & 2007
    Posts
    6,238

    Re: Nested ifs

    Something like:

    =IF(A1=TRUE,"Team A",IF(A2=TRUE,"Team B","Tie"))

    Regards

  3. #3
    Extremely Helpful member
    Join Date
    12-23-2006
    Location
    Belgium
    MS-Off Ver
    XL2003
    Posts
    6,127

    Re: Nested ifs

    What is "508 err" ?
    Haven't seen that yet in XL ( maybe in VBA?)
    Quoting entire posts clutters the forum and makes threads hard to read !

    If you are pleased with a member's answer then use the Star icon to rate it

    Click here to see forum rules

+ 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.2.0