Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel - Lookup ? 1

Status
Not open for further replies.

elfa

Technical User
Feb 23, 2004
19
AU
Hello,

I have two sheets in the file.

Sheet One contains a list of numbers from cells A3 to A80.

Sheet Two has a number in cell A1 A3 A5 A7 going down the sheet.

Does the individual number in sheet two equal any of the numbers in the range from sheet 1? "Yes" "No"

I tried to write a formula but it did not work.

Kind Regards
Elfa
 
Cell B1 on sheet2

=IF(MOD(ROW(),2)=0,"",IF(COUNTIF(Sheet1!$A$3:$A$80,Sheet2!A1)>=1,"Yes","No"))

Copy and paste down as far as needed. You can select all the cells in Col B and paste as it will only put data in the odd rows.

Regards
Ken..............

----------------------------------------------------------------------------
[peace]It's easier to beg forgiveness than ask permission[2thumbsup]

----------------------------------------------------------------------------
 
Just for info, if the structure of your sheet changed at all such that the data ended up on the EVEN rows as opposed to the ODD rows, then you would need to alter the formula to

=IF(MOD(ROW(),2)=1,"",IF(COUNTIF(Sheet1!$A$3:$A$80,Sheet2!A1)>=1,"Yes","No"))

Regards
Ken.............

----------------------------------------------------------------------------
[peace]It's easier to beg forgiveness than ask permission[2thumbsup]

----------------------------------------------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top