ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   variable cell references ???? (https://www.excelbanter.com/excel-discussion-misc-queries/70941-variable-cell-references.html)

kiethb

variable cell references ????
 

I would like to know if there is any functionality available to do the
following:

I would like to calculate a running figure based on a different cell
reference as they are populated. I would like to accomplish this by
using the COUNT function to count the number of references in a single
column that contain a number, if it does capture that number the COUNT
value and use it as such

(place in cell A20) ---- $A1-B(COUNT $B1:$B20)

This way all cells are blank in the B column, but as soon as a value
appears in B1 then B2 then B3, the formula above would recalc the
output cell.

I hope this makes sense. Is there away to accomplish this logic in
Excel? thank you in advance


--
kiethb
------------------------------------------------------------------------
kiethb's Profile: http://www.excelforum.com/member.php...o&userid=31425
View this thread: http://www.excelforum.com/showthread...hreadid=511181


Chip Pearson

variable cell references ????
 
Use the INDIRECT function. E..g,

=$A1-INDIRECT("B"&COUNT($B1:$B20))


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"kiethb"
wrote in message
...

I would like to know if there is any functionality available to
do the
following:

I would like to calculate a running figure based on a different
cell
reference as they are populated. I would like to accomplish
this by
using the COUNT function to count the number of references in a
single
column that contain a number, if it does capture that number
the COUNT
value and use it as such

(place in cell A20) ---- $A1-B(COUNT $B1:$B20)

This way all cells are blank in the B column, but as soon as a
value
appears in B1 then B2 then B3, the formula above would recalc
the
output cell.

I hope this makes sense. Is there away to accomplish this
logic in
Excel? thank you in advance


--
kiethb
------------------------------------------------------------------------
kiethb's Profile:
http://www.excelforum.com/member.php...o&userid=31425
View this thread:
http://www.excelforum.com/showthread...hreadid=511181




kiethb

variable cell references ????
 

Chip, you are the man! that was EXACTLY what I wanted. nice job.


--
kiethb
------------------------------------------------------------------------
kiethb's Profile: http://www.excelforum.com/member.php...o&userid=31425
View this thread: http://www.excelforum.com/showthread...hreadid=511181



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

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