ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Modify Formula (https://www.excelbanter.com/excel-worksheet-functions/252510-modify-formula.html)

Carl

Modify Formula
 
I use this formula:

=COUNTIF(I5:I40;TRUE)/COUNTA(I5:I40)

I would like to change the formula so that it will use the value in cell A1
(eg 200) like this:

=COUNTIF(I5:I200;TRUE)/COUNTA(I5:I200)

Thank you in advance.

Lars-Åke Aspelin

Modify Formula
 

"carl" wrote in message
...
I use this formula:

=COUNTIF(I5:I40;TRUE)/COUNTA(I5:I40)

I would like to change the formula so that it will use the value in cell
A1
(eg 200) like this:

=COUNTIF(I5:I200;TRUE)/COUNTA(I5:I200)

Thank you in advance.


Try this formula:

=COUNTIF(OFFSET(I5;;;A1-4),TRUE)/COUNTA(OFFSET(I5;;;A1-4))

Hope this helps / Lars-Åke


T. Valko

Modify Formula
 
see your other post

--
Biff
Microsoft Excel MVP


"carl" wrote in message
...
I use this formula:

=COUNTIF(I5:I40;TRUE)/COUNTA(I5:I40)

I would like to change the formula so that it will use the value in cell
A1
(eg 200) like this:

=COUNTIF(I5:I200;TRUE)/COUNTA(I5:I200)

Thank you in advance.





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

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