+ Reply to Thread
Results 1 to 3 of 3

Nested ifs

Hybrid View

  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 TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,241

    Re: Nested ifs

    Something like:

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

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Nested ifs

    What is "508 err" ?
    Haven't seen that yet in XL ( maybe in VBA?)

+ 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