Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
FX42N
 
Posts: n/a
Default Can I write a Macro into an IF Function?


DATA TABLE ___________________ /|\ DDE
TIME / OPEN /* HIGH */ LOW / CLOSE /|\ *PRICE*

Greetings. I am requesting assistance. I have a data table which
contains the following columns: TIME, OPEN, HIGH, LOW, CLOSE. This
information was obtained separately from a Dynamic Data Exchange, which
has only one field: PRICE.

My goal is to record new HIGH values in the current HIGH cell. I
attempted to do so with the following: "=if(PRICEHIGH, PRICE, HIGH)"
but it does not work because once PRICE dips under the old HIGH value,
the old HIGH value returns. Needless to say, the new HIGH value was
not recorded.

I've written a macro that can perform this, but I can not monitor each
data table to run the macro when required. I have sought to
incorporate the macro into an IF Function, but have not yet found a
way. Perhaps there is a better approach I have not thought of yet.

Any assistance would be greatly appreciated. :) Thanks.


--
FX42N
------------------------------------------------------------------------
FX42N's Profile: http://www.excelforum.com/member.php...o&userid=34923
View this thread: http://www.excelforum.com/showthread...hreadid=548434

  #2   Report Post  
Posted to microsoft.public.excel.misc
C01d
 
Posts: n/a
Default Can I write a Macro into an IF Function?


You could try recording a list of prices and using the Max function to
find the highest value.


--
C01d
------------------------------------------------------------------------
C01d's Profile: http://www.excelforum.com/member.php...o&userid=34422
View this thread: http://www.excelforum.com/showthread...hreadid=548434

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
Custom functions calculating time arguments Help Desperate Bill_De Excel Worksheet Functions 12 April 25th 06 02:22 AM
Excel option to store trendline's coefficients in cells for use Miguel Saldana Charts and Charting in Excel 9 June 20th 05 08:45 PM
Help with macro looping and color query function kevinm Excel Discussion (Misc queries) 10 May 26th 05 01:25 AM
Copy cell format to cell on another worksht and update automatical kevinm Excel Worksheet Functions 21 May 19th 05 11:07 AM
Function Macro for Nested IF Qaspec Excel Worksheet Functions 5 March 10th 05 07:25 PM


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