#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 361
Default Modify a Formula

Hi.

I use this formula:

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

I would like to modify it so that the value I put in Cell A1 (eg 100) will
change the formula to this:

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

Thank you in advance.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default Modify a Formula

Check the INDIRECT() function in HELP

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"carl" wrote in message
...
Hi.

I use this formula:

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

I would like to modify it so that the value I put in Cell A1 (eg 100) will
change the formula to this:

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

Thank you in advance.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Modify a Formula

Try this...

=COUNTIF(I5:INDEX(I:I,A1),TRUE)/COUNTA(I5:INDEX(I:I,A1))

Note that if A1 is an empty cell the formula will calculate the entire
column I.

--
Biff
Microsoft Excel MVP


"carl" wrote in message
...
Hi.

I use this formula:

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

I would like to modify it so that the value I put in Cell A1 (eg 100) will
change the formula to this:

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

Thank you in advance.




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
Modify Formula carl Excel Worksheet Functions 2 November 26th 08 06:24 PM
Modify a formula? tgcali Excel Discussion (Misc queries) 3 September 9th 08 07:43 PM
Modify a Formula carl Excel Worksheet Functions 1 August 25th 08 08:32 PM
Modify A Formula carl Excel Worksheet Functions 5 March 23rd 08 09:48 PM
Modify a formula Eintsein_mc2 Excel Discussion (Misc queries) 3 September 18th 05 05:43 AM


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