Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 4
Default Formulas within Cell References

Hello All,

I need to use a number that was calculated from a formula in a cell reference. Here is the situation: I have a large spreadsheet that changes periodically. I need to count the number of items in that spreadsheet(i will use COUNTA - already works) and then take that number and use it as a row number in a cell reference like this:

In cell H1: =COUNTA(A2:A9999)

Then take that number in cell H1 and insert that into say $J$XXXX where XXXX represents the number in cell H1.

I'm looking to increase the calculation speed of the workbook by only calculating cells that I need to.

Thanks for the help,
Jason
  #2   Report Post  
humejap
 
Posts: n/a
Default


Have you tried the formula

=Concatenate("$J$",H1)


--
humejap
------------------------------------------------------------------------
humejap's Profile: http://www.excelforum.com/member.php...fo&userid=5506
View this thread: http://www.excelforum.com/showthread...hreadid=395098

  #3   Report Post  
Junior Member
 
Posts: 4
Default

I tried to do that but it will not work in the actual cell reference. I'm stumped.



Quote:
Originally Posted by humejap
Have you tried the formula

=Concatenate("$J$",H1)


--
humejap
------------------------------------------------------------------------
humejap's Profile: http://www.excelforum.com/member.php...fo&userid=5506
View this thread: http://www.excelforum.com/showthread...hreadid=395098
  #4   Report Post  
Member
 
Location: London
Posts: 78
Default

jhockstr,

You can use the INDIRECT function to do this.

i.e.

=INDIRECT("$J$" & H1)
'returns the cell in Column J and in the row number calculated in H1, as a reference.

e.g. You can work out the SUM of all values entered in Column J with
=SUM(INDIRECT("$J$1:$J$" & H1))

Regards,
BizMark
  #5   Report Post  
Bryan Hessey
 
Posts: n/a
Default


I missed the original question, but whilst
=Concatenate("$J$",H1)
will join to give $J$ joined to the contents of H1 you might need
=Indirect("$J$"&H1)
if you want to pick up the value in the cell indicated by the concat
statement.






jhockstr Wrote:
I tried to do that but it will not work in the actual cell reference.
I'm stumped.



humejap Wrote:
Have you tried the formula

=Concatenate("$J$",H1)


--
humejap

------------------------------------------------------------------------
humejap's Profile:
http://www.excelforum.com/member.php...fo&userid=5506
View this thread:
http://www.excelforum.com/showthread...hreadid=395098



--
jhockstr



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

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
Fixed cell references rhythm_man Excel Discussion (Misc queries) 2 July 5th 05 01:14 PM
More- AutoFill with Non-Seqeuntial Cell References ? [email protected] Excel Worksheet Functions 4 June 23rd 05 02:42 AM
How to use complex no. functions that have cell references? agathon Excel Worksheet Functions 2 June 17th 05 01:55 AM
Excel formulas based upon the color shading of a cell? DGBG Excel Worksheet Functions 1 April 12th 05 10:35 PM
Cell References and External Data Scott Excel Worksheet Functions 1 April 1st 05 07:31 PM


All times are GMT +1. The time now is 06:18 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"