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 » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Countif Advise



 
 
Thread Tools Display Modes
  #1  
Old October 5th, 2003, 02:41 PM
Aladin Akyurek
external usenet poster
 
Posts: n/a
Default Countif Advise

In A1 on Sheet2 enter:

=COUNTIF(Sheet1!A5:INDEX(Sheet1!A:A,MATCH(REPT("z" ,255),Sheet1!A:A)),"=Dave"
)

"Michael168" wrote in message
...
May I ask for advice on how to auto update sheet2?
That is I have my data in sheet1. My answer in sheet2.
In sheet2 cell A1 I have the count value of sheet1 range A5:A1815.
So when I add new row of data in sheet1 the new range will be
A5:A1816.
How can I make Cell A1 in sheet2 auto update the count to A5:A1816
instead of manually changing the range everytime I make an update of
rows in sheet A1.

e.g.

On Sheet1 the column A range consists of different names.
On sheet2 the cell A1 was use to count / total no times the same names
appear in column A

=COUNTIF(Sheet1!A5:A1815,"=Dave")

Thank you for your advice and sorry for the troubles caused.

With Regards
Michael168



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/



  #2  
Old October 5th, 2003, 02:47 PM
Peo Sjoblom
external usenet poster
 
Posts: n/a
Default Countif Advise

One way

=COUNTIF(OFFSET(Sheet1!$A$5,,,COUNTA(Sheet1!$A$5:$ A$65536),1),"Dave")

if you do insertnamedefine and put a name in the name box and

=OFFSET(Sheet1!$A$5,,,COUNTA(Sheet1!$A$5:$A$65536) ,1)

in the refers to box you can use

=COUNTIF(MyRange,"Dave")

instead

--

Regards,

Peo Sjoblom

"Michael168" wrote in message
...
May I ask for advice on how to auto update sheet2?
That is I have my data in sheet1. My answer in sheet2.
In sheet2 cell A1 I have the count value of sheet1 range A5:A1815.
So when I add new row of data in sheet1 the new range will be
A5:A1816.
How can I make Cell A1 in sheet2 auto update the count to A5:A1816
instead of manually changing the range everytime I make an update of
rows in sheet A1.

e.g.

On Sheet1 the column A range consists of different names.
On sheet2 the cell A1 was use to count / total no times the same names
appear in column A

=COUNTIF(Sheet1!A5:A1815,"=Dave")

Thank you for your advice and sorry for the troubles caused.

With Regards
Michael168



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/



  #3  
Old October 5th, 2003, 03:07 PM
Michael168
external usenet poster
 
Posts: n/a
Default Countif Advise

Thanks for your advise.

Regards
Michael168



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/

 




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 09:01 PM.


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