Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 112
Default Concept question re ranges and calcs

I have a macro that does a ton of calculations for me. I am looking to
update its capabilities by giving it a user-interface and more flexibility.
I am therefore moving out of the realm of doing calculations knowing which
column contains what data. So, I now have the situation where columns will
be deleted based on user-control and data may or may not be where I
originally had it.

I'm thinking the best way to handle this is to define columns of data as
ranges prior to deleting other columns around them and then doing the
calculations on the ranges. Does anyone have some input on if this is the
most efficient way to do this?

Thanks as always,
Matt
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Concept question re ranges and calcs

I tend to just name the column header in this sort of case, and then refer
to that name in the code, expanding the range as required.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Matt S" wrote in message
...
I have a macro that does a ton of calculations for me. I am looking to
update its capabilities by giving it a user-interface and more
flexibility.
I am therefore moving out of the realm of doing calculations knowing which
column contains what data. So, I now have the situation where columns
will
be deleted based on user-control and data may or may not be where I
originally had it.

I'm thinking the best way to handle this is to define columns of data as
ranges prior to deleting other columns around them and then doing the
calculations on the ranges. Does anyone have some input on if this is the
most efficient way to do this?

Thanks as always,
Matt



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 112
Default Concept question re ranges and calcs

Bob,

How would I go about doing that? Are you speaking of doing the Insert...
Name... Define... function in excel? I've never played with that before...

I've just created a range defined as 'Lambda' in excel. If I go to another
cell and say = Lambda+1, it highlights the entire range of lambda. How do I
get it to select a specific cell within lambda?

Thanks,
Matt

"Bob Phillips" wrote:

I tend to just name the column header in this sort of case, and then refer
to that name in the code, expanding the range as required.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Matt S" wrote in message
...
I have a macro that does a ton of calculations for me. I am looking to
update its capabilities by giving it a user-interface and more
flexibility.
I am therefore moving out of the realm of doing calculations knowing which
column contains what data. So, I now have the situation where columns
will
be deleted based on user-control and data may or may not be where I
originally had it.

I'm thinking the best way to handle this is to define columns of data as
ranges prior to deleting other columns around them and then doing the
calculations on the ranges. Does anyone have some input on if this is the
most efficient way to do this?

Thanks as always,
Matt




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Concept question re ranges and calcs

Yes I mean exactly that, and I thought that is what you were proposing to do
anyway, but on the whole column.

Again, as you were posting in the Programming group, I thought you wanted to
do this in VBA. In you example, it would be

Range("Lambda").Cells(2,1).Value

or

Range("Lambda").Offset(1,0).Value


--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Matt S" wrote in message
...
Bob,

How would I go about doing that? Are you speaking of doing the Insert...
Name... Define... function in excel? I've never played with that
before...

I've just created a range defined as 'Lambda' in excel. If I go to
another
cell and say = Lambda+1, it highlights the entire range of lambda. How do
I
get it to select a specific cell within lambda?

Thanks,
Matt

"Bob Phillips" wrote:

I tend to just name the column header in this sort of case, and then
refer
to that name in the code, expanding the range as required.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"Matt S" wrote in message
...
I have a macro that does a ton of calculations for me. I am looking to
update its capabilities by giving it a user-interface and more
flexibility.
I am therefore moving out of the realm of doing calculations knowing
which
column contains what data. So, I now have the situation where columns
will
be deleted based on user-control and data may or may not be where I
originally had it.

I'm thinking the best way to handle this is to define columns of data
as
ranges prior to deleting other columns around them and then doing the
calculations on the ranges. Does anyone have some input on if this is
the
most efficient way to do this?

Thanks as always,
Matt






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
Having a repeated concept ones Maracay Excel Discussion (Misc queries) 7 December 31st 09 02:52 PM
concept of syntax hamed Excel Discussion (Misc queries) 3 October 24th 07 10:25 PM
One more question pay calcs using [h]:mm format for time worke Rufus Excel Discussion (Misc queries) 4 July 25th 07 10:10 PM
Help with basic concept DTTODGG Excel Discussion (Misc queries) 0 December 8th 05 04:36 PM


All times are GMT +1. The time now is 06:53 AM.

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"