Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
BBinSimi
 
Posts: n/a
Default if statement does not work with = sign

I am trying to use this function:
If(b44=b46, "Balance","Not balance"). b44 and b46 are exactly the same
dollar value. Both cells are formatted for currency. The cell that the text
is written is formatted as general. Both b44 and b46 are calculated cells
that add a column of numbers. Have tried using sum statement instead of
b44,46 etc. In the watch window both values are the same, but the b44=b46
statement is false.
Thanks for your help.
Bill
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Chip Pearson
 
Posts: n/a
Default if statement does not work with = sign

Bill,

Excel, like nearly all computer programs, use what is called
"double-precision floating point numbers", which are limited to
15 digits of precision. Cells that appear equal may differ by
some very small amount, the error introduced by rounding. See
www.cpearson.com/excel/rounding.htm for more details. You could
write your formula like

=IF(ABS(B44-B46)<0.00000001,"Balance","Not Balance")


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"BBinSimi" wrote in message
...
I am trying to use this function:
If(b44=b46, "Balance","Not balance"). b44 and b46 are exactly
the same
dollar value. Both cells are formatted for currency. The cell
that the text
is written is formatted as general. Both b44 and b46 are
calculated cells
that add a column of numbers. Have tried using sum statement
instead of
b44,46 etc. In the watch window both values are the same, but
the b44=b46
statement is false.
Thanks for your help.
Bill



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
Linking with equals sign doesn't always work marty53 Excel Worksheet Functions 7 August 18th 05 06:44 PM
# sign in a cell Poody Excel Discussion (Misc queries) 3 July 22nd 05 03:32 PM
Work book formulas Jessica Excel Discussion (Misc queries) 1 June 9th 05 10:51 AM
How to copy the work sheets from different workbooks into one? Sesh Excel Discussion (Misc queries) 1 April 15th 05 06:03 PM
Change Path names in copied work book jheaney Excel Worksheet Functions 2 November 18th 04 07:29 PM


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