#1   Report Post  
Posted to microsoft.public.excel.misc
KMc KMc is offline
external usenet poster
 
Posts: 10
Default results incorrect

Sorry it's a long one, but it's really simple math that isn't returning the
right answer.
In "dealer worksheet" workbook to find amount due for July and August:
Cell R4 is
=SUMIF(est_comp_date,"=07/01/2008",amt_due)-SUMIF(est_comp_date,"07/31/2008",amt_due) answers correctly "$ - " (there are no entries)
Cell R5 is
=SUMIF(est_comp_date,"=08/01/2008",amt_due)-SUMIF(est_comp_date,"08/31/2008",amt_due) answers correctly "$ 77.70" (there's only one entry of 77.7)
In same worksheet to find amoung paid for July and August:
Cell V4 is
=SUMIF(date_pd_sams,"=07/01/2008",amt_pd)-SUMIF(date_pd_sams,"07/31/2008",amt_pd) answers correctly "$ -" (there are no entries)
Cell V5 is
=SUMIF(date_pd_sams,"=08/01/2008",amt_pd)-SUMIF(date_pd_sams,"08/31/2008",amt_pd) answers correctly "$ 77.70" (there's only one entry of 77.7)
New workbook copies these values:
Cell AB17 =SUM('[dealer worksheet.xls]America''s #1'!$R$4:$R$5) which adds
the amounts due above of "$ -" and "$77.70" correctly returning "$77.70"
Cell AL17 =SUM('[dealer worksheet.xls]America''s #1'!$V$4:$V$5) which
adds the amounts paid above of "$ -" and "$77.70" correctly returning
"$77.70"
PROBLEM: Now I have in cell AM17 of this same sheet of the 2nd workbook:
=SUM(AB17-AL17) and my answer is 1.4210854715202E-14
displayed as "0.000000000000014210854715"... or "$ 0.00"
It's simple math of $77.70-$77.70 = 0 and should be displayed as "$ -"
I want it to display "$ -" as it does for 11 identical entries in the
same worksheet.

Thanks for your help and patience reading this.


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 208
Default results incorrect

Excel sometimes adds insignificant digits to your numbers. To fix the
problem, just use the round function to round your answers to 2
decimal places and you'll get the 0 you are looking for.

On Jul 18, 9:45*am, KMC wrote:
Sorry it's a long one, but it's really simple math that isn't returning the
right answer.
In "dealer worksheet" workbook to find amount due for July and August:
Cell R4 is * *
=SUMIF(est_comp_date,"=07/01/2008",amt_due)-SUMIF(est_comp_date,"07/31/2008",amt_due) answers correctly "$ * *- *" (there are no entries)
Cell R5 is * *
=SUMIF(est_comp_date,"=08/01/2008",amt_due)-SUMIF(est_comp_date,"08/31/2008",amt_due) answers correctly "$ 77.70" (there's only one entry of 77.7)
In same worksheet to find amoung paid for July and August:
Cell V4 is * *
=SUMIF(date_pd_sams,"=07/01/2008",amt_pd)-SUMIF(date_pd_sams,"07/31/2008",amt_pd) answers correctly "$ * -" (there are no entries)
Cell V5 is * *
=SUMIF(date_pd_sams,"=08/01/2008",amt_pd)-SUMIF(date_pd_sams,"08/31/2008",amt_pd) answers correctly "$ 77.70" (there's only one entry of 77.7)
New workbook copies these values:
Cell AB17 * =SUM('[dealer worksheet.xls]America''s #1'!$R$4:$R$5) which adds
the amounts due above of "$ * -" and "$77.70" correctly returning "$77.70"
Cell AL17 * *=SUM('[dealer worksheet.xls]America''s #1'!$V$4:$V$5) which
adds the amounts paid above of "$ * -" and "$77.70" correctly returning
"$77.70"
PROBLEM: Now I have in cell AM17 of this same sheet of the 2nd workbook:
=SUM(AB17-AL17) and my answer is 1.4210854715202E-14
displayed as "0.000000000000014210854715"... or "$ *0.00"
It's simple math of $77.70-$77.70 = 0 and should be displayed as "$ * *-"
I want it to display "$ * *-" as it does for 11 identical entries in the
same worksheet.

Thanks for your help and patience reading this.


  #3   Report Post  
Posted to microsoft.public.excel.misc
KMc KMc is offline
external usenet poster
 
Posts: 10
Default results incorrect

Can I round as a format (rather than function) for the entire column for
consistency so I'm not constantly looking for errors?

"Tim879" wrote:

Excel sometimes adds insignificant digits to your numbers. To fix the
problem, just use the round function to round your answers to 2
decimal places and you'll get the 0 you are looking for.

On Jul 18, 9:45 am, KMC wrote:
Sorry it's a long one, but it's really simple math that isn't returning the
right answer.
In "dealer worksheet" workbook to find amount due for July and August:
Cell R4 is
=SUMIF(est_comp_date,"=07/01/2008",amt_due)-SUMIF(est_comp_date,"07/31/2008",amt_due) answers correctly "$ - " (there are no entries)
Cell R5 is
=SUMIF(est_comp_date,"=08/01/2008",amt_due)-SUMIF(est_comp_date,"08/31/2008",amt_due) answers correctly "$ 77.70" (there's only one entry of 77.7)
In same worksheet to find amoung paid for July and August:
Cell V4 is
=SUMIF(date_pd_sams,"=07/01/2008",amt_pd)-SUMIF(date_pd_sams,"07/31/2008",amt_pd) answers correctly "$ -" (there are no entries)
Cell V5 is
=SUMIF(date_pd_sams,"=08/01/2008",amt_pd)-SUMIF(date_pd_sams,"08/31/2008",amt_pd) answers correctly "$ 77.70" (there's only one entry of 77.7)
New workbook copies these values:
Cell AB17 =SUM('[dealer worksheet.xls]America''s #1'!$R$4:$R$5) which adds
the amounts due above of "$ -" and "$77.70" correctly returning "$77.70"
Cell AL17 =SUM('[dealer worksheet.xls]America''s #1'!$V$4:$V$5) which
adds the amounts paid above of "$ -" and "$77.70" correctly returning
"$77.70"
PROBLEM: Now I have in cell AM17 of this same sheet of the 2nd workbook:
=SUM(AB17-AL17) and my answer is 1.4210854715202E-14
displayed as "0.000000000000014210854715"... or "$ 0.00"
It's simple math of $77.70-$77.70 = 0 and should be displayed as "$ -"
I want it to display "$ -" as it does for 11 identical entries in the
same worksheet.

Thanks for your help and patience reading this.



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
vlookup gives incorrect results Forrest G. Excel Worksheet Functions 3 December 18th 06 05:40 PM
Very large workbook now giving incorrect results :( [email protected] Excel Discussion (Misc queries) 0 July 17th 06 11:29 PM
Same formula referencing same cells returns incorrect results, randomly, when pasted into new worksheet [email protected] Excel Worksheet Functions 1 March 9th 06 07:55 PM
Totals of calculated field in pivot table give incorrect results Jake Excel Worksheet Functions 6 January 12th 06 06:15 PM
How do I prevent incorrect formula results appearing in cell? Marc Todd Excel Worksheet Functions 2 January 26th 05 07:57 AM


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