Change a Vertical Lookup table to one row

rcb007

Board Regular
Joined
Nov 12, 2020
Messages
90
Office Version
  1. 365
Platform
  1. Windows
I am trying to figure out how to take this vertical table to be all in one row, then make a formula to look it up. Thank you for any help!

Q Comparison.xlsx
ABCDEF
1diaminFullnQ Slope
21201.780.0135.200.25
3151.783.230.0135.200.25
4183.235.250.0135.200.25
5215.257.920.0135.200.25
6247.9211.310.0135.200.25
73011.3120.510.0135.200.25
83620.5133.350.0135.200.25
94233.3550.300.0135.200.25
104850.3071.820.0135.200.25
115471.8298.320.0135.200.25
126098.32130.220.0135.200.25
1366130.22167.900.0135.200.25
1472167.90211.750.0135.200.25
15diaminFullnQ Slope
Sheet1
Cell Formulas
RangeFormula
C2:C14C2=IF(SUM(A2:A2)=0,"-",(1.486/D2)*((A2^2)*PI()/576)*((A2/48)^(2/3))*((F2/100)^(1/2)))
B3:B14B3=C2


Vertical Lookup Forumula
=LOOKUP(I3,B2:B14,A2:A14)


Q Comparison.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMANAOAPAQARASATAUAVAWAXAYAZBABBBCBDBEBFBGBHBIBJBKBLBMBNBOBPBQBRBSBTBUBVBWBXBYBZ
18diaminFullnQ SlopediaminFullnQ SlopediaminFullnQ SlopediaminFullnQ SlopediaminFullnQ SlopediaminFullnQ SlopediaminFullnQ SlopediaminFullnQ SlopediaminFullnQ SlopediaminFullnQ SlopediaminFullnQ SlopediaminFullnQ SlopediaminFullnQ Slope
19120.001.780.015.200.25151.783.230.015.200.25183.235.250.015.200.25215.257.920.015.200.25247.9211.310.015.200.253011.3120.510.015.200.253620.5133.350.015.200.254233.3550.300.015.200.254850.3071.820.015.200.255471.8298.320.015.200.256098.32130.220.015.200.2566130.22167.900.015.200.2572167.90211.750.015.200.25
Sheet1
Cell Formulas
RangeFormula
C19,BW19,BQ19,BK19,BE19,AY19,AS19,AM19,AG19,AA19,U19,O19,I19C19=(1.486/D19)*((A19^2)*PI()/576)*((A19/48)^(2/3))*((F19/100)^(1/2))
H19,BV19,BP19,BJ19,BD19,AX19,AR19,AL19,AF19,Z19,T19,N19H19=C19
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Try the following formula, which needs to be confirmed with CONTROL+SHIFT+ENTER...

=INDEX(A19:BZ19,MATCH(I3,IF(A18:BZ18="min",A19:BZ19),1)-1)

Hope this helps!
 
Upvote 0
A few comments/questions

needs to be confirmed with CONTROL+SHIFT+ENTER...
Since the OP has Microsoft 365, the C+S+E should not be required

@rcb007
Can you confirm what should happen if I3 is exactly equal to one of the range boundary points (eg For I3 = 5.25216917013281 should the answer be 18 or 21?)? Or this that not possible with your data?

Is it possible that I3 could be greater than the C14 value? If so the suggested formula would need a slight modification.

If interested, a couple of other formulas that I believe return the same values are

Excel Formula:
=MAX(FILTER(A19:BU19,(A18:BU18="dia")*(B19:BV19<=I3)))
Excel Formula:
=AGGREGATE(14,6,A19:BU19/((A18:BU18="dia")*(B19:BV19<=I3)),1)
 
Upvote 0
Since the OP has Microsoft 365, the C+S+E should not be required
Oh wow, I thought I checked for the version... I guess not. Thanks for catching it.

Cheers!
 
Upvote 0
By
A few comments/questions


Since the OP has Microsoft 365, the C+S+E should not be required

@rcb007
Can you confirm what should happen if I3 is exactly equal to one of the range boundary points (eg For I3 = 5.25216917013281 should the answer be 18 or 21?)? Or this that not possible with your data?

Is it possible that I3 could be greater than the C14 value? If so the suggested formula would need a slight modification.

If interested, a couple of other formulas that I believe return the same values are

Excel Formula:
=MAX(FILTER(A19:BU19,(A18:BU18="dia")*(B19:BV19<=I3)))
Excel Formula:
=AGGREGATE(14,6,A19:BU19/((A18:BU18="dia")*(B19:BV19<=I3)),1)
(eg For I3 = 5.25216917013281 should the answer be 18 or 21?)?

For an 18 (3.23 min and 5.25 max)
For an 21 (5.25 min and 7.92 max)

I would think the answer would be 21. I am looking at the 5.2521.... still being above the initial 5.25.

I hope that helps some.
 
Upvote 0
For an 18 (3.23 min and 5.25 max)
For an 21 (5.25 min and 7.92 max)

I would think the answer would be 21. I am looking at the 5.2521.... still being above the initial 5.25.

I hope that helps some.
OK, that sounds like a value that is the upper limit of one range and the lower limit of the next range should return the second range. That is what all the suggested formulas do so all is good. (y)
 
Upvote 0
Awesome, Thank you for taking the time to figure this out! Much Appreciated!
 
Upvote 0
You're welcome. Glad we could help. Of course Domenic had already provided the solution as you noted earlier. :)
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,557
Members
449,088
Latest member
davidcom

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