A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

CountIf formula



 
 
Thread Tools Display Modes
  #1  
Old November 8th, 2009, 06:45 PM posted to microsoft.public.excel.misc
Verne
external usenet poster
 
Posts: 2
Default CountIf formula

I am using a count if formula =COUNTIF(P2:P25,"x") - everytime I add a new
row, that row is not included in the formula. What can I do so it is
included. Right now, I have to add the row to the formula manaually. Thank
you for your help.
  #2  
Old November 8th, 2009, 06:55 PM posted to microsoft.public.excel.misc
Per Jessen
external usenet poster
 
Posts: 686
Default CountIf formula

Hi

Just enlarge the range to as many rows as you think you will need:

=COUNTIF(P2:P1000,"x")

Regards,
Per

"Verne" skrev i meddelelsen
...
I am using a count if formula =COUNTIF(P2:P25,"x") - everytime I add a new
row, that row is not included in the formula. What can I do so it is
included. Right now, I have to add the row to the formula manaually. Thank
you for your help.


  #3  
Old November 8th, 2009, 07:00 PM posted to microsoft.public.excel.misc
Martin Fishlock
external usenet poster
 
Posts: 428
Default CountIf formula

Try using p226 and then insert a row after line 25 everytime.

Otherwise if the sheet is blank below the rows try p22000.
--
Hope this helps
Martin Fishlock, www.nyfconsultants.com, Wolverhampton, UK
Please do not forget to rate this reply.


"Verne" wrote:

I am using a count if formula =COUNTIF(P2:P25,"x") - everytime I add a new
row, that row is not included in the formula. What can I do so it is
included. Right now, I have to add the row to the formula manaually. Thank
you for your help.

  #4  
Old November 8th, 2009, 09:35 PM posted to microsoft.public.excel.misc
JLatham
external usenet poster
 
Posts: 1,896
Default CountIf formula

Try this:
=COUNTIF(P:P,"x")
this will work with COUNTIF() and some other functions, but not all.

Of course the catch here is that if there's an "x" in row 1, or if there are
entries below your current range of row 25 that are x's and you don't want
them counted, you can't use it as is. Another catch is that the formula
can't be in column P either (creates a circular reference error).

"Verne" wrote:

I am using a count if formula =COUNTIF(P2:P25,"x") - everytime I add a new
row, that row is not included in the formula. What can I do so it is
included. Right now, I have to add the row to the formula manaually. Thank
you for your help.

  #5  
Old November 8th, 2009, 11:09 PM posted to microsoft.public.excel.misc
Zhi Sheng
external usenet poster
 
Posts: 16
Default CountIf formula

you can try this:
always include a blank row in your formula
say currently your data is from row 2 to row 25, instead of using
=COUNTIF(P2:P25,"x"), use =COUNTIF(P2:P26,"x"), row 26 being the blank row.
next time you insert a new row, do it on row 26 (ie right click row 26,
choose insert), this will insert a new row between 25 and 26, so the new row
could be included in the formula.
--
====================
ask and you shall be answered


"JLatham" wrote:

Try this:
=COUNTIF(P:P,"x")
this will work with COUNTIF() and some other functions, but not all.

Of course the catch here is that if there's an "x" in row 1, or if there are
entries below your current range of row 25 that are x's and you don't want
them counted, you can't use it as is. Another catch is that the formula
can't be in column P either (creates a circular reference error).

"Verne" wrote:

I am using a count if formula =COUNTIF(P2:P25,"x") - everytime I add a new
row, that row is not included in the formula. What can I do so it is
included. Right now, I have to add the row to the formula manaually. Thank
you for your help.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:36 AM.


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