Static value function

rstultz

New Member
Joined
Apr 23, 2017
Messages
7
I'm creating an option trading workbook with approximately 70 option trading strategy worksheets. Each worksheet uses functions that dynamically pull live market data into a series cells. To evaluate profit or loss, opening and closing prices must be compared. I'm trying to find a way to save the opening value in a second cell for later reference. Tried using the =VALUE() function, but of course the value changes as the value changes in the referenced cell. Searched Help for static and freeze functions, but these do not exist for dynamically changing values. Any ideas on how to "freeze" the opening value other than having the worksheet users type the opening market value into a cell?
Thanks,
Russ
 
SOLVED WITH A MACRO!
I've worked out a fix by using a macro to copy and paste a the cell value rather than the formula. The macro uses the following keystrokes:


Point to Last Price in the "Current Price" cell.
Press Ctrl+C to copy the contents of the "Current Price" cell.
Move cursor to the destination cell.
Press Ctrl+Alt+V, type V, press Enter to paste the copied value.
 
Upvote 0

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Russ,

Awesome! Glad you got it figured out! Just to let you know, in order to distribute VBA in a workbook, your users would not need to have Visual Basic installed. As long as you save your workbook as an ".xlsm" macro-enabled workbook, anyone with Excel can open and use it.

Brian

Brian J. Torreano
 
Upvote 0

Forum statistics

Threads
1,215,544
Messages
6,125,434
Members
449,223
Latest member
Narrian

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top