Solved

Excel - CallbyName type functionality in named ranges?

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

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 143

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

821 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