ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Cell reference in formula (https://www.excelbanter.com/excel-worksheet-functions/78581-cell-reference-formula.html)

briank

Cell reference in formula
 
I am trying to put in a cell reference into a a countif formula. As
referenced below, I would like to insert the formula from D37 into the
formula in E37. As the formula in D37 equals 37, I am trying to paste this
formula over the number "37" in cell E37. However, this isn't working. Any
help would be appreciated.

E37: =ROUND(1/COUNTIF($C$37:$C$58,C37),2) equals 0.5
D37: =MATCH(B37,$B$1:$B$2259,0) = 37

RagDyer

Cell reference in formula
 
Try this:

=ROUND(1/COUNTIF($C$37:$C$58,INDIRECT("C"&D37)),2)

--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"briank" wrote in message
...
I am trying to put in a cell reference into a a countif formula. As
referenced below, I would like to insert the formula from D37 into the
formula in E37. As the formula in D37 equals 37, I am trying to paste

this
formula over the number "37" in cell E37. However, this isn't working.

Any
help would be appreciated.

E37: =ROUND(1/COUNTIF($C$37:$C$58,C37),2) equals 0.5
D37: =MATCH(B37,$B$1:$B$2259,0) = 37




All times are GMT +1. The time now is 12:50 PM.

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