Hlookup with Rounding

wisemank

Board Regular
Joined
Jun 21, 2010
Messages
129
Hi all,

I have a formula:

=IF(ISERROR(HLOOKUP(BD23,'Laser Tables'!C1:R2,2,FALSE)),"",(HLOOKUP(BD23,'Laser Tables'!C1:R2,2,FALSE)))

My issue is the data table for the lookup is in Tenths... So for example user inputs 2.40 into BD23 and the formula works great. If the user inputs 2.35 it fails because the lookup table doesn't contain the data into Hundredths. Since there is very little difference in the data in Hundredths vs. Tenths rounding up is a most desirable solution. So if the user inputs 2.35 into BD23 I need the equation to round up to 2.40. Any suggestions?

Thanks,

Kip
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Try

=IF(ISERROR(HLOOKUP(ROUNDUP(BD23,1),'Laser Tables'!C1:R2,2,FALSE)),"",(HLOOKUP(ROUNDUP(BD23,1),'Laser Tables'!C1:R2,2,FALSE)))
 
Upvote 0
Use TRUE instead of FALSE in the HLOOKUP formula for an approximate match and make sure that the lookup array is in ascending order from left to right.
 
Upvote 0

Forum statistics

Threads
1,223,246
Messages
6,170,988
Members
452,373
Latest member
TimReeks

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