Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 39
Default omit numbers past decimal in formula result

In a prefilled form, the formula in cell B1 is: =roundup(A1/4,0)
Cell A1 = 24, so the answer should be 6.

My problem is that even tho the cell displays the number as 24, the actual
number takes it several places past the decimal, (24.0000000000002) as the
result of another formula, so the result in B1 is 7 instead of 6. Is there a
way to prevent this and work with the whole number only? I hope I have given
enough information, but if not I will be happy to provide more details as
needed. Thanks in advance for any help.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,696
Default omit numbers past decimal in formula result

=roundup(round(A1)/4,0) or rounddown instead of round...

"DebC" wrote:

In a prefilled form, the formula in cell B1 is: =roundup(A1/4,0)
Cell A1 = 24, so the answer should be 6.

My problem is that even tho the cell displays the number as 24, the actual
number takes it several places past the decimal, (24.0000000000002) as the
result of another formula, so the result in B1 is 7 instead of 6. Is there a
way to prevent this and work with the whole number only? I hope I have given
enough information, but if not I will be happy to provide more details as
needed. Thanks in advance for any help.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,696
Default omit numbers past decimal in formula result

d'oh

=roundup(round(A1,0)/4,0)

"Sean Timmons" wrote:

=roundup(round(A1)/4,0) or rounddown instead of round...

"DebC" wrote:

In a prefilled form, the formula in cell B1 is: =roundup(A1/4,0)
Cell A1 = 24, so the answer should be 6.

My problem is that even tho the cell displays the number as 24, the actual
number takes it several places past the decimal, (24.0000000000002) as the
result of another formula, so the result in B1 is 7 instead of 6. Is there a
way to prevent this and work with the whole number only? I hope I have given
enough information, but if not I will be happy to provide more details as
needed. Thanks in advance for any help.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default omit numbers past decimal in formula result

Cell A1 = 24...as the result of another formula
Is there a way to prevent this and work with the whole number only?


You could use the ROUND function in the formula in cell A1:

=ROUND(your_formula,0)

Or, you could round down to the whole number in your current formula:

=ROUNDUP(INT(A1)/4,0)

--
Biff
Microsoft Excel MVP


"DebC" wrote in message
...
In a prefilled form, the formula in cell B1 is: =roundup(A1/4,0)
Cell A1 = 24, so the answer should be 6.

My problem is that even tho the cell displays the number as 24, the actual
number takes it several places past the decimal, (24.0000000000002) as the
result of another formula, so the result in B1 is 7 instead of 6. Is
there a
way to prevent this and work with the whole number only? I hope I have
given
enough information, but if not I will be happy to provide more details as
needed. Thanks in advance for any help.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 39
Default omit numbers past decimal in formula result

Thank you so much! As far as the formula on the destination page, I have no
input. I'm stuck with the formulas that are prefilled. However, I was able
to use this on my original worksheet that transfers to it. Huge help!

"Sean Timmons" wrote:

d'oh

=roundup(round(A1,0)/4,0)

"Sean Timmons" wrote:

=roundup(round(A1)/4,0) or rounddown instead of round...

"DebC" wrote:

In a prefilled form, the formula in cell B1 is: =roundup(A1/4,0)
Cell A1 = 24, so the answer should be 6.

My problem is that even tho the cell displays the number as 24, the actual
number takes it several places past the decimal, (24.0000000000002) as the
result of another formula, so the result in B1 is 7 instead of 6. Is there a
way to prevent this and work with the whole number only? I hope I have given
enough information, but if not I will be happy to provide more details as
needed. Thanks in advance for any help.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 39
Default omit numbers past decimal in formula result

Thank you very much. I get such good help from this site!

"T. Valko" wrote:

Cell A1 = 24...as the result of another formula
Is there a way to prevent this and work with the whole number only?


You could use the ROUND function in the formula in cell A1:

=ROUND(your_formula,0)

Or, you could round down to the whole number in your current formula:

=ROUNDUP(INT(A1)/4,0)

--
Biff
Microsoft Excel MVP


"DebC" wrote in message
...
In a prefilled form, the formula in cell B1 is: =roundup(A1/4,0)
Cell A1 = 24, so the answer should be 6.

My problem is that even tho the cell displays the number as 24, the actual
number takes it several places past the decimal, (24.0000000000002) as the
result of another formula, so the result in B1 is 7 instead of 6. Is
there a
way to prevent this and work with the whole number only? I hope I have
given
enough information, but if not I will be happy to provide more details as
needed. Thanks in advance for any help.




  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default omit numbers past decimal in formula result

You're welcome!

--
Biff
Microsoft Excel MVP


"DebC" wrote in message
...
Thank you very much. I get such good help from this site!

"T. Valko" wrote:

Cell A1 = 24...as the result of another formula
Is there a way to prevent this and work with the whole number only?


You could use the ROUND function in the formula in cell A1:

=ROUND(your_formula,0)

Or, you could round down to the whole number in your current formula:

=ROUNDUP(INT(A1)/4,0)

--
Biff
Microsoft Excel MVP


"DebC" wrote in message
...
In a prefilled form, the formula in cell B1 is: =roundup(A1/4,0)
Cell A1 = 24, so the answer should be 6.

My problem is that even tho the cell displays the number as 24, the
actual
number takes it several places past the decimal, (24.0000000000002) as
the
result of another formula, so the result in B1 is 7 instead of 6. Is
there a
way to prevent this and work with the whole number only? I hope I have
given
enough information, but if not I will be happy to provide more details
as
needed. Thanks in advance for any help.






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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Subtracting two 2-decimal place numbers gives result 13-decimal places? [email protected] Excel Worksheet Functions 5 March 12th 07 10:38 PM
Formula to count numbers past a specified limit panzram Excel Worksheet Functions 2 January 28th 07 07:12 PM
Formula without using numbers after decimal in the answer Mustang Excel Discussion (Misc queries) 5 September 16th 05 04:35 PM
How do I get rid of infinite numbers past the decimal place? hd Excel Worksheet Functions 1 June 1st 05 08:55 PM
goal seek wont calculate an accurate value past 3 decimal places Joe Browning Excel Discussion (Misc queries) 1 April 13th 05 07:29 AM


All times are GMT +1. The time now is 06:00 AM.

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"