Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
 
Posts: n/a
Default Please help me with this judgment

Hi all,

I need this function to deal with thousands of records. Please give me
a hand. Thank you very much.
I would simplify my problem to the following question.
Say I have a column A and B in sheet1, A1=fdhjsa, A2=rieqrew,
A3=mxnvvc,..., A10=rewkjrk. Now I want to set a judgment to
corresponding B cell, if "fdhjsa"(A1) exist in sheet2!$A$1:$Z$500, then
B1="yes", else B1="no", if "rieqrew"(A2) exist in sheet2!$A$1:$Z$500,
then B2="yes", else B2="no"... and so on.
One more question, could I set B2 a color instead of a value of "yes"
or "no"? For example, if "fdhjsa"(A1) exist in sheet2!$A$1:$Z$500, cell
B2 will set to be yellow, else B2 will set to be red.
Any information would be appreciated.

Best, zh

  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

=IF(COUNTIF(Sheet2!$1:$65536,Sheet1!A1)0,"Yes","N o")

use conditional formatting, and test for a value of Yes

--

HTH

RP
(remove nothere from the email address if mailing direct)


wrote in message
oups.com...
Hi all,

I need this function to deal with thousands of records. Please give me
a hand. Thank you very much.
I would simplify my problem to the following question.
Say I have a column A and B in sheet1, A1=fdhjsa, A2=rieqrew,
A3=mxnvvc,..., A10=rewkjrk. Now I want to set a judgment to
corresponding B cell, if "fdhjsa"(A1) exist in sheet2!$A$1:$Z$500, then
B1="yes", else B1="no", if "rieqrew"(A2) exist in sheet2!$A$1:$Z$500,
then B2="yes", else B2="no"... and so on.
One more question, could I set B2 a color instead of a value of "yes"
or "no"? For example, if "fdhjsa"(A1) exist in sheet2!$A$1:$Z$500, cell
B2 will set to be yellow, else B2 will set to be red.
Any information would be appreciated.

Best, zh



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:12 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"