A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Using one cell's value as a column value in an address of a formula



 
 
Thread Tools Display Modes
  #1  
Old May 14th, 2004, 05:01 PM
JDL
external usenet poster
 
Posts: n/a
Default Using one cell's value as a column value in an address of a formula

Hi,

I am trying to create a formula with a range that is variable based on a cell entry. ie; if I enter 20 into a cell, my formula range is A1:A20. Where A20 is derived from the 20 entered in another cell.

Thanks in advance.
  #2  
Old May 14th, 2004, 05:09 PM
Frank Kabel
external usenet poster
 
Posts: n/a
Default Using one cell's value as a column value in an address of a formula

Hi
if you enter this value in B1 use for example
=SUM(INDIRECT("A1:A" & B1))

--
Regards
Frank Kabel
Frankfurt, Germany

"JDL" schrieb im Newsbeitrag
...
Hi,

I am trying to create a formula with a range that is variable based

on a cell entry. ie; if I enter 20 into a cell, my formula range is
A1:A20. Where A20 is derived from the 20 entered in another cell.

Thanks in advance.


  #3  
Old May 14th, 2004, 06:01 PM
JDL
external usenet poster
 
Posts: n/a
Default Using one cell's value as a column value in an address of a formula

Now coming up with a #VALUE?

I am using J7 to enter a value, ie; 20. Here is my formula: =SUM(INDIRECT("E3:E" & J7))

Any thoughts?
  #4  
Old May 14th, 2004, 06:08 PM
Frank Kabel
external usenet poster
 
Posts: n/a
Default Using one cell's value as a column value in an address of a formula

Hi
are there any errors in this range E3:E20

--
Regards
Frank Kabel
Frankfurt, Germany

"JDL" schrieb im Newsbeitrag
...
Now coming up with a #VALUE?

I am using J7 to enter a value, ie; 20. Here is my formula:

=SUM(INDIRECT("E3:E" & J7))

Any thoughts?


  #5  
Old May 14th, 2004, 06:16 PM
JDL
external usenet poster
 
Posts: n/a
Default Using one cell's value as a column value in an address of a formula

This function appears to work on entered values but not calculated values. Is this correct?
  #6  
Old May 14th, 2004, 06:21 PM
JDL
external usenet poster
 
Posts: n/a
Default Using one cell's value as a column value in an address of a formula

No reported errors. I can create a new spreadsheet using your formula and it works.
  #7  
Old May 14th, 2004, 06:26 PM
Frank Kabel
external usenet poster
 
Posts: n/a
Default Using one cell's value as a column value in an address of a formula

Hi
what are your exact formulas
- the INDIRECT formula
- the formulas in the range

--
Regards
Frank Kabel
Frankfurt, Germany

"JDL" schrieb im Newsbeitrag
...
This function appears to work on entered values but not calculated

values. Is this correct?

  #8  
Old May 14th, 2004, 06:36 PM
JDL
external usenet poster
 
Posts: n/a
Default Using one cell's value as a column value in an address of a formula

I just copied and pasted the old worksheet cells to a new wookbook. It now works. I have to assume the file which was originally created by another was of an old version or something. Your initial response has resolved my issue.

Thanks Frank.
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:35 PM.


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