LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 395
Default Syntax for 'search' in Horizontal range? XL2007

I have a range of dirty data I'm trying to clean (data showing up in
different columns, because the original input was not put in the same fields
systematically).

I have a keyword that may show up inside any of the fields, and I need to
identify when that occurs so I can hand-verify those records. Example: Search
(case insensitive) for "Cat" in a range that includes:

(A) (B) (C) Result
(1) dog Door Green False/blank/whatever
(2) Red Window bobcat True/Yes/whatever

The likely candidate seemed to be the SEARCH function in XL2007. With some
minor testing, it appears that I can find my keyword when I use SEARCH with a
single cell (not helpful) or with a vertical range regardless of whether the
target cell is at the beginning of the range.

However, as soon as I try to use SEARCH with a horizontal range, I get a
#VALUE calculation error.

(1) Is this expected behavior, that SEARCH returns a result with vertical
ranges but not horizontal? (note: the output is still where the search
string is located, not which cell it is found in, but that's ok because I
still know it was found /somewhere/)

(2) Is there a better way to determine whether a horizontal range contains a
pre-determined string fragment? Note: the cell will contain more than just
the fragment, I'm looking for anywhere a cell *contains* my target string.

Many thanks,
Keith
 
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
Return a column value from a horizontal search Spag Excel Worksheet Functions 8 May 21st 09 08:42 AM
How do I link data from a horizontal range to a vertical range? davidge Excel Worksheet Functions 3 May 25th 07 08:06 AM
VB Syntax to select a range xjetjockey Excel Discussion (Misc queries) 4 January 17th 07 03:12 AM
Horizontal Search hhalle Excel Discussion (Misc queries) 0 January 11th 06 11:00 PM
range and cells syntax mango Excel Worksheet Functions 0 February 22nd 05 12:03 AM


All times are GMT +1. The time now is 06:02 AM.

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"