OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Where in Calc can I apply a "contain" or "doe

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc
View previous topic :: View next topic  
Author Message
kartheek.n
Newbie
Newbie


Joined: 11 Nov 2007
Posts: 3
Location: India,Bangalore

PostPosted: Mon Nov 12, 2007 12:42 am    Post subject: Where in Calc can I apply a "contain" or "doe Reply with quote

Where in Calc can I apply a "contain" or "does not contain" condition?
_________________
Kartheek Reddy N
Back to top
View user's profile Send private message Yahoo Messenger
keme
Moderator
Moderator


Joined: 30 Aug 2004
Posts: 2910
Location: Egersund, Norway

PostPosted: Mon Nov 12, 2007 1:07 am    Post subject: Reply with quote

You need to apply a search function. If searches do not find a match, they'll return an error, so what you need is to test if the search returns an error. Substitute values or references for the items in italics below.

For testing a text string for a substring:
=IF(ISERROR(FIND(substring ; searchstring));"Does not contain...";"Contains...")

For testing a cell range for a value:
=IF(ISERROR(VLOOKUP(value ; range ; 1 ; 0));"Does not contain...";"Contains...")

Note that the VLOOKUP() function requires the given range to have at least two columns. For searching a horizontal vector, use HLOOKUP() instead of VLOOKUP().
Back to top
View user's profile Send private message
kartheek.n
Newbie
Newbie


Joined: 11 Nov 2007
Posts: 3
Location: India,Bangalore

PostPosted: Mon Nov 12, 2007 1:14 am    Post subject: Thanks Reply with quote

Thanks for ur Reply Keme
_________________
Kartheek Reddy N
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group