LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default Adding "fixed" data to variable length data

Hi,

I'm trying to merge together some variable data to some fixed data
within Excel but am struggling to come up with an elegant solution to
it.

I have two worksheets, one containing values (predictions) in a fixed
24 cell by 24 cell area, the other sheet contains rows of data
(actuals) which is of variable length (i.e. some rows are 4 columns
wide, others 10). What I'm trying to make is a worksheet that picks up
the actual data and then where none exists picks up the predictions
data.

In column A of the sheet I am trying to create I have the names of the
data ranges and in column B I have the number of months data. i.e.

A B C D E F
1 Months 1 2 3 4
2 Robert 4 20 25 30
3 David 2 15 10

So in cell C2 I am using the formula..

=IF($B2=C$1,
VLOOKUP($B2,actuals!G73:AD96,3,FALSE),VLOOKUP($B2, projections!G73:AD96,3,FALSE)

This picks up the data from the actuals column while ever the month
number is less or equal to the amount of months and then moves onto the
predictions sheet whenever it is above this figure. However as the
data is of a variable length, what is correct for Row 2 will be wrong
for Row 3 because the col_index_num of the second vlookup is wrong and
I therefore cannot drag down. Is there any way around this??

Thanks in advance.

BH

 
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 rolling average chart, adding most recent data? Doug@NxEdge Charts and Charting in Excel 1 November 5th 05 02:22 AM
Data Validation List Length Alex Mackenzie Excel Worksheet Functions 4 November 1st 05 01:27 AM
Help PLEASE! Not sure what answer is: Match? Index? Other? baz Excel Worksheet Functions 7 September 3rd 05 03:47 PM
Performing a function on a column of variable length BeenThereGotLost Excel Worksheet Functions 3 July 1st 05 02:50 PM
Automatically Adding Data to Charts lhollen1 Charts and Charting in Excel 1 June 9th 05 05:43 PM


All times are GMT +1. The time now is 02:14 PM.

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"