Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 1
Default difference between two cells

Looking to find the correct formula to find the difference between two cells. For further clarification, this is the closing price (of a stock) on one day versus the opening price the next day, so I am looking to see what the difference is and if it is negative or positive.

For example - I have used:

= IF(B34C33, (B34-C33), (C33-B34) )

which seems to work just fine except that the result, when a negative value, is not shown as such.(no minus sign) I would like to display any negative values in red with a minus sign.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,872
Default difference between two cells

Hi,

Am Mon, 7 Jul 2014 16:10:11 +0100 schrieb jeromeUAE:

Looking to find the correct formula to find the difference between two
cells. For further clarification, this is the closing price (of a stock)
on one day versus the opening price the next day, so I am looking to see
what the difference is and if it is negative or positive.


=C33-B34 and format as number with red negative values


Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional
  #3   Report Post  
Junior Member
 
Posts: 1
Default

Quote:
Originally Posted by Claus Busch View Post
Hi,

Am Mon, 7 Jul 2014 16:10:11 +0100 schrieb jeromeUAE:

Looking to find the correct formula to find the difference between two
cells. For further clarification, this is the closing price (of a stock)
on one day versus the opening price the next day, so I am looking to see
what the difference is and if it is negative or positive.


=C33-B34 and format as number with red negative values


Regards
Claus B.

--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional
Thanks - I was being really stupid here - just a matter of opening my eyes - thanks anyways got it sorted now
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
Trying to work out the difference in 2 cells. scary Excel Worksheet Functions 4 July 6th 08 01:55 PM
calculate the difference between two cells jrivel Excel Discussion (Misc queries) 2 October 31st 06 03:08 PM
Getting Difference between two cells Jimmydageek Excel Worksheet Functions 3 February 19th 06 02:23 AM
Difference between Cells Jim Excel Worksheet Functions 2 October 27th 05 01:24 PM
Finding difference between two cells somu Arunachalam Excel Programming 2 May 6th 04 03:39 PM


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