#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 213
Default Help with formula

Hello...
I have a formula I am looking for some assistance with. The formula I
currently have rounds a dollar amount to the nearest dollar. The problem is
that it always rounds up. I need the formula to be able to determine, if
possible, wether it should round up or down.

Example: 33.49 should round down to 33.00....33.50 (and above) should round
up to 34.00.

Here is what I have (which may be completly wrong anyways but works as far
as rounding up only):

=IF(J6="X", CEILING(I26/I25,1), I26/I25)

Any assistance will be greatly appreciated. I thank you in advance for your
time!

--
Randy Street
Rancho Cucamonga, CA
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,173
Default Help with formula

Randy

Try

=IF(J6="X", (ROUND(I26/I25,0), I26/I25)

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
web:
www.nickhodge.co.uk
blog (non-tech): www.nickhodge.co.uk/blog/


"Randy" wrote in message
...
Hello...
I have a formula I am looking for some assistance with. The formula I
currently have rounds a dollar amount to the nearest dollar. The problem
is
that it always rounds up. I need the formula to be able to determine, if
possible, wether it should round up or down.

Example: 33.49 should round down to 33.00....33.50 (and above) should
round
up to 34.00.

Here is what I have (which may be completly wrong anyways but works as far
as rounding up only):

=IF(J6="X", CEILING(I26/I25,1), I26/I25)

Any assistance will be greatly appreciated. I thank you in advance for
your
time!

--
Randy Street
Rancho Cucamonga, CA


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default Help with formula

Hi, Randy-
The CEILING function specifically rounds up. Try ROUND instead, comme
ca:

=IF(J6="X", ROUND(I26/I25,0), I26/I25)

ROUND rounds up or down at the .5 mark

Dave O

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,311
Default Help with formula

I think you want ROUND, not CEILING.

Maybe this:
=IF(J6="X", ROUND(I26/I25,0), I26/I25)

HTH,
Paul

"Randy" wrote in message
...
Hello...
I have a formula I am looking for some assistance with. The formula I
currently have rounds a dollar amount to the nearest dollar. The problem
is
that it always rounds up. I need the formula to be able to determine, if
possible, wether it should round up or down.

Example: 33.49 should round down to 33.00....33.50 (and above) should
round
up to 34.00.

Here is what I have (which may be completly wrong anyways but works as far
as rounding up only):

=IF(J6="X", CEILING(I26/I25,1), I26/I25)

Any assistance will be greatly appreciated. I thank you in advance for
your
time!

--
Randy Street
Rancho Cucamonga, CA



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,173
Default Help with formula

eeeek

Take the first ( off, sorry

=IF(J6="X", ROUND(I26/I25,0), I26/I25)

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
web:
www.nickhodge.co.uk
blog (non-tech): www.nickhodge.co.uk/blog/

"Nick Hodge" wrote in message
...
Randy

Try

=IF(J6="X", (ROUND(I26/I25,0), I26/I25)

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
web:
www.nickhodge.co.uk
blog (non-tech): www.nickhodge.co.uk/blog/


"Randy" wrote in message
...
Hello...
I have a formula I am looking for some assistance with. The formula I
currently have rounds a dollar amount to the nearest dollar. The problem
is
that it always rounds up. I need the formula to be able to determine, if
possible, wether it should round up or down.

Example: 33.49 should round down to 33.00....33.50 (and above) should
round
up to 34.00.

Here is what I have (which may be completly wrong anyways but works as
far
as rounding up only):

=IF(J6="X", CEILING(I26/I25,1), I26/I25)

Any assistance will be greatly appreciated. I thank you in advance for
your
time!

--
Randy Street
Rancho Cucamonga, CA





  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 213
Default Help with formula

Added another ")" after the "0" and it worked like a charm!

Thank you very much for your quick response! You are a Rock Star!
--
Randy Street
Rancho Cucamonga, CA


"Nick Hodge" wrote:

Randy

Try

=IF(J6="X", (ROUND(I26/I25,0), I26/I25)

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
web:
www.nickhodge.co.uk
blog (non-tech): www.nickhodge.co.uk/blog/


"Randy" wrote in message
...
Hello...
I have a formula I am looking for some assistance with. The formula I
currently have rounds a dollar amount to the nearest dollar. The problem
is
that it always rounds up. I need the formula to be able to determine, if
possible, wether it should round up or down.

Example: 33.49 should round down to 33.00....33.50 (and above) should
round
up to 34.00.

Here is what I have (which may be completly wrong anyways but works as far
as rounding up only):

=IF(J6="X", CEILING(I26/I25,1), I26/I25)

Any assistance will be greatly appreciated. I thank you in advance for
your
time!

--
Randy Street
Rancho Cucamonga, CA


  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,173
Default Help with formula

Randy

I like it when posters pick up the typos. Glad it works!

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
web:
www.nickhodge.co.uk
blog (non-tech): www.nickhodge.co.uk/blog/

"Randy" wrote in message
...
Added another ")" after the "0" and it worked like a charm!

Thank you very much for your quick response! You are a Rock Star!
--
Randy Street
Rancho Cucamonga, CA


"Nick Hodge" wrote:

Randy

Try

=IF(J6="X", (ROUND(I26/I25,0), I26/I25)

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
web:
www.nickhodge.co.uk
blog (non-tech): www.nickhodge.co.uk/blog/


"Randy" wrote in message
...
Hello...
I have a formula I am looking for some assistance with. The formula I
currently have rounds a dollar amount to the nearest dollar. The
problem
is
that it always rounds up. I need the formula to be able to determine,
if
possible, wether it should round up or down.

Example: 33.49 should round down to 33.00....33.50 (and above) should
round
up to 34.00.

Here is what I have (which may be completly wrong anyways but works as
far
as rounding up only):

=IF(J6="X", CEILING(I26/I25,1), I26/I25)

Any assistance will be greatly appreciated. I thank you in advance for
your
time!

--
Randy Street
Rancho Cucamonga, CA



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:32 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"