Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Round a repeating decimal from a formula...

On Fri, 22 Feb 2008 15:40:01 -0800, Snake2135
wrote:

here's my situation: I need to round all decimals that result from an IMDIV
function to two decimal places. I have Excel 2007, I have already tried
numerous ROUND functions, formatted the cells to round to two decimal places.
But on repeating decimals it will not round, only on solid results it will
round to two decimal places, thanks in advance.


IMDIV returns a text string, so you cannot do a ROUND on either portion
directly.

You will need to operate separately on the real and imaginary coefficients.

For example, if the result of your IMDIV operation is in A1:

=COMPLEX(ROUND(IMREAL(A1),2),ROUND(IMAGINARY(A1),2 ))

Obviously, in the above, you could replace A1 with your IMDIV formula.
--ron
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
Round/Display (HR:MN:SEC) data in decimal HR format for Time C Nauj Solrac Excel Discussion (Misc queries) 6 March 26th 09 05:34 PM
Round a negative decimal Montana Excel Worksheet Functions 8 November 20th 07 06:09 AM
repeating a formula izzo Excel Worksheet Functions 1 July 18th 06 03:06 PM
How do I round last number without a decimal point rollover22 Excel Worksheet Functions 1 July 26th 05 04:35 PM
ROUND DATA TO 2 DECIMAL PLACES roy in sunbury New Users to Excel 1 January 12th 05 03:33 AM


All times are GMT +1. The time now is 08:58 AM.

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

About Us

"It's about Microsoft Excel"