Can I use variables in a formula?

BarrettM

Board Regular
Joined
Mar 13, 2002
Messages
113
I need a formula to sum a column starting in the second row and finishing at row(x).


Row X can change every time the workbook is open so I think I need to use a variable.

Do you have any suggestions.

Thank you
 
On 2002-03-15 06:05, Anonymous wrote:
On 2002-03-15 03:39, Aladin Akyurek wrote:

You could also have posed the question:

Why not =SUM(A:A)?

Well, that's also good enough.

I threw OFFSET in, I guess, to convey the idea of applying functions to dynamically computed ranges.

Aladin

You said :-
"You could also have posed the question:
Why not =SUM(A:A)?
Well, that's also good enough."


No - I don't think so,

=SUM(A:A) is not the same as =SUM(A2:A65536)

If A1 contains a number, they will not give identical results. The presupposition was/is that A1 holds a label (as it's often the case). If the presupposition holds, they will give identical results.
 
Upvote 0

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
On 2002-03-15 23:39, Aladin Akyurek wrote:
On 2002-03-15 06:05, Anonymous wrote:
On 2002-03-15 03:39, Aladin Akyurek wrote:

You could also have posed the question:

Why not =SUM(A:A)?

Well, that's also good enough.

I threw OFFSET in, I guess, to convey the idea of applying functions to dynamically computed ranges.

Aladin

You said :-
"You could also have posed the question:
Why not =SUM(A:A)?
Well, that's also good enough."


No - I don't think so,

=SUM(A:A) is not the same as =SUM(A2:A65536)

If A1 contains a number, they will not give identical results. The presupposition was/is that A1 holds a label (as it's often the case). If the presupposition holds, they will give identical results.


In the real world (as opposed to a classroom), I've found it inadvisable to make any such presumptions without ensuring that the user is made aware of them.
 
Upvote 0
On 2002-03-16 00:11, Anonymoss wrote:
On 2002-03-15 23:39, Aladin Akyurek wrote:
On 2002-03-15 06:05, Anonymous wrote:
On 2002-03-15 03:39, Aladin Akyurek wrote:

You could also have posed the question:

Why not =SUM(A:A)?

Well, that's also good enough.

I threw OFFSET in, I guess, to convey the idea of applying functions to dynamically computed ranges.

Aladin

You said :-
"You could also have posed the question:
Why not =SUM(A:A)?
Well, that's also good enough."


No - I don't think so,

=SUM(A:A) is not the same as =SUM(A2:A65536)

If A1 contains a number, they will not give identical results. The presupposition was/is that A1 holds a label (as it's often the case). If the presupposition holds, they will give identical results.


In the real world (as opposed to a classroom), I've found it inadvisable to make any such presumptions without ensuring that the user is made aware of them.

I agree, but I'm not excited. Lets change that "presumptions" to a more neutral word "qualifications/preconditions". One of the strengths of human cognition is that it does not qualify, more often than not, the actions it makes us to perform. If it would/should, it would become lost in thought evaluating zillions of preconditions/qualifications.
 
Upvote 0
On 2002-03-16 00:53, Aladin Akyurek wrote:
On 2002-03-16 00:11, Anonymoss wrote:
On 2002-03-15 23:39, Aladin Akyurek wrote:
On 2002-03-15 06:05, Anonymous wrote:
On 2002-03-15 03:39, Aladin Akyurek wrote:

You could also have posed the question:

Why not =SUM(A:A)?

Well, that's also good enough.

I threw OFFSET in, I guess, to convey the idea of applying functions to dynamically computed ranges.

Aladin

You said :-
"You could also have posed the question:
Why not =SUM(A:A)?
Well, that's also good enough."


No - I don't think so,

=SUM(A:A) is not the same as =SUM(A2:A65536)

If A1 contains a number, they will not give identical results. The presupposition was/is that A1 holds a label (as it's often the case). If the presupposition holds, they will give identical results.


In the real world (as opposed to a classroom), I've found it inadvisable to make any such presumptions without ensuring that the user is made aware of them.

I agree, but I'm not excited. Lets change that "presumptions" to a more neutral word "qualifications/preconditions". One of the strengths of human cognition is that it does not qualify, more often than not, the actions it makes us to perform. If it would/should, it would become lost in thought evaluating zillions of preconditions/qualifications.


No. Let's not change it - let's leave it as your original word : "presumption".

Anyway, enough of this ********.

You are obviously not a person who is willing to admit that you made an incorrect statement of fact but would rather obfuscate the situation with laughable attempts at philosophical comments.

You will no doubt be pleased to know that my contribution to this exchange has now reached its conclusion.
 
Upvote 0
No. Let's not change it - let's leave it as your original word : "presumption".

Anyway, enough of this ********.

You are obviously not a person who is willing to admit that you made an incorrect statement of fact but would rather obfuscate the situation with laughable attempts at philosophical comments.

You will no doubt be pleased to know that my contribution to this exchange has now reached its conclusion.

Hey hey hey Anonymoss,
This is not the usual stile here!
Aladin does not need my protection and at least he is not hiding behind a false name.
BePolite
This message was edited by BePolite on 2002-03-16 14:14
 
Upvote 0
[/quote]

Hey hey hey Anonymoss,
This is not the usual stile here!
Aladin does not need my protection and at least he is not hiding behind a false name.
BePolite
This message was edited by BePolite on 2002-03-16 14:14
[/quote]


Is that it?
Or do you have any other useless comments to make?

By the way, Anonymoss is my real name but I must say that your name is a rather uncommon one.
 
Upvote 0

Forum statistics

Threads
1,214,375
Messages
6,119,164
Members
448,870
Latest member
max_pedreira

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top