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

check partial content of one field

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc
View previous topic :: View next topic  
Author Message
fourbit
General User
General User


Joined: 31 Aug 2004
Posts: 6

PostPosted: Mon Sep 04, 2006 8:15 am    Post subject: check partial content of one field Reply with quote

Ok, I've tried to search this one out. But, I can't even think of what to search for. Smile

I need to check the contents of one field (a1) for ":443" and if that exists print Yes in the cell.

I guess that's basically it. And probably pretty easy. But, I am just too stressed out to figure it out sanely. Shocked

Thanks,
Paul
Back to top
View user's profile Send private message
Villeroy
Super User
Super User


Joined: 04 Oct 2004
Posts: 10106
Location: Germany

PostPosted: Mon Sep 04, 2006 8:30 am    Post subject: Reply with quote

=FIND(":443";A1)
returns #VALUE or the position of the colon
=ISNUMBER(FIND(":443";A1))
returns true or false
=IF(ISNUMBER(FIND(":443";A1);"Yes";"No"))
returnes Yes or No
_________________
Rest in peace, oooforum.org
Get help on https://forum.openoffice.org
Back to top
View user's profile Send private message
fourbit
General User
General User


Joined: 31 Aug 2004
Posts: 6

PostPosted: Mon Sep 04, 2006 9:05 am    Post subject: Reply with quote

Thank you very much. Very interesting solution. Smile

Didn't work right off the bat. But, I found the problem.
From
=IF(ISNUMBER(FIND(":443";A1);"Yes";"No"))
To
=IF(ISNUMBER(FIND(":443";A1));"Yes";"No")

Had to change the bracketing. Interesting how 'FIND' returns a number if it finds the text but doesn't return anything if it doesn't find it.

Thanks again,
Paul
Back to top
View user's profile Send private message
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