Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default Range Search

I have some data in the following format:

D E F G H I J K L .... more
9 a b f f f c c d f

I had some code that would search through the range and write the first
occurrence of the data into a new cell and then increment a cell to the
right. This all worked fine until I got a new set of data in which I had an
'a' in cell L9. So my output showed both a's. I really wanted only one
output of 'a' no matter how many times it showed up in any order.

How would you code a search routine for my new case?

Merry Christmas. Thanks in advance for your help!

Ray



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 135
Default Range Search

Ray,

You don't say what type of code you're using for your search, but the Find
method in vb has an option to match the case or not. Alternatively, you
could assign a variable to the LCase value of the cells contents before
checking it. Or, convert the entire range to lower case before searching.

HTH,
Shockley

"Ray Batig" wrote in message
link.net...
I have some data in the following format:

D E F G H I J K L .... more
9 a b f f f c c d f

I had some code that would search through the range and write the first
occurrence of the data into a new cell and then increment a cell to

the
right. This all worked fine until I got a new set of data in which I had

an
'a' in cell L9. So my output showed both a's. I really wanted only one
output of 'a' no matter how many times it showed up in any order.

How would you code a search routine for my new case?

Merry Christmas. Thanks in advance for your help!

Ray





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
Search range johnrb7865 Excel Worksheet Functions 10 September 11th 08 05:48 PM
Search for value in a range Student Excel Worksheet Functions 6 January 31st 08 12:46 AM
search within a range of cells? [email protected] Excel Discussion (Misc queries) 2 April 22nd 07 08:08 AM
Search range for text not in another range simon howard Excel Discussion (Misc queries) 3 March 28th 07 08:44 PM
Search for value in a range JC[_5_] Excel Programming 1 August 29th 03 06:36 PM


All times are GMT +1. The time now is 04:36 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"