#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Multiple cell search

Hi,
I would like to input search specifics into 3 blank cells.
then, a button would activate a search to find the 3 cells that match the
specified data from previously set data below in the respective columns.
If anyone can help, that'd be great.
Thank you!

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200806/1

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,344
Default Multiple cell search

Hi,

Suppose your 3 cells are A1:A3 and the range you want to search is B1:M100,
then a very simple routine to do this would be:

Sub mySearch()
x = Range("B1:M100").Find([a1]).Address
y = Range("B1:M100").Find([a2]).Address
z = Range("B1:M100").Find([a3]).Address
Range("" & x & "," & y & "," & z & "").Select
End Sub

There are many possible enhancements.
--
Cheers,
Shane Devenshire
Microsoft Excel MVP

"spiz via OfficeKB.com" wrote:

Hi,
I would like to input search specifics into 3 blank cells.
then, a button would activate a search to find the 3 cells that match the
specified data from previously set data below in the respective columns.
If anyone can help, that'd be great.
Thank you!

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200806/1


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Multiple cell search

Beautiful! Thank you!

ShaneDevenshire wrote:
Hi,

Suppose your 3 cells are A1:A3 and the range you want to search is B1:M100,
then a very simple routine to do this would be:

Sub mySearch()
x = Range("B1:M100").Find([a1]).Address
y = Range("B1:M100").Find([a2]).Address
z = Range("B1:M100").Find([a3]).Address
Range("" & x & "," & y & "," & z & "").Select
End Sub

There are many possible enhancements.
Hi,
I would like to input search specifics into 3 blank cells.
then, a button would activate a search to find the 3 cells that match the
specified data from previously set data below in the respective columns.
If anyone can help, that'd be great.
Thank you!


--
Message posted via http://www.officekb.com

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
Can you use multiple SEARCH functions in one cell Soulscream Excel Worksheet Functions 4 January 18th 08 10:51 PM
multiple search Neska Excel Worksheet Functions 3 April 17th 07 12:34 AM
Search using multiple worksheet gloss Excel Worksheet Functions 5 May 10th 06 02:34 AM
search multiple sheets for specific date, return data in cell to r NonIllegitimiCarborundum Excel Discussion (Misc queries) 0 April 28th 06 09:02 PM
How do I search excel spreadsheets using multiple search criteria. Kasper Excel Worksheet Functions 4 December 15th 05 12:26 AM


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