Go Back   PCMech Forums > Help & Discussion > Software Discussion & Support

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 01-20-2006, 06:22 AM   #1
Member (7 bit)
 
Join Date: Jan 2005
Posts: 67
Excel question

I have a sum in excel which outputs the difference of two numbers.

The output can either be negative or postive. Is there anyway to force excel to show a '+' for the positive numbers for presentation purposes.

I have a large amount of numbers and don't want to do it manually.

Thanks
Dominion is offline   Reply With Quote
Old 01-20-2006, 08:09 AM   #2
Come in Ray...
 
faulkner132's Avatar
 
Join Date: Sep 2004
Posts: 1,668
Code:
=if(a1>0,concatenate("+",a1),a1)
faulkner132 is offline   Reply With Quote
Old 01-20-2006, 09:10 AM   #3
Member (7 bit)
 
Join Date: Jan 2005
Posts: 67
Thanks

I've done this and it works


Quote:
=IF(C26-B26>0,CONCATENATE("+",(C26-B26)*1000),(C26-B26)*1000)
However when its a postive number it gives the answer as

+1.9999999999...

I think because concatenate is a text command excel does not round the number up?

********************EDIT*******************************

Quote:
=IF(C27-B27>0,"+"&TEXT((C27-B27)*1000,"0"),(C27-B27)*1000)
got this to work

Last edited by Dominion; 01-20-2006 at 09:22 AM.
Dominion is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 01:45 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2