Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to search a range for a suburb in a large range

How to search a range for asuburb that if found could contain up to 50
different corresponding post codes. After its found how can it be checked
againsts an example.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 121
Default How to search a range for a suburb in a large range

Can you provide more details? What does your data look like (what is in
rows, cols)?

"Bogan.." wrote in message
...
How to search a range for asuburb that if found could contain up to 50
different corresponding post codes. After its found how can it be checked
againsts an example.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How to search a range for a suburb in a large range

set rng = Range("A1:A50").Find( "string")

set rng1 = rng.offset(0,1).Resize(1,50)

for each cell in rng1
if cell.Value = "ExampleValue" then
msgbox "Found"
end if
Next

--
Regards,
Tom Ogilvy





"Bogan.." wrote in message
...
How to search a range for asuburb that if found could contain up to 50
different corresponding post codes. After its found how can it be checked
againsts an example.



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
Extracting data from large range abe1952 Excel Discussion (Misc queries) 3 November 4th 09 01:05 AM
If AND for large range of data sccrgod Excel Worksheet Functions 1 October 18th 09 12:09 AM
Select a large range Freshman Excel Worksheet Functions 3 December 14th 07 02:58 AM
Search range for text not in another range simon howard Excel Discussion (Misc queries) 3 March 28th 07 08:44 PM
Vlookup in large named range KemS Excel Worksheet Functions 3 November 23rd 05 06:14 PM


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