LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
Amanda
 
Posts: n/a
Default problem with decimal in calculation

when using the below formula, the answer will not follow the decimal format I
have assigned under format. If I leave off the &"A" and the &"B" then it
works fine by using the decimal format I selected, however with the &"A" it
gives me a decimal answer 0.0000000000

=IF(((E8-G8)/ABS(G8)*100)=0,((E8-G8)/ABS(G8)*100)&"A",ABS((E8-G8)/ABS(G8)*100)&"B")

What I need is if it is a positive result, then the cell will hold the
result with an A behind it and if it is negative, then the result with a
B....but I only want 1 number(no decimals), i.e. (10-5)/ABS(5) * 100 equals
200 which tells me it is a 200% increase over last year....in the cell I want
the answer to read 200A (without the % sign which is why I multiplied by 100).

Thanks in advance for your assistance!
Amanda
 
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
Save Link Problem John Calder Links and Linking in Excel 1 November 8th 05 01:27 AM
Formula for: Format Decimal places? nastech Excel Discussion (Misc queries) 16 November 4th 05 02:25 PM
h:mm to decimal value Brent E Excel Discussion (Misc queries) 4 October 11th 05 07:09 PM
Change Dots into Commas as Decimal Divider xenia Excel Discussion (Misc queries) 2 August 8th 05 09:48 AM
Excel Display Problem Bill Martin -- (Remove NOSPAM from address) Excel Discussion (Misc queries) 0 April 19th 05 05:25 PM


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