Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
jsp377
 
Posts: n/a
Default How do I use a variable in a cell reference?

I'm trying to reference a cell using other cells, for example: B(60-A30),
which is to mean reference the cell in the Bth column, and the (60-A30)th
row. How do I do this in Excel 2000?
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

=INDIRECT("B"&60-A30)


--

HTH

RP
(remove nothere from the email address if mailing direct)


"jsp377" wrote in message
...
I'm trying to reference a cell using other cells, for example: B(60-A30),
which is to mean reference the cell in the Bth column, and the (60-A30)th
row. How do I do this in Excel 2000?



  #3   Report Post  
Jim May
 
Posts: n/a
Default

Bob:
Not sure I understand what OP has asked here, but
when I test things out I had to use
=INDIRECT("B"&60)-A30
to get my cell to return a value other than #REF!
Jim


"Bob Phillips" wrote in message
...
=INDIRECT("B"&60-A30)


--

HTH

RP
(remove nothere from the email address if mailing direct)


"jsp377" wrote in message
...
I'm trying to reference a cell using other cells, for example:

B(60-A30),
which is to mean reference the cell in the Bth column, and the

(60-A30)th
row. How do I do this in Excel 2000?





  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

Hi Jim,

I was reading it that A30 had a numeric value in it, and the OP wanted the
cell column B, row 60 less the value in A30, otherwise why not just use
B60-A30? If you put 40 say in A30, and a value in B20, it works.

I must admit it was unclear though, and I wondered whether A30 referred to
the cell value or whether he wanted to subtract 30? I thought about adding
some question marks, but thought this might be interpreted that I was unsure
whether INDIRECT was the right function, which I was quite sure about.

The glories of language <g.

Regards

Bob


"Jim May" wrote in message
news:4F5Kd.48543$jn.48483@lakeread06...
Bob:
Not sure I understand what OP has asked here, but
when I test things out I had to use
=INDIRECT("B"&60)-A30
to get my cell to return a value other than #REF!
Jim


"Bob Phillips" wrote in message
...
=INDIRECT("B"&60-A30)


--

HTH

RP
(remove nothere from the email address if mailing direct)


"jsp377" wrote in message
...
I'm trying to reference a cell using other cells, for example:

B(60-A30),
which is to mean reference the cell in the Bth column, and the

(60-A30)th
row. How do I do this in Excel 2000?







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
Maintaining cell reference after sorting GRITS Excel Discussion (Misc queries) 2 April 30th 23 08:42 PM
problem with cell reference in =sum(offset(cell reference,x,y,z,a)). Want cell ref to be variable. [email protected] Excel Worksheet Functions 2 December 11th 04 01:05 AM
Problem with =sum(offset(cell reference,w,x,y,z). I want cell reference to be variable [email protected] Excel Worksheet Functions 2 December 11th 04 01:00 AM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 08:16 PM
can you use a variable or cell reference in a getpivotdata formul. stevec Excel Worksheet Functions 1 November 8th 04 10:20 PM


All times are GMT +1. The time now is 04:13 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"