Match multiple criteria, within range on 1 criteria

dbrice

New Member
Joined
Feb 15, 2017
Messages
9
Could someone tell me why this is not working?
Below is a screenshot:

I have 1 tab that has all my crime data,
I have another tab that I have set up to use as a way of querying the data ("Address Summary").
On Address Summary, the user enters the starting address (C5) and ending address (C6), and the date range (D7 and G7). I split up the address and get: the number of the starting address (L6), the number of the ending address (L7), and the street name (H6).
K4 contains the first match in the data (arranged descending by date) for the ending date (2/14/17).
I am trying to use indirect & match to auto populate the corresponding data, in this case the address returned should be within the range.
This is the formula in question in cell P39:
=INDEX('Crime Data'!B:F, MATCH("*"&$H$6&"*",IF(TEXT(INDIRECT("'Crime Data'!AG"&K4&":AG30000"),0)>=TEXT($L$6,0),IF(TEXT(INDIRECT("'Crime Data'!AG"&K4&":AG30000"),0)<=TEXT($L$7,0),INDIRECT("'Crime Data'!AH"&K4&":AH30000"))),0)+$K$4-1,3)
AG in Crime Data contains the street number and AH the street name. Crime Data B:F contains all the data I want to return.
But it returns an address outside the range but for the correct street name. Suggestions please...
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
You cannot upload files to this site. But there are tools you can use to post screen images. They are listed in Section B of this link here: http://www.mrexcel.com/forum/board-a...forum-use.html.

Also, there is a Test Here forum on this board that you can use to test out these tools to make sure they are working correctly before using them in your question.
 
Upvote 0

Forum statistics

Threads
1,216,735
Messages
6,132,420
Members
449,727
Latest member
Aby2024

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top