Using ROUNDUP and IF within a cell, with a calculation already in it.

CHarkin

New Member
Joined
Sep 15, 2023
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi all,

Hoping this one is a testing problem for the maestros on here.

I have a G8, which contains the following formula =VLOOKUP($C$2,Variables!G24:H43,2,FALSE)*$G$4

This returns a result of 0.4. What I want to is within the same formula in G8, add something that checks that if the value is less than 1, it rounds up the answer of that caluclation above to 1. It doesn't need to anything else, it just needs to round up to 1, if the value in the cell is calculated as lower than 1.

Can anyone assist please?

Many thanks

Ciarán
 

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
Welcome to the Board!

Just wrap your whole formula in a MAX function, i.e.
Excel Formula:
=MAX(VLOOKUP($C$2,Variables!G24:H43,2,FALSE)*$G$4,1)
 
Upvote 0
Solution
Welcome to the Board!

Just wrap your whole formula in a MAX function, i.e.
Excel Formula:
=MAX(VLOOKUP($C$2,Variables!G24:H43,2,FALSE)*$G$4,1)
Well you made light work of that Joe4. That's awesome, thank you very much.
 
Upvote 0
You are welcome!

I hope it makes sense. Feel free to ask any questions about it, if anything is unclear.
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,206
Members
452,618
Latest member
Tam84

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