excel magic trick 778, example 6

tpuck2687

New Member
Joined
Dec 12, 2013
Messages
20
Excel Magic Trick 778: INDEX & MATCH Lookup Functions Beginning To Advanced (18 Examples) - YouTube example 6. I have a table similar to this one without the descending numbers as "pipe size". My "pipe sizes" would have to be 0-2, 2.1-4, 4.1-6, 6.1-8, and >8.1. My rainfall would also have to be ranges 0-1000, 1000-2000, 2000-
3000, 3000-4000, and 4000-5000. The corresponding table values are......
[TABLE="width: 330"]
<colgroup><col width="73" style="width: 55pt; mso-width-source: userset; mso-width-alt: 2669;" span="6"> <tbody>[TR]
[TD="width: 73"]
[/TD]
[TD="width: 73, bgcolor: #D9D9D9"]1000[/TD]
[TD="width: 73, bgcolor: #D9D9D9"]2000[/TD]
[TD="width: 73, bgcolor: #D9D9D9"]3000[/TD]
[TD="width: 73, bgcolor: #D9D9D9"]4000
[/TD]
[TD="width: 73"]5000[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD="bgcolor: transparent"]10[/TD]
[TD="bgcolor: transparent"]7[/TD]
[TD="bgcolor: transparent"]5[/TD]
[TD="bgcolor: transparent"]4[/TD]
[TD="bgcolor: transparent"]1[/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD]7[/TD]
[TD]5
[/TD]
[TD]4[/TD]
[TD]3[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD="align: right"]6[/TD]
[TD="bgcolor: transparent"]5[/TD]
[TD="bgcolor: transparent"]4[/TD]
[TD="bgcolor: transparent"]3
[/TD]
[TD="bgcolor: transparent"]2[/TD]
[TD="bgcolor: transparent"]1[/TD]
[/TR]
[TR]
[TD="align: right"]8[/TD]
[TD]4
[/TD]
[TD]3[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD="align: right"]100
[/TD]
[TD="bgcolor: transparent"]1[/TD]
[TD="bgcolor: transparent"]1[/TD]
[TD="bgcolor: transparent"]1[/TD]
[TD="bgcolor: transparent"]1[/TD]
[TD="bgcolor: transparent"]1[/TD]
[/TR]
</tbody>[/TABLE]

