ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   question about cell reference in a formula (https://www.excelbanter.com/excel-discussion-misc-queries/81498-question-about-cell-reference-formula.html)

[email protected]

question about cell reference in a formula
 
Hello,

I have this formula for a cell:
SUM(INDIRECT("C"&A18):INDIRECT("C"&B18))

How can I dynamially reference the column in which the cell is in,
rather than using "C", as shown above?

Thank you.

Kelie


Bryan Hessey

question about cell reference in a formula
 

Hi,

I'm not sure I understand your question, do you mean to put a C in A16
and a D in cell A17 and do:

=SUM(INDIRECT(A16&A18):INDIRECT(A17&B18))

(which also adds column D to your column C total)

--

Wrote:
Hello,

I have this formula for a cell:
SUM(INDIRECT("C"&A18):INDIRECT("C"&B18))

How can I dynamially reference the column in which the cell is in,
rather than using "C", as shown above?

Thank you.

Kelie



--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile:
http://www.excelforum.com/member.php...o&userid=21059
View this thread: http://www.excelforum.com/showthread...hreadid=529839



All times are GMT +1. The time now is 11:25 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com