vlookup a rounded up value

bucknut11

New Member
Joined
Jul 30, 2014
Messages
3
I need to vlookup a rounded up number to the nearest tenth and then return a separate value that cordinates with the rounded number from table in separate sheet:

WS1 .......................................................................WS2

.........A............B ........................P ...........................................Q
1 ..... PH .. INT Value ........1 . Actual PH ................................INT Value
2..... (6.0) .. (1.250) ..........2 .. (6.04) ........................Should kick out 1.500 not 1.250
3..... (6.1) .. (1.500) ..........3 .. (6.24) ........................Should kick out 2.000 not 1.750
4..... (6.2) .. (1.750) ..........4 .. (6.34) ........................Should kick out 2.250 not 2.000
5..... (6.3) .. (2.000) ..........5 .. (6.40) ........................Should kick out 2.250
6..... (6.4) .. (2.250) ..........6 .. (6.21) ........................Should kick out 2.000 not 1.750


I have tried inserting a fake column that does the round up pre-vlookup and refrenced it as my search number but it still kicks out the lower INT value.

Thanks
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Welcome to MrExcel.

Formula in E2 copied down:


Excel 2010
ABCDE
1PHINT Value1Actual PHINT Value
26.0125026.041500
36.1150036.242000
46.2175046.342250
56.3200056.402250
66.4225066.212000
Sheet1
Cell Formulas
RangeFormula
E2=LOOKUP(CEILING(D2,0.1),A$2:A$6,B$2:B$6)
 
Upvote 0
bucknut11,

Welcome to the MrExcel forum.

How about?


Excel 2007
ABCPQ
1PHINT ValueActual PHINT Value
26.01.2506.041.500
36.11.5006.242.000
46.21.7506.342.250
56.32.0006.402.250
66.42.2506.212.000
7
Sheet1
Cell Formulas
RangeFormula
Q2=LOOKUP(CEILING(P2,0.1),A$2:A$6,B$2:B$6)



The formula in cell Q2, copied down:
=LOOKUP(CEILING(P2,0.1),A$2:A$6,B$2:B$6)
 
Last edited:
Upvote 0
bucknut11,

How about?


Excel 2007
AB
1PHINT Value
26.01.250
36.11.500
46.21.750
56.32.000
66.42.250
7
WS1



Excel 2007
PQ
1Actual PHINT Value
26.041.500
36.242.000
46.342.250
56.402.250
66.212.000
7
WS2
Cell Formulas
RangeFormula
Q2=LOOKUP(CEILING(P2,0.1),'WS1'!$A$2:$A$6,'WS1'!$B$2:$B$6)


The formula in cell Q2, copied down:
=LOOKUP(CEILING(P2,0.1),'WS1'!$A$2:$A$6,'WS1'!$B$2:$B$6)
 
Upvote 0
thanks...

will be posting a new topic today... on a table pulling from left column and top row to find result where they meet.
 
Upvote 0
bucknut11,

Thanks for the feedback.

You are very welcome. Glad we could help.

And, come back anytime.
 
Upvote 0

Forum statistics

Threads
1,214,596
Messages
6,120,438
Members
448,966
Latest member
DannyC96

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