Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Joe Joe is offline
external usenet poster
 
Posts: 476
Default Lookup / Index/Match

My spreadsheet is setup as follows:

Column
A B C D
E
County Road Starting Mileage Ending Mileage Road Type
Alan 52 0 5
Highway
Alan 52 5 12
Local Road

When I enter the County, Road, and Mileage point, I want Excel to return to
me the road type. So if I enter Alan-52-3, it will return a value of
"Highway". If I enter Alan-52-7, it would return a value of "Local Road".
How do I do an index/match (or other function) that can search through
columns C & D to determine what mileage point I'm specifically at?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Joe Joe is offline
external usenet poster
 
Posts: 476
Default Lookup / Index/Match

The formatting of my original post made it very difficult to follow. Here is
my posting again:

My spreadsheet is setup as follows:

Column A: County
Column B: Road
Column C: Starting Mileage
Column D: Ending Mileage
Column E: Road Type

I want to use an index/match (or other lookup function) to tell me the road
type in column E based on the County - Road - Mileage Point I enter. The
tricky part for me is how to have Excel search through columns C & D to
determine what mileage point I'm at. For example, in one row I have Alan -
52 - 0 - 5 - Highway. In the next row I have Alan - 52 - 5 - 12 - Local
Road. I want Exel to do the following. I enter Alan - 52 - 3 and it returns
the value "Highway". If I enter Alan - 52 - 7, it would return the value of
"Local Road". How do I get Excel to search through columns C & D to
determine the Mileage Point I'm at by comparing the values contained in C & D?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,722
Default Lookup / Index/Match

I'll assume that Alan is in cell F2, 52 is in cell F3, and 7 is in cell F4.
Overall "lookup" formula is:
=INDEX(E:E,SUMPRODUCT(--(A2:A100=F2),--(B2:B100=F3),--(C2:C100<=F4),--(D2:D100=F4),ROW(A2:A100)))
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Joe" wrote:

My spreadsheet is setup as follows:

Column
A B C D
E
County Road Starting Mileage Ending Mileage Road Type
Alan 52 0 5
Highway
Alan 52 5 12
Local Road

When I enter the County, Road, and Mileage point, I want Excel to return to
me the road type. So if I enter Alan-52-3, it will return a value of
"Highway". If I enter Alan-52-7, it would return a value of "Local Road".
How do I do an index/match (or other function) that can search through
columns C & D to determine what mileage point I'm specifically at?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Joe Joe is offline
external usenet poster
 
Posts: 476
Default Lookup / Index/Match

The formula worked great! Now I need to take things one more step. I want
excel to use the following data that was returned to me to perform a new
search:

Inputs:

F4: Road Type (e.g. Local Road, Highway)
F5: Traffic Volume (e.g. 10,000 vehicles / day)
F6: 75% of F5 (e.g. 7,500 vehicles / day)
F7: 125% of F5 (e.g. 12,500 vehicles / day)

Use a formula to search through my table of data and return to me all the
roads that match the criteria in cells F4 and that fall between the range of
values in F6 & F7.

As an example:

F4: Local Road
F6: 7,500 vehicles / day
F7: 12,500 vehicles / day

Outputs from table:
A B C D
Alan | 52 | 7 | 9,300 vehicles / day
Alan | 52 | 23 | 11,000 vehicles / day
Orange | 93 | 4 | 10,000 vehicles / day ...



"Luke M" wrote:

I'll assume that Alan is in cell F2, 52 is in cell F3, and 7 is in cell F4.
Overall "lookup" formula is:
=INDEX(E:E,SUMPRODUCT(--(A2:A100=F2),--(B2:B100=F3),--(C2:C100<=F4),--(D2:D100=F4),ROW(A2:A100)))
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Joe" wrote:

My spreadsheet is setup as follows:

Column
A B C D
E
County Road Starting Mileage Ending Mileage Road Type
Alan 52 0 5
Highway
Alan 52 5 12
Local Road

When I enter the County, Road, and Mileage point, I want Excel to return to
me the road type. So if I enter Alan-52-3, it will return a value of
"Highway". If I enter Alan-52-7, it would return a value of "Local Road".
How do I do an index/match (or other function) that can search through
columns C & D to determine what mileage point I'm specifically at?

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
if/lookup/index/match? JR Excel Worksheet Functions 7 November 25th 08 10:00 AM
index/match/lookup??? Emma Aumack Excel Discussion (Misc queries) 6 January 19th 07 12:14 AM
index match lookup rplp81 New Users to Excel 1 November 15th 06 08:23 PM
Match Index Lookup Kevin Excel Discussion (Misc queries) 1 March 17th 06 04:40 PM
lookup (v,h,index,match) briank Excel Worksheet Functions 1 February 9th 05 02:05 AM


All times are GMT +1. The time now is 04:02 AM.

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"