Computing.Net > Forums > Office Software > Excel Match formula

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Excel Match formula

Reply to Message Icon

Name: Lily (by Quuenie)
Date: July 30, 2006 at 22:20:11 Pacific
OS: win98se
CPU/Ram: 512
Comment:

I'm writing a small vocab game for kids:
There r several answers to 1 question n I had them in Sheet 2 where Sheet 1 contains the questions. Participants are required to put their answers in Sheet 1, eg. Cell A1 has the question, and answer is to be entered in Cell A2. In Cell B2, I need a formula to check the answer in Cell A2 against model answer in Sheet 2 (eg. Sheet2!A2:A10) with these criteria:

1) If B2 matches any of the answers in Sheet2!A2:A10, then B2 will show "You're a genius!"
2) Otherwise it will show "Pls try again".
3)If nothing is entered in A2 (ie. blank), then B2 will be blank.

Tried creating a formula with "If"+"Match" but it doesn't work. Hope someone can shed some light on this.



Sponsored Link
Ads by Google

Response Number 1
Name: rhawk7938
Date: July 31, 2006 at 10:54:12 Pacific
Reply:

Something like this?

=IF(A1=Sheet2!A1,"correct","wrong")


0

Response Number 2
Name: Lily (by Quuenie)
Date: July 31, 2006 at 18:10:40 Pacific
Reply:

Hi rhawk7938, this won't work as the answers range from Sheet2!A1:A10. Thanks for your effort anyway.


0

Response Number 3
Name: cach
Date: August 1, 2006 at 06:05:59 Pacific
Reply:

Hi Lily

How about

=if(type(vlookup(a2,sheet2!a2:a10,1,false))=16,"wrong","correct")


Cliff


0

Response Number 4
Name: cach
Date: August 1, 2006 at 07:35:19 Pacific
Reply:

Hi Lilly

Forgot the no answer option, try this:

=if(a2="","",if(type(vlookup(a2,sheet2!a2:a10,1,false))=16,"wrong","correct"))

Cliff


0

Response Number 5
Name: Lily (by Quuenie)
Date: August 1, 2006 at 19:42:06 Pacific
Reply:

Hi Cliff,
Your formula works well.

Juz b4 I chk your post, I managed to solve my problem with this:

=IF(AND(ISNA(MATCH(A2,Sheet2!A1:A10)=1),A2=""),"",IF(ISNA(MATCH(A2,Sheet2!A1:A10,0)=1),"Wrong","Correct"))

Although this formula works too, I think yours is much simpler. Many thnx.

Lily.


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: Excel Match formula

Excel 2007 Formula Question www.computing.net/answers/office/excel-2007-formula-question/9280.html

Excel Spreadsheet Formula www.computing.net/answers/office/excel-spreadsheet-formula/9360.html

Excel Date Formula - Help?! ;( www.computing.net/answers/office/excel-date-formula-help-/1243.html