Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
BAM BAM is offline
external usenet poster
 
Posts: 1
Default Formula to search cell to see if it Contains a value.

Have a spreadsheet output from a active directory query.
One cell in the spreadsheet contains all the various
permission groups a user is a member of (i.e., Group1,
Group5, Group6). I want to search that cell for a specific
Group and move that value to an empty cell. It doesn't
seem that Excel has an expression for 'Contains' but can
only evaluate on 'Equal to'. The cell will definitely
contain additional groups so = will not work.

Past experience with a different spreadsheet software
allowed looking at the contents of a cell and evaluating
based on it containing or not containing a specific text
string. I can't seem to accept that Excel doesn't do that.
I'm frozen in time. Any help would be appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Formula to search cell to see if it Contains a value.

Hi
try something like
=IF(ISNUMBER(FIND("Group1",A1)),"cotains group1","does not contain
group1")




--
Regards
Frank Kabel
Frankfurt, Germany


BAM wrote:
Have a spreadsheet output from a active directory query.
One cell in the spreadsheet contains all the various
permission groups a user is a member of (i.e., Group1,
Group5, Group6). I want to search that cell for a specific
Group and move that value to an empty cell. It doesn't
seem that Excel has an expression for 'Contains' but can
only evaluate on 'Equal to'. The cell will definitely
contain additional groups so = will not work.

Past experience with a different spreadsheet software
allowed looking at the contents of a cell and evaluating
based on it containing or not containing a specific text
string. I can't seem to accept that Excel doesn't do that.
I'm frozen in time. Any help would be appreciated.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Formula to search cell to see if it Contains a value.

If you mean in VBA, lookup the Like operator in help.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Frank Kabel" wrote in message
...
Hi
try something like
=IF(ISNUMBER(FIND("Group1",A1)),"cotains group1","does not contain
group1")




--
Regards
Frank Kabel
Frankfurt, Germany


BAM wrote:
Have a spreadsheet output from a active directory query.
One cell in the spreadsheet contains all the various
permission groups a user is a member of (i.e., Group1,
Group5, Group6). I want to search that cell for a specific
Group and move that value to an empty cell. It doesn't
seem that Excel has an expression for 'Contains' but can
only evaluate on 'Equal to'. The cell will definitely
contain additional groups so = will not work.

Past experience with a different spreadsheet software
allowed looking at the contents of a cell and evaluating
based on it containing or not containing a specific text
string. I can't seem to accept that Excel doesn't do that.
I'm frozen in time. Any help would be appreciated.




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i make a cell a search cell for a spreadsheet adam Excel Worksheet Functions 5 November 3rd 09 11:16 AM
Formula to Search one specific cell on another sheet. Dan C. Excel Discussion (Misc queries) 2 January 27th 09 06:49 AM
copy a cell value based on search of another cell Pendal Excel Worksheet Functions 1 November 12th 08 05:33 PM
FIND / SEARCH text compare cell to string in 3rd cell nastech Excel Discussion (Misc queries) 0 October 29th 07 02:51 AM
format cell to search text in another cell Newbie Bob Excel Discussion (Misc queries) 2 October 25th 05 01:23 AM


All times are GMT +1. The time now is 11:57 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"