LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Sensitivity Analysis

I need a macro to vary my sales forecast (which are values contained in a
range named "Forecast") by the factor specified in Cell A1. I've written
this macro:-

Sub Vary()
Dim cell As Range
For Each cell In Range("Forecast")
cell.Value = cell.Value * Range("A1")
Next
End Sub

Although this macro does vary the forecasts by the factor specified in cell
A1, the results are all values. I need each cell within the range "Forecast"
to actually contain a reference to cell A1 (i.e. *A1). In future, I can vary
the forecast by just changing the figure in cell A1 without running any
macro.

Thanks!


 
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
Sensitivity analysis Alex Chung New Users to Excel 2 June 26th 12 08:15 PM
What do I need to do to perform a sensitivity analysis Student Excel Worksheet Functions 3 August 20th 08 12:47 AM
Excel Sensitivity (What If) analysis jordanpcpre Charts and Charting in Excel 1 May 21st 08 06:22 PM
Sensitivity Analysis to 2 variables steve-o Excel Discussion (Misc queries) 1 August 10th 07 08:38 PM
Sensitivity analysis PaulHelyer Excel Worksheet Functions 1 March 2nd 06 11:00 PM


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