Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 128
Default Rounding up values

I have a spreadsheet with the following formula in cell L35:

=IF(B35="","",IF(ISERROR(GETPIVOTDATA('LOST MEMBERS PIVOT
TABLE'!A33,Calculator!$B35&" Total")),"£0",GETPIVOTDATA('LOST MEMBERS PIVOT
TABLE'!A33,Calculator!$B35&" Total")))

I've formatted the cell so it shows zero decimal places and the result
appears as -11. However, I noticed a problem whereby this result does not
match the value in K35 (which has been put in place to manually calculate the
relevant cells to check that L35 is correct), so when this value is copied
into another cell, via paste special (values), the actual value is:
-11.1000000000001

Any ideas why this is? I think I may need to have the formula
=round(L35,2), but is there any way to include this in the original formula
detailed above?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Rounding up values

=IF(B35="","",ROUND(IF(ISERROR(GETPIVOTDATA('LOST MEMBERS PIVOT
TABLE'!A33,Calculator!$B35&" Total")),"£0",GETPIVOTDATA('LOST MEMBERS PIVOT
TABLE'!A33,Calculator!$B35&" Total")),0))


--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Sarah (OGI)" wrote in message
...
I have a spreadsheet with the following formula in cell L35:

=IF(B35="","",IF(ISERROR(GETPIVOTDATA('LOST MEMBERS PIVOT
TABLE'!A33,Calculator!$B35&" Total")),"£0",GETPIVOTDATA('LOST MEMBERS
PIVOT
TABLE'!A33,Calculator!$B35&" Total")))

I've formatted the cell so it shows zero decimal places and the result
appears as -11. However, I noticed a problem whereby this result does not
match the value in K35 (which has been put in place to manually calculate
the
relevant cells to check that L35 is correct), so when this value is copied
into another cell, via paste special (values), the actual value is:
-11.1000000000001

Any ideas why this is? I think I may need to have the formula
=round(L35,2), but is there any way to include this in the original
formula
detailed above?



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
I need a formula with rounding up & rounding down to the nearest . Tony Kay Excel Worksheet Functions 3 May 29th 07 11:13 PM
SUMPRODUCT rounding up values Terranoman Excel Worksheet Functions 2 February 6th 07 04:02 PM
Rounding Bill Ridgeway New Users to Excel 2 November 21st 06 11:32 AM
rounding values in in array before sum Bruce Excel Worksheet Functions 4 January 31st 06 10:06 AM
Stop rounding values Keith Excel Worksheet Functions 3 November 11th 04 04:29 PM


All times are GMT +1. The time now is 04:22 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"