What value do I need to put in the 100 spot to show anything greater than 8?
if c51=5 and c52=2650 I would need c53=3 and I'm currently getting 5 with...
=INDEX(Sheet2!$G$5:$K$9,MATCH(Schaurer!C51,Sheet2!$F$5:$F$9,1),MATCH(Schaurer!C52,Sheet2!$G$4:$K$4,1))
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Hi, try with data as follows:
<style>table { }td { padding-top: 1px; padding-right: 1px; padding-left: 1px; color: black; font-size: 12pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: Calibri,sans-serif; vertical-align: bottom; border: medium none; white-space: nowrap; }.xl63 { text-align: center; vertical-align: middle; white-space: normal; }.xl64 { color: black; font-weight: 700; font-family: Calibri; text-align: center; vertical-align: middle; background: none repeat scroll 0% 0% rgb(217, 217, 217); white-space: normal; }</style> [TABLE="class: grid, width: 390"]
<tbody>[TR]
[TD="width: 65"][/TD]
[TD="width: 65"]0[/TD]
[TD="width: 65"]1000[/TD]
[TD="width: 65"]2000[/TD]
[TD="width: 65"]3000[/TD]
[TD="width: 65"]4000[/TD]
[/TR]
[TR]
[TD="width: 65"]0[/TD]
[TD="width: 65, bgcolor: transparent"]10[/TD]
[TD="width: 65, bgcolor: transparent"]7[/TD]
[TD="width: 65, bgcolor: transparent"]5[/TD]
[TD="width: 65, bgcolor: transparent"]4[/TD]
[TD="width: 65, bgcolor: transparent"]1[/TD]
[/TR]
[TR]
[TD="width: 65"]2[/TD]
[TD="width: 65"]7[/TD]
[TD="width: 65"]5[/TD]
[TD="width: 65"]4[/TD]
[TD="width: 65"]3[/TD]
[TD="width: 65"]1[/TD]
[/TR]
[TR]
[TD="width: 65"]4[/TD]
[TD="width: 65, bgcolor: transparent"]5[/TD]
[TD="width: 65, bgcolor: transparent"]4[/TD]
[TD="width: 65, bgcolor: transparent"]3[/TD]
[TD="width: 65, bgcolor: transparent"]2[/TD]
[TD="width: 65, bgcolor: transparent"]1[/TD]
[/TR]
[TR]
[TD="width: 65"]6[/TD]
[TD="width: 65"]4[/TD]
[TD="width: 65"]3[/TD]
[TD="width: 65"]2[/TD]
[TD="width: 65"]2[/TD]
[TD="width: 65"]1[/TD]
[/TR]
[TR]
[TD="width: 65"]8[/TD]
[TD="width: 65, bgcolor: transparent"]1[/TD]
[TD="width: 65, bgcolor: transparent"]1[/TD]
[TD="width: 65, bgcolor: transparent"]1[/TD]
[TD="width: 65, bgcolor: transparent"]1[/TD]
[TD="width: 65, bgcolor: transparent"]1[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
That worked! Thanks! I see what it was trying to do and why I was a column off. Is there any way to show that range? ie.....0-2, 2-4 etc
 
Upvote 0
That worked! Thanks! I see what it was trying to do and why I was a column off. Is there any way to show that range? ie.....0-2, 2-4 etc

given <style>table { }td { padding-top: 1px; padding-right: 1px; padding-left: 1px; color: black; font-size: 12pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: Calibri,sans-serif; vertical-align: bottom; border: medium none; white-space: nowrap; }.xl63 { vertical-align: middle; white-space: normal; }</style> [TABLE="width: 65"]
<colgroup><col style="width:65pt" width="65"> </colgroup><tbody>[TR]
[TD="class: xl63, width: 65"]0to2[/TD]
[/TR]
[TR]
[TD="class: xl63, width: 65, bgcolor: transparent"]2to4[/TD]
[/TR]
[TR]
[TD="class: xl63, width: 65"]4to6[/TD]
[/TR]
[TR]
[TD="class: xl63, width: 65, bgcolor: transparent"]6to8[/TD]
[/TR]
[TR]
[TD="class: xl63, width: 65"]8to∞[/TD]
[/TR]
</tbody>[/TABLE]

formula would be =INDEX(Sheet2!$G$5:$K$9,MATCH(Schaurer!C51,LEFT(Sheet2!$F$5:$F$9,1)*1,1),MATCH(Schaurer!C52,Sheet2!$G$4:$K$4,1)) Ctrl + Shift + Enter, not just enter on a PC or Command + Return on a MAC.
 
Upvote 0
formula would be =INDEX(Sheet2!$G$5:$K$9,MATCH(Schaurer!C51,LEFT(Sheet2!$F$5:$F$9,1)*1,1),MATCH(Schaurer!C52,Sheet2!$G$4:$K$4,1)) Ctrl + Shift + Enter, not just enter on a PC or Command + Return on a MAC.[/QUOTE]


Would that also work with ranges on the top as well, or would I have to change something else in the formula? ie 0to1000, 1000to2000 etc
 
Upvote 0
Given
<style>table { }td { padding-top: 1px; padding-right: 1px; padding-left: 1px; color: black; font-size: 12pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: Calibri,sans-serif; vertical-align: bottom; border: medium none; white-space: nowrap; }.xl63 { text-align: center; vertical-align: middle; white-space: normal; }</style> [TABLE="class: grid, width: 390"]
<tbody>[TR]
[TD="width: 65"][/TD]
[TD="width: 65"]0to1000[/TD]
[TD="width: 65"]1000to2000[/TD]
[TD="width: 65"]2000to3000[/TD]
[TD="width: 65"]3000to4000[/TD]
[TD="width: 65"]4000to∞[/TD]
[/TR]
[TR]
[TD="width: 65"]0to2[/TD]
[TD="width: 65, bgcolor: transparent"]10[/TD]
[TD="width: 65, bgcolor: transparent"]7[/TD]
[TD="width: 65, bgcolor: transparent"]5[/TD]
[TD="width: 65, bgcolor: transparent"]4[/TD]
[TD="width: 65, bgcolor: transparent"]1[/TD]
[/TR]
[TR]
[TD="width: 65, bgcolor: transparent"]2to4[/TD]
[TD="width: 65"]7[/TD]
[TD="width: 65"]5[/TD]
[TD="width: 65"]4[/TD]
[TD="width: 65"]3[/TD]
[TD="width: 65"]1[/TD]
[/TR]
[TR]
[TD="width: 65"]4to6[/TD]
[TD="width: 65, bgcolor: transparent"]5[/TD]
[TD="width: 65, bgcolor: transparent"]4[/TD]
[TD="width: 65, bgcolor: transparent"]3[/TD]
[TD="width: 65, bgcolor: transparent"]2[/TD]
[TD="width: 65, bgcolor: transparent"]1[/TD]
[/TR]
[TR]
[TD="width: 65, bgcolor: transparent"]6to8[/TD]
[TD="width: 65"]4[/TD]
[TD="width: 65"]3[/TD]
[TD="width: 65"]2[/TD]
[TD="width: 65"]2[/TD]
[TD="width: 65"]1[/TD]
[/TR]
[TR]
[TD="width: 65"]8to∞[/TD]
[TD="width: 65, bgcolor: transparent"]1[/TD]
[TD="width: 65, bgcolor: transparent"]1[/TD]
[TD="width: 65, bgcolor: transparent"]1[/TD]
[TD="width: 65, bgcolor: transparent"]1[/TD]
[TD="width: 65, bgcolor: transparent"]1[/TD]
[/TR]
</tbody>[/TABLE]

Adjust formula to =INDEX(Sheet2!$G$5:$K$9,MATCH(Schaurer!C51,LEFT(Sheet2!$F$5:$F$9,1)*1,1),MATCH(Schaurer!C52/1000,LEFT(Sheet2!$G$4:$K$4,1)*1,1)) Ctrl + Shift + Enter, not just enter on a PC or Command + Return on a MAC


Would that be close to what you required?
 
Upvote 0
That's exactly what I needed! Some people just don't see the ranges unless I mark them accordingly, so I had to put them in. Thanks for the help!!
 
Upvote 0
I had a chance this afternoon to input some data, one of the customers is 8 and 1167. I need that to fall as a 3 and its coming up with 1. There is another one with 8 that also seems to be on the wrong row......not sure what the deal is. everything else seems good
 
Upvote 0
I had a chance this afternoon to input some data, one of the customers is 8 and 1167. I need that to fall as a 3 and its coming up with 1. There is another one with 8 that also seems to be on the wrong row......not sure what the deal is. everything else seems good

Hi, merry Christmas. Have you been able to duplicate your concern with this specific data? or is it working now?
 
Upvote 0
Nothing has changed. I tried changing the ranges to 0to2 2.1to4 4.1to6 6.1to8 and 8.1to∞ to see if that would work and it didn't seem to help
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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