Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Checking info against cells containing multiple values


Hi there,

I'm trying to find out if there is a worksheet function that can check
if a value exists in a cell, where that cell may contain multiple
values.

My example, is with resources. I am exporting resources from calendar
to excel - so the 'required attendees' field may have up to 15 or so
unique values (names) in each cell, seperated by a ';'.

I have developed code that will basically split each name into it's own
cell - but this is a messy way to do things.

I'm thinking there must be a way in excel to return a TRUE/FALSE (or
similar) on whether a value exists in a cell containing multiple
values.

eg. A1 may contain -

Smith, John; Stewart, James; Jones, Elizabeth

I'm chasing a function that does -

IF A1 -CONTAINS- 'Stewart, James' THEN A2=TRUE, ELSE A2 = FALSE.

Or something along those lines.

If someone can point me to a function or example I would be grateful!

Cheers

Rob


--
systematic
------------------------------------------------------------------------
systematic's Profile: http://www.excelforum.com/member.php...o&userid=25294
View this thread: http://www.excelforum.com/showthread...hreadid=494313

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 68
Default Checking info against cells containing multiple values

It sounds like you're looking for the Search function

=If(iserror(Search("Stewart, James","A1")),False,True)

Note: Iserror(function) is True if the function it checks returns an error.
Search checks a cell for text; if it finds it, it returns a number (the
position in the cell); if it doesn't find it, it returns an error.


Darren

On Sat, 17 Dec 2005 04:44:11 -0000, systematic
wrote:


Hi there,

I'm trying to find out if there is a worksheet function that can check
if a value exists in a cell, where that cell may contain multiple
values.

My example, is with resources. I am exporting resources from calendar
to excel - so the 'required attendees' field may have up to 15 or so
unique values (names) in each cell, seperated by a ';'.

I have developed code that will basically split each name into it's own
cell - but this is a messy way to do things.

I'm thinking there must be a way in excel to return a TRUE/FALSE (or
similar) on whether a value exists in a cell containing multiple
values.

eg. A1 may contain -

Smith, John; Stewart, James; Jones, Elizabeth

I'm chasing a function that does -

IF A1 -CONTAINS- 'Stewart, James' THEN A2=TRUE, ELSE A2 = FALSE.

Or something along those lines.

If someone can point me to a function or example I would be grateful!

Cheers

Rob





--
------------------
Darren
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Checking info against cells containing multiple values


Perfect! Thanks mate - I can work that into my function nicely!

:)


--
systematic
------------------------------------------------------------------------
systematic's Profile: http://www.excelforum.com/member.php...o&userid=25294
View this thread: http://www.excelforum.com/showthread...hreadid=494313

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 match values from cells to a list of info Bseg Excel Discussion (Misc queries) 1 January 20th 10 03:18 AM
merge info from multiple cells sahlicat Excel Discussion (Misc queries) 1 January 19th 10 08:09 PM
Adding up cell values only with identical info in other cells rarch1 Excel Worksheet Functions 9 February 11th 08 04:54 PM
Checking Range of Cells on Multiple Worksheets in the same workboo Ramesh.S, India Excel Discussion (Misc queries) 1 October 12th 06 09:46 AM
Checking for Multiple Values guilbj2 Excel Discussion (Misc queries) 8 February 27th 06 08:02 PM


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

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

About Us

"It's about Microsoft Excel"