Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default is it possible to refer to a cell using an expression?

I'm not sure if it matters, but mainly I am asking for Office 2007.

I'd like to know if it's possible to refer to a cell, in the following manner:

Assume I would like to refer to cell A8, so normally I would simply type:
=A8
..

However, would I be able to do the same thing doing anything along the lines
of:
=A(5+3)

or if cell B1 is equal to 8, could I write:
=A(=B1)

or anything else along this line of thinking...

.... any assistance would be great. I very much appreciate your time, and
hope to hear from someone soon. Thanks!!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 846
Default is it possible to refer to a cell using an expression?

Look at the indirect function - if you want examples google Excel indirect.
--
Wag more, bark less


"MatthewS" wrote:

I'm not sure if it matters, but mainly I am asking for Office 2007.

I'd like to know if it's possible to refer to a cell, in the following manner:

Assume I would like to refer to cell A8, so normally I would simply type:
=A8
.

However, would I be able to do the same thing doing anything along the lines
of:
=A(5+3)

or if cell B1 is equal to 8, could I write:
=A(=B1)

or anything else along this line of thinking...

... any assistance would be great. I very much appreciate your time, and
hope to hear from someone soon. Thanks!!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default is it possible to refer to a cell using an expression?

One way

=INDIRECT("A"&A1)

So if A1 contains 8 then the formula returns the value in A8

Mike

"MatthewS" wrote:

I'm not sure if it matters, but mainly I am asking for Office 2007.

I'd like to know if it's possible to refer to a cell, in the following manner:

Assume I would like to refer to cell A8, so normally I would simply type:
=A8
.

However, would I be able to do the same thing doing anything along the lines
of:
=A(5+3)

or if cell B1 is equal to 8, could I write:
=A(=B1)

or anything else along this line of thinking...

... any assistance would be great. I very much appreciate your time, and
hope to hear from someone soon. Thanks!!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default is it possible to refer to a cell using an expression?

You can use INDIRECT() for both cases:

=INDIRECT("A"&5+3)
will give you the same as =A8
and
=INDIRECT("A"&B1)
will give you the same as =A100
if B1 contains 100
--
Gary''s Student - gsnu200786


"MatthewS" wrote:

I'm not sure if it matters, but mainly I am asking for Office 2007.

I'd like to know if it's possible to refer to a cell, in the following manner:

Assume I would like to refer to cell A8, so normally I would simply type:
=A8
.

However, would I be able to do the same thing doing anything along the lines
of:
=A(5+3)

or if cell B1 is equal to 8, could I write:
=A(=B1)

or anything else along this line of thinking...

... any assistance would be great. I very much appreciate your time, and
hope to hear from someone soon. Thanks!!

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default is it possible to refer to a cell using an expression?

Thank you all.

From the examples given I was led to the OFFSET function, and both the
INDIRECT and OFFSET [which I hadn't used before] worked out well.

Much thanks.

"Gary''s Student" wrote:

You can use INDIRECT() for both cases:

=INDIRECT("A"&5+3)
will give you the same as =A8
and
=INDIRECT("A"&B1)
will give you the same as =A100
if B1 contains 100
--
Gary''s Student - gsnu200786


"MatthewS" wrote:

I'm not sure if it matters, but mainly I am asking for Office 2007.

I'd like to know if it's possible to refer to a cell, in the following manner:

Assume I would like to refer to cell A8, so normally I would simply type:
=A8
.

However, would I be able to do the same thing doing anything along the lines
of:
=A(5+3)

or if cell B1 is equal to 8, could I write:
=A(=B1)

or anything else along this line of thinking...

... any assistance would be great. I very much appreciate your time, and
hope to hear from someone soon. Thanks!!



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
value of a cell / expression is a whole number DavidJ Excel Worksheet Functions 1 October 18th 07 11:05 AM
test expression for empty cell in =SUMIF() fgrose Excel Worksheet Functions 12 July 16th 07 04:52 PM
How to return the row # of an expression in specific array of cell Rado Excel Worksheet Functions 2 June 27th 06 04:59 PM
Conditional Expression in cell TPB Excel Worksheet Functions 3 April 4th 06 08:57 PM
How make hyperlink refer to cell content rather than cell address. Omunene Excel Discussion (Misc queries) 3 March 2nd 06 01:07 AM


All times are GMT +1. The time now is 02:34 PM.

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"