Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-12-2008, 04:33 AM
Junior Member
 
Join Date: Nov 2007
Posts: 2
iTrader: (0)
postonbenito is on a distinguished road
Default About IF statement in excel

Can any one shed some light on writing an if statement to compare a cell to a range of cell. What I want to do is compare a name to a list of names on a separate spreadsheet and mark it if it finds match on that list. Thanks in advance.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-14-2008, 11:36 AM
Junior Member
 
Join Date: Oct 2007
Posts: 28
iTrader: (0)
BurgoEng is on a distinguished road
Default

For example the name you are looking for is in G1 and the list is Sheet2 - A1:A12

=IF(COUNTIF(Sheet2!$A$1:$A$12,G1)>0,"Present","")
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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



All times are GMT -6. The time now is 02:55 AM.