[Solved] Search for a Text entry

Discuss the spreadsheet application
Post Reply
willotter
Posts: 2
Joined: Sun Dec 02, 2007 9:00 pm

[Solved] Search for a Text entry

Post by willotter »

I was wondering how i could search for a text value such as 'Yes' in a number of cells and it would return the number of text values it finds. Soz i am being stupid
Last edited by willotter on Sun Dec 02, 2007 11:55 pm, edited 1 time in total.
User avatar
Hagar Delest
Moderator
Posts: 33629
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Search for a Text entry

Post by Hagar Delest »

Try that :

Code: Select all

=COUNTIF(range;".*Yes.*")
Where range is the range of cells where the test should be done. COUNTIF does support regular expressions (see the OOo help file about those regular expressions). Note that if you've several "Yes" strings in a cell, the count will be one, since it counts the number of cells tested.

Thanks to add '[Solved]' in your first post title (edit button) if your issue has been fixed.
LibreOffice 25.2 on Linux Mint Debian Edition (LMDE 7 Gigi) and 25.2 portable on Windows 11.
willotter
Posts: 2
Joined: Sun Dec 02, 2007 9:00 pm

Re: Search for a Text entry

Post by willotter »

Thank you very much
Post Reply