ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   rounding to nearest hundred dollar in Excel (https://www.excelbanter.com/new-users-excel/50489-rounding-nearest-hundred-dollar-excel.html)

Diane

rounding to nearest hundred dollar in Excel
 
User wants to round up to nearest $100 dollar figure if it's over 50, or down
to nearest $100 figure if it's under 50. For example, if they enter dollar
figure of $1234.00, they want it rounded down to the nearest $100 dollar
amount, which would be $1,200.00. Thanks.

Peo Sjoblom

50000? Since you say round up to nearest 100 if over 50 shouldn't 1234 round
up to 1300? Or did you mean 50000?

Regardsless round to nearest 100 is ROUND(x,100) round up is
CEILING(x,100)

so you can set it the way you want by testing the condition

=IF(x50,formula1,formula2

Regards,

Peo Sjoblom
"Diane" wrote in message
...
User wants to round up to nearest $100 dollar figure if it's over 50, or

down
to nearest $100 figure if it's under 50. For example, if they enter dollar
figure of $1234.00, they want it rounded down to the nearest $100 dollar
amount, which would be $1,200.00. Thanks.




Faz


The round function will do this. =ROUND(X,Y)
X is the number (cell reference) you want rounding
Y is the number of decimal places you want it to round to. If you want
something rounded to 3 decimal places, Y would be 3. Y can take
negative values, such as -1, which rounds to the nearest ten and -2,
which rounds to the nearest hundred, which you are after.
Assuming the cell you want rounding is F10, the equation is
=ROUND(F10,-2)


--
Faz
------------------------------------------------------------------------
Faz's Profile: http://www.excelforum.com/member.php...o&userid=27830
View this thread: http://www.excelforum.com/showthread...hreadid=476232


Bob Phillips

Round to the nearest 100 is

=ROUND(x,-2)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Peo Sjoblom" wrote in message
...
50000? Since you say round up to nearest 100 if over 50 shouldn't 1234

round
up to 1300? Or did you mean 50000?

Regardsless round to nearest 100 is ROUND(x,100) round up is
CEILING(x,100)

so you can set it the way you want by testing the condition

=IF(x50,formula1,formula2

Regards,

Peo Sjoblom
"Diane" wrote in message
...
User wants to round up to nearest $100 dollar figure if it's over 50, or

down
to nearest $100 figure if it's under 50. For example, if they enter

dollar
figure of $1234.00, they want it rounded down to the nearest $100 dollar
amount, which would be $1,200.00. Thanks.






Diane

Thanks Bob,

User tried it, and it works!

Diane

"Bob Phillips" wrote:

Round to the nearest 100 is

=ROUND(x,-2)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Peo Sjoblom" wrote in message
...
50000? Since you say round up to nearest 100 if over 50 shouldn't 1234

round
up to 1300? Or did you mean 50000?

Regardsless round to nearest 100 is ROUND(x,100) round up is
CEILING(x,100)

so you can set it the way you want by testing the condition

=IF(x50,formula1,formula2

Regards,

Peo Sjoblom
"Diane" wrote in message
...
User wants to round up to nearest $100 dollar figure if it's over 50, or

down
to nearest $100 figure if it's under 50. For example, if they enter

dollar
figure of $1234.00, they want it rounded down to the nearest $100 dollar
amount, which would be $1,200.00. Thanks.







Peo Sjoblom

Doh!

Peo


"Bob Phillips" wrote in message
...
Round to the nearest 100 is

=ROUND(x,-2)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Peo Sjoblom" wrote in message
...
50000? Since you say round up to nearest 100 if over 50 shouldn't 1234

round
up to 1300? Or did you mean 50000?

Regardsless round to nearest 100 is ROUND(x,100) round up is
CEILING(x,100)

so you can set it the way you want by testing the condition

=IF(x50,formula1,formula2

Regards,

Peo Sjoblom
"Diane" wrote in message
...
User wants to round up to nearest $100 dollar figure if it's over 50,

or
down
to nearest $100 figure if it's under 50. For example, if they enter

dollar
figure of $1234.00, they want it rounded down to the nearest $100

dollar
amount, which would be $1,200.00. Thanks.








Bob Phillips

You were thinking ahead of yourself Peo :-)

"Peo Sjoblom" wrote in message
...
Doh!

Peo


"Bob Phillips" wrote in message
...
Round to the nearest 100 is

=ROUND(x,-2)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Peo Sjoblom" wrote in message
...
50000? Since you say round up to nearest 100 if over 50 shouldn't 1234

round
up to 1300? Or did you mean 50000?

Regardsless round to nearest 100 is ROUND(x,100) round up is
CEILING(x,100)

so you can set it the way you want by testing the condition

=IF(x50,formula1,formula2

Regards,

Peo Sjoblom
"Diane" wrote in message
...
User wants to round up to nearest $100 dollar figure if it's over

50,
or
down
to nearest $100 figure if it's under 50. For example, if they enter

dollar
figure of $1234.00, they want it rounded down to the nearest $100

dollar
amount, which would be $1,200.00. Thanks.









Peo Sjoblom

You forgot "again" at the end

:))

Peo


"Bob Phillips" wrote in message
...
You were thinking ahead of yourself Peo :-)

"Peo Sjoblom" wrote in message
...
Doh!

Peo


"Bob Phillips" wrote in message
...
Round to the nearest 100 is

=ROUND(x,-2)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Peo Sjoblom" wrote in message
...
50000? Since you say round up to nearest 100 if over 50 shouldn't

1234
round
up to 1300? Or did you mean 50000?

Regardsless round to nearest 100 is ROUND(x,100) round up is
CEILING(x,100)

so you can set it the way you want by testing the condition

=IF(x50,formula1,formula2

Regards,

Peo Sjoblom
"Diane" wrote in message
...
User wants to round up to nearest $100 dollar figure if it's over

50,
or
down
to nearest $100 figure if it's under 50. For example, if they

enter
dollar
figure of $1234.00, they want it rounded down to the nearest $100

dollar
amount, which would be $1,200.00. Thanks.












All times are GMT +1. The time now is 08:41 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com