Solved

Excel - CallbyName type functionality in named ranges?

Posted on 2000-05-02
4
279 Views
Last Modified: 2008-03-10
Hi - this may be a little complicated to explain, but I'll give it a go.

1) Say I have a named range of one cell called "MyRange" which will contain the number of the month of the year.

2) I also have a row Jan, Feb, Mar, Apr etc, denoting the months of the year, and under each month is some sort of monetary value for that month. E.g.
Jan    Feb    Mar    
123    456    789

3) Now, I want another cell to reference the amount for the month number in the named range "MyRange". Its cecll formula may be something like - "=MyRange:3". This obviously doesn't work, but may be similar to call by name in VB6. Does anyone a) understand what I'm going on about and b) know if you can do this easily?

Ta.
0
Comment
Question by:NikWhitfield
  • 2
  • 2
4 Comments
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 50 total points
ID: 2769107
a) yes
b) I assume cell of Jan(123) is D4(D5)
your formula will read like this:
=OFFSET(C5;0;MyRange)

Hope this helps
0
 

Author Comment

by:NikWhitfield
ID: 2769153
This is giving me a syntax error and highlighting the C5 part of the function. Any ideas?
0
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 2769214
you may have , as List Separator instead of ;
0
 

Author Comment

by:NikWhitfield
ID: 2769242
I got it - commas instead of semicolons!  Cheers.
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question