Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default MATCH search with text and numbers

I compiled a large database of city blocks in an area. Now I need to be able
to pull information from a city block by entering a street address on that
block.
The database looks something like this:
A B C D-E-F
1 From To Street Name Various info. regarding block
2 2000 2099 Webster
3 2100 2199 Webster
4 2200 2099 Webster
5 2000 2099 Clybourn
6 2100 2199 Clybourn
7 2200 2099 Clybourn

I need to write up a formula so that when I write:
A B
8 2134 Damen
The formula searches to determine which range the number falls in and what
street, to give me the answer:
A
9 3 €“ for row 3
Then I could use the row number and run the INDEX function to fill the
information from cells D-F for that row.

Ive tried using the MATCH function in an array formula, but have not been
able to get it to work. I need to be able to test if A8=A2:A7 and A8<=B2:B7
(though you flip this in an array formula) and match it up to B8=C2:C7.

Is there a way to do this without using macros?

Any help on this would be extremely appreciated!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default MATCH search with text and numbers

=MATCH(1,(A2:A7<=A8)*(B2:B7=A8),0)

ctrl+shift+enter, not just enter


"Patryk" wrote:

I compiled a large database of city blocks in an area. Now I need to be able
to pull information from a city block by entering a street address on that
block.
The database looks something like this:
A B C D-E-F
1 From To Street Name Various info. regarding block
2 2000 2099 Webster
3 2100 2199 Webster
4 2200 2099 Webster
5 2000 2099 Clybourn
6 2100 2199 Clybourn
7 2200 2099 Clybourn

I need to write up a formula so that when I write:
A B
8 2134 Damen
The formula searches to determine which range the number falls in and what
street, to give me the answer:
A
9 3 €“ for row 3
Then I could use the row number and run the INDEX function to fill the
information from cells D-F for that row.

Ive tried using the MATCH function in an array formula, but have not been
able to get it to work. I need to be able to test if A8=A2:A7 and A8<=B2:B7
(though you flip this in an array formula) and match it up to B8=C2:C7.

Is there a way to do this without using macros?

Any help on this would be extremely appreciated!

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, Match, And return corresponding column value sayerplayer Excel Worksheet Functions 0 February 13th 08 04:15 PM
VLOOKUP and MATCH w/ name search? LTUser54 Excel Worksheet Functions 2 May 22nd 06 04:41 PM
Numbers vs Text search Bigfoot17 Excel Discussion (Misc queries) 2 April 28th 06 01:58 PM
Match function...random search? Les Excel Worksheet Functions 10 July 28th 05 11:54 AM
Match with 2 Lookup_Values used as search criteria. Sigmaz Excel Worksheet Functions 4 March 23rd 05 03:03 AM


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