Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default How to automate this task

This task arises with historical stock prices - when a stock has had
splits.

We have columns A,B,C,D and E.

For each row in columns A,B,C and D, we want replace the old value in
that row by

New Value = Old value times (Value in column E /value in column D)

This would effectively replace Column D by Column E and scale colums A
B and C.

How can this task be automated (I assume it would need a macro) ?

Thansk for any help.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How to automate this task


Yes you need a macro if you want to fully automate it and replace the
old data. however it seems that column E is used for the new info, so
maybe you could just set a formula that checks if there is a value in
column E, and if so, then use that data rather than the original data.

ie =if(E1="",original calculation,revised calculation)

Matt


--
Mallycat
------------------------------------------------------------------------
Mallycat's Profile: http://www.excelforum.com/member.php...o&userid=35514
View this thread: http://www.excelforum.com/showthread...hreadid=561276

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default How to automate this task


Mallycat wrote:
Yes you need a macro if you want to fully automate it and replace the
old data. however it seems that column E is used for the new info, so
maybe you could just set a formula that checks if there is a value in
column E, and if so, then use that data rather than the original data.

ie =if(E1="",original calculation,revised calculation)

Matt


yes; actually I thought of that - there is a "circular reference"
problem -

if in cell A1, I write "' = A1*E1/D1" excel doesn't like that. Is
there a way to get around that ?

Thanks.


--
Mallycat
------------------------------------------------------------------------
Mallycat's Profile: http://www.excelforum.com/member.php...o&userid=35514
View this thread: http://www.excelforum.com/showthread...hreadid=561276


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
How do I create a schedule from a list of dates ? Gavin Morris Charts and Charting in Excel 2 October 28th 10 04:08 PM
How do I get rid of task pane permanently? Suresh Excel Discussion (Misc queries) 0 November 16th 05 07:16 PM
change from copy & paste task pane (yuk) to c&p little box Christie Excel Discussion (Misc queries) 0 October 27th 05 01:39 PM
can i automate task reminders in excel shootist55 Excel Discussion (Misc queries) 0 May 3rd 05 12:37 AM
loop trough e-mail address list to send task lists with outlook Paul. Excel Discussion (Misc queries) 2 April 14th 05 11:48 AM


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