Roundup

bnkyaong

New Member
Joined
May 28, 2019
Messages
6
Hi Guys,

I've been trying to roundup the result of this formula but i can't
seem to make it work. Can anybody please help me.

=IF($B8="","",(VLOOKUP($B8,'Type D Box Col Data '!$C$4:$H$260,5,0)*2)+1+(2*C8)+2)

Thanks in advance,

bnkyaong.
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Welcome to the Board!

What do the values that is it returning from column G look like?
How exactly do you want them rounded (explain in plain English, the danger of trying to interpret from coding is that if your coding is wrong, our interpretation of what you are trying to do could be wrong).
 
Upvote 0
Assuming those values being returned are numeric and not text, try:
Code:
[COLOR=#333333]=IF($B8="","",ROUND(VLOOKUP($B8,'Type D Box Col Data '!$C$4:$H$260,5,0),0))[/COLOR]
 
Last edited:
Upvote 0
Hi Joe4,

I want the answer for the entire formula to be rounded up not just the first part of it.

Thank you,
bnkyaong
 
Upvote 0
Note that if you really want to always round up, so that a value like 31.25 rounds up to 32, then just use ROUNDUP instead of ROUND, i.e.
Code:
[COLOR=#333333]=IF($B8="","",ROUNDUP(VLOOKUP($B8,'Type D Box Col Data '!$C$4:$H$260,5,0),0))[/COLOR]

If it does not work for you, please provide an example of a value that is not working (and tell us what you expected answer should be).
 
Last edited:
Upvote 0
Hi Joe4,

=IF($B8="","",(VLOOKUP($B8,'Type D Box Col Data '!$C$4:$H$260,5,0)*2)+1+(2*C8)+2)
with the formula above i'm getting an answer equal to 30-1/2"
i want to roundup this answer to 31"
'Type D Box Col Data '!$C$4:$H$260,5,0) has a value of 11"
C8 has a value of 2-3/4"

I'm actually trying to use roundup and not round. Doesn't your formula above just rounds up the first portion of
my entire formula ( underlined above )?. When i try to insert your roundup formula on the first portion of my
formula i get an error message.

Thank you,
bnkyaong
 
Upvote 0
Code:
[COLOR=#333333]=IF($B8="","",Roundup([/COLOR][U](VLOOKUP($B8,'Type D Box Col Data '!$C$4:$H$260,5,0)[/U][COLOR=#333333]*2)+1+(2*C8)+2),0)[/COLOR]

Does that work?
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,897
Messages
6,175,269
Members
452,628
Latest member
dd2

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