Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 334
Default Formual/Macro Help

Folks,

I need help in obtaining (or creating) a formula or function (or macro ?)
in which I can compute the difference in the closing price of a stock from
day to day. For example the closing price yesterday and the closing price
today. I have the basic information in an Excel spreadsheet that looks like
this:

Col A Col B Col C Col D Col E Col F

Date Open High Low Close Volume
5/2/2008 142.2 142.3 140.6 141.51 1067800
5/1/2008 138.38 141.12 138.27 141.12 187279500
4/30/2008 139.29 140.59 138.26 138.26 208395900
4/29/2008 139.39 139.73 138.61 139.08 125514100
4/28/2008 139.88 140.25 139.38 139.63 105610200
4/25/2008 139.4 139.89 137.91 139.6 190788100
4/24/2008 138.08 139.74 137.04 138.32 229381300

I would like to build a new column that keeps a running difference of the
prices in column E. I'm sure that for you Excel experts it's an easy problem
but I've tried myself and have not had any luck. An Excel guru I am not.

Any help would be appreciated.

Thanks
--
Best Regards

Rick
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Formual/Macro Help

Assuming we have data in row#2 and on down. In G2 enter:

=D2-D3 and copy on down
--
Gary''s Student - gsnu200783


"RIck" wrote:

Folks,

I need help in obtaining (or creating) a formula or function (or macro ?)
in which I can compute the difference in the closing price of a stock from
day to day. For example the closing price yesterday and the closing price
today. I have the basic information in an Excel spreadsheet that looks like
this:

Col A Col B Col C Col D Col E Col F

Date Open High Low Close Volume
5/2/2008 142.2 142.3 140.6 141.51 1067800
5/1/2008 138.38 141.12 138.27 141.12 187279500
4/30/2008 139.29 140.59 138.26 138.26 208395900
4/29/2008 139.39 139.73 138.61 139.08 125514100
4/28/2008 139.88 140.25 139.38 139.63 105610200
4/25/2008 139.4 139.89 137.91 139.6 190788100
4/24/2008 138.08 139.74 137.04 138.32 229381300

I would like to build a new column that keeps a running difference of the
prices in column E. I'm sure that for you Excel experts it's an easy problem
but I've tried myself and have not had any luck. An Excel guru I am not.

Any help would be appreciated.

Thanks
--
Best Regards

Rick

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Formual/Macro Help

I think that if you subtract the previous day's closing fron the following
day's closing you will get results with the losses indicated by a minus sign
or enclosed in paretheses depending on your formatting. In the difference
column put"

= E2-E3 and copy down the column.

Your first result based on the data you posted would show -0.39

"RIck" wrote:

Folks,

I need help in obtaining (or creating) a formula or function (or macro ?)
in which I can compute the difference in the closing price of a stock from
day to day. For example the closing price yesterday and the closing price
today. I have the basic information in an Excel spreadsheet that looks like
this:

Col A Col B Col C Col D Col E Col F

Date Open High Low Close Volume
5/2/2008 142.2 142.3 140.6 141.51 1067800
5/1/2008 138.38 141.12 138.27 141.12 187279500
4/30/2008 139.29 140.59 138.26 138.26 208395900
4/29/2008 139.39 139.73 138.61 139.08 125514100
4/28/2008 139.88 140.25 139.38 139.63 105610200
4/25/2008 139.4 139.89 137.91 139.6 190788100
4/24/2008 138.08 139.74 137.04 138.32 229381300

I would like to build a new column that keeps a running difference of the
prices in column E. I'm sure that for you Excel experts it's an easy problem
but I've tried myself and have not had any luck. An Excel guru I am not.

Any help would be appreciated.

Thanks
--
Best Regards

Rick

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
Formual not working when 2003 WKB saved as 2007 Macro Enabled WKB Corey .... Excel Worksheet Functions 3 March 26th 09 05:44 AM
some help with an IF formual or something like it Lost Will Excel Worksheet Functions 4 November 19th 08 12:00 PM
Formual Jodi Excel Worksheet Functions 1 May 16th 07 01:03 AM
Set Formual Winnie Excel Discussion (Misc queries) 2 November 13th 06 09:47 AM
formual in macro Chip Smith Excel Programming 5 September 8th 06 09:09 PM


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