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: 109
Default Loading data into an array

Need some help,

Here is what i'm trying to do
I'm calculating the YTD Operational variance for about 1,200 rows (Prior
year and Budget). Icould do this easily on the worksheet but it would take up
too many columns.

I would like to beable to have the results of the formula from a cell be
loaded in an array. Depending on what month the cell could hold 1 to 12
results.
If it was YTD dec the the array would hold the results for 12 calculations
(one for each month)

Here is my current approach

Sub YTD_Ops_Var_Calc()

Range("FQ17").Activate
For X = 1 To 12
ActiveCell.FormulaR1C1 =
"=(RC[-61]/RC[-64])*(INDEX(FX_Rates,MATCH(RC179,INDEX(FX_Rates,0,1), 0),R2C173)/INDEX(FX_Rates,MATCH(RC179,INDEX(FX_Rates,0,1),0), R2C174))"
RR = ActiveCell.Value
Next X
End Sub

RR captures the correct results, but i need capture the results for 12
calculations

--
Helping Is always a good thing
 
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
Loading chosen Sheets into an array ExcelMonkey Excel Programming 4 March 21st 07 04:53 PM
Loading dates from spreadsheet into array Arnold Klapheck Excel Programming 4 September 19th 06 02:53 AM
Loading array into list box r wilcox Excel Programming 5 June 20th 05 11:14 PM
Loading Excel Array from VB Array Faster ExcelMonkey[_3_] Excel Programming 3 January 22nd 04 02:49 AM
Loading 3 Dimensional Array Alan Beban[_3_] Excel Programming 0 August 31st 03 03:00 AM


All times are GMT +1. The time now is 09:40 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"