+ Reply to Thread
Results 1 to 7 of 7

Excel Game - American States

  1. #1
    Registered User
    Join Date
    08-23-2012
    Location
    Milton Keynes
    MS-Off Ver
    Excel 2010
    Posts
    2

    Excel Game - American States

    Hi all,

    I'm trying to create a little game for my friends.

    Basically, the aim is to guess all the American States.

    I have typed all the 50 American States in different cells within Column A (which I will hide). I will be asking them to type the states (In any order) in Column B and when they do so I want Column C to either show "Correct" or "Wrong".

    In cell C1 I had the formula =IF(B1=A1-A51,"Correct","Wrong") which does work but only if the participant was to do them in Alphabetical order (which isn't going to happen).

    How can I get it to show "correct" in cell C1 if they were to type "New York" in cell B1 when in reality it is actually typed into cell A32 of the hidden column?

    Thanks in advance for your help.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,719

    Re: Excel Game - American States

    Try this formula in C1 copied down

    =IF(B1="","",IF(COUNTIF(A$1:A$51,B1),"Correct","Wrong"))
    Audere est facere

  3. #3
    Forum Contributor
    Join Date
    08-01-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    112

    Re: Excel Game - American States

    Insert a column between A & B. The new column B will say Correct in every row until row 50.
    The answers can be inputted into column C. In column D, write a vlookup
    =VLOOKUP(C1,$A:$B, 2, 0)

  4. #4
    Valued Forum Contributor
    Join Date
    06-10-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    341

    Re: Excel Game - American States

    =IF(B1="","",ISERROR(LOOKUP(B1,A:A),"Wrong","Correct"))

    Note that this doesn't take into account if they type a duplicate name. That would still return as Correct

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,719

    Re: Excel Game - American States

    To get a "Repeat" messge too try this version

    =IF(B1="","",IF(COUNTIF(B$1:B1,B1)>1,"Repeat",IF(COUNTIF(A$1:A$51,B1),"Correct","Wrong")))

  6. #6
    Registered User
    Join Date
    08-23-2012
    Location
    Milton Keynes
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Excel Game - American States

    Thanks all,

    Really appreciate your help!

  7. #7
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Excel Game - American States

    Here is a file I made up using conditional formatting.
    Attached Files Attached Files
    Please click the * icon below if I have helped.

+ 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