A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Lookup / Index/Match



 
 
Thread Tools Display Modes
  #1  
Old February 10th, 2010, 06:34 PM posted to microsoft.public.excel.worksheet.functions
Joe
external usenet poster
 
Posts: 1,218
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  
Old February 10th, 2010, 06:49 PM posted to microsoft.public.excel.worksheet.functions
Joe
external usenet poster
 
Posts: 1,218
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  
Old February 10th, 2010, 06:53 PM posted to microsoft.public.excel.worksheet.functions
Luke M
external usenet poster
 
Posts: 2,672
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),--(D2100=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  
Old February 11th, 2010, 01:12 PM posted to microsoft.public.excel.worksheet.functions
Joe
external usenet poster
 
Posts: 1,218
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),--(D2100=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?

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:40 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.