Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
A A is offline
external usenet poster
 
Posts: 37
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default 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
  #4   Report Post  
Posted to microsoft.public.excel.programming
A A is offline
external usenet poster
 
Posts: 37
Default 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


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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

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
Spinner, cell link and countif skewey Excel Discussion (Misc queries) 2 January 26th 07 07:52 AM
Using a cell reference within a cell reference in a formula david Excel Worksheet Functions 2 July 1st 06 01:05 PM
spinner linked cell problem jim Excel Discussion (Misc queries) 2 July 22nd 05 04:08 PM
Cell Formula reference to cell Based On third Cell Content Gabriel Excel Discussion (Misc queries) 1 February 11th 05 06:36 AM
Cell Formula reference to cell Based On third Cell Content Gabriel Excel Discussion (Misc queries) 0 February 11th 05 05:35 AM


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