ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Use spinner to set a cell reference in a formula (https://www.excelbanter.com/excel-programming/351554-use-spinner-set-cell-reference-formula.html)

A

Use spinner to set a cell reference in a formula
 
Is it possible to use the spinner to set the numeric portion of a cell
reference, eg the 21 in the cell range "A21"?

The resulting cell range, "A21", is to be used in another formula...like this:
Cell "B10" = "A21"

The tricky part has been getting the "A21" to function as a formula (=A21)
and not just as literal text "=A21").

I hope this question makes sense.

Thanks,
Paul

Cutter[_28_]

Use spinner to set a cell reference in a formula
 

In B10 you could use:

=INDIRECT("A"&A5)

A5 would be the cell that the spinner is linked to


--
Cutter
------------------------------------------------------------------------
Cutter's Profile: http://www.excelforum.com/member.php...fo&userid=9848
View this thread: http://www.excelforum.com/showthread...hreadid=505377


Dave Peterson

Use spinner to set a cell reference in a formula
 
You can assign a linked cell to that spinner--say your linked cell is x99.

Then you can use that linked cell in the formula:
=indirect("A"&x99)


a wrote:

Is it possible to use the spinner to set the numeric portion of a cell
reference, eg the 21 in the cell range "A21"?

The resulting cell range, "A21", is to be used in another formula...like this:
Cell "B10" = "A21"

The tricky part has been getting the "A21" to function as a formula (=A21)
and not just as literal text "=A21").

I hope this question makes sense.

Thanks,
Paul


--

Dave Peterson

A

Use spinner to set a cell reference in a formula
 
Thank you both, Cutter and Dave Peterson for those nice, elegant answers.

Paul

------------------------------------------------------------------------

"Cutter" wrote:


In B10 you could use:

=INDIRECT("A"&A5)

A5 would be the cell that the spinner is linked to


--
Cutter
------------------------------------------------------------------------
Cutter's Profile: http://www.excelforum.com/member.php...fo&userid=9848
View this thread: http://www.excelforum.com/showthread...hreadid=505377



Cutter[_29_]

Use spinner to set a cell reference in a formula
 

You're welcome. And please note that you are the first to use "Cutter"
and "elegant" in the same sentence.


--
Cutter
------------------------------------------------------------------------
Cutter's Profile: http://www.excelforum.com/member.php...fo&userid=9848
View this thread: http://www.excelforum.com/showthread...hreadid=505377



All times are GMT +1. The time now is 10:03 PM.

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