Simple question

G

Guest

Guest
cell c1 is the sum of a1 & b1. I need to round c1, but the value varies depending on a1 & b1's values. How do I do this?
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Don't quite understand. Do you mean the way the rounding is done is determined ny the values in A & B? If so, can you give an example of what you mean.
Richard
 
Upvote 0
i think the answer will depend on how many variations there are. can you prvide more detail?
 
Upvote 0
Say for instance...

in one case the values of A1 & B1 might be:
A1=8.67
B1=1.33
C1=A1/B1 (6.518...), but I need this to be a whole number, or 7

in another case, the values of A1 & B1 might be:

A1=12.33
B2=1.08
C1=A1/B1 (11.416...), but it too will need to be a whole number, or 11.

In all cases, C1 needs to be a whole number, being rounded down if it's __.49 or less, or rounded up if it's __.50 or more.

Any ideas??
 
Upvote 0
Hi
Just use =Round(A1/B1,0)
This should round up or down to the nearest integer
Derek
 
Upvote 0

Forum statistics

Threads
1,213,494
Messages
6,113,981
Members
448,538
Latest member
alex78

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