Solved

Excel - CallbyName type functionality in named ranges?

Posted on 2000-05-02
4
276 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now