Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 298
Default I need a variable name to contain the values of several cells

I need a variable name to contain the values of several cells.
For example, If the value of cell A2 = "J10" and the value of cell B1 = "2",
I need a variable named "J10-S2". I will be creating a series of these
variable names from cells A2-A40 and B1-H1.

The value assigned to each of these variables will be the value of the cell
at the intersection of these cells. The value of the variable "J10-S2" will
be the value of cell B2. I can handle this part of the problem...I'm just
drawing a blank on creating and intiializing the variable name.

Can anyone get me started?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,836
Default I need a variable name to contain the values of several cells

Ok, look here for some info. on named ranges:
http://www.cpearson.com/excel/named.htm

Chip shows you how to have dynamically expanding ranges too. If you don't
know what that is, you will learn, and soon you'll wonder how you ever lived
without such a convenience.

HTH,
Ryan---

--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"Rich" wrote:

I need a variable name to contain the values of several cells.
For example, If the value of cell A2 = "J10" and the value of cell B1 = "2",
I need a variable named "J10-S2". I will be creating a series of these
variable names from cells A2-A40 and B1-H1.

The value assigned to each of these variables will be the value of the cell
at the intersection of these cells. The value of the variable "J10-S2" will
be the value of cell B2. I can handle this part of the problem...I'm just
drawing a blank on creating and intiializing the variable name.

Can anyone get me started?

Reply
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 to set current cell (variable row) to sum values of all cells above Eric Bragas[_2_] Excel Programming 2 May 3rd 07 06:50 PM
Sum cells based on a row variable and seperate column variable CheeseHeadTransplant Excel Worksheet Functions 10 September 23rd 05 06:59 PM
Defining a variable Range for cells with values in them! John Baker Excel Programming 1 January 19th 05 02:04 PM
To fetch the values from the excel cells into the variable chetana Excel Programming 2 September 2nd 04 11:47 AM
Cells.Find error Object variable or With block variable not set Peter[_21_] Excel Programming 2 May 8th 04 02:15 PM


All times are GMT +1. The time now is 07:38 AM.

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

About Us

"It's about Microsoft Excel"