#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default count

I have differnet repeated nos. in column A, and unique nos in column B. by
using countif function by puting the formula in column C1 i.e
=countif(A1:A30,B1) i can count the nos of B1 . but when i copy the same
formula at down rows by dragging the mouse then then the value of column is
changing from A2 :A31 , again in next cell it is A3:A32. i need used this
A1:A30 as constant this should not be change when i copy the same formula to
the down cells

Example:
A B C
211 211 =countif(A1:A30,B1)
123 123
211 511
511 258
258 111
211
111
111
123





  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default count

Hi,

Please change the formula to =countif(A$1:A$30,B1) and then copy down.

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"smina" wrote in message
...
I have differnet repeated nos. in column A, and unique nos in column B. by
using countif function by puting the formula in column C1 i.e
=countif(A1:A30,B1) i can count the nos of B1 . but when i copy the same
formula at down rows by dragging the mouse then then the value of column
is
changing from A2 :A31 , again in next cell it is A3:A32. i need used this
A1:A30 as constant this should not be change when i copy the same formula
to
the down cells

Example:
A B C
211 211 =countif(A1:A30,B1)
123 123
211 511
511 258
258 111
211
111
111
123





  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default count

There are two solutions:

=COUNTIF(A:A,B1) if there is no other "junk" in column A below A30
or
=COUNTIF($A$1:$A$30,B1) if there is "junk" below A30

The first formula has the advantage that you do not need to change it if you
add values to your table!
--
Gary''s Student - gsnu200835


"smina" wrote:

I have differnet repeated nos. in column A, and unique nos in column B. by
using countif function by puting the formula in column C1 i.e
=countif(A1:A30,B1) i can count the nos of B1 . but when i copy the same
formula at down rows by dragging the mouse then then the value of column is
changing from A2 :A31 , again in next cell it is A3:A32. i need used this
A1:A30 as constant this should not be change when i copy the same formula to
the down cells

Example:
A B C
211 211 =countif(A1:A30,B1)
123 123
211 511
511 258
258 111
211
111
111
123





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 144
Default count

Put an absolute reference to A1:A30, like $A$1:$A$30
1) turn C1 into edit mode by pressing F2 key
2) put your cursor in between at A1 and press F4 key.
do the same for A30
--
Hope this is helpful

Appreciate that you provide your feedback by clicking the Yes button below
if this post have helped you.


Thank You

cheers, francis










"smina" wrote:

I have differnet repeated nos. in column A, and unique nos in column B. by
using countif function by puting the formula in column C1 i.e
=countif(A1:A30,B1) i can count the nos of B1 . but when i copy the same
formula at down rows by dragging the mouse then then the value of column is
changing from A2 :A31 , again in next cell it is A3:A32. i need used this
A1:A30 as constant this should not be change when i copy the same formula to
the down cells

Example:
A B C
211 211 =countif(A1:A30,B1)
123 123
211 511
511 258
258 111
211
111
111
123





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
Multiple Criteria, Count If, Sum Product to get count across range Jonathan Excel Worksheet Functions 5 January 9th 08 11:32 PM
Count Employee Work Time - Don't Double-count Overlapping Apts. J Excel Worksheet Functions 0 April 27th 07 05:52 AM
Excel 2000, count, sort a list & count totals? sunslight Excel Worksheet Functions 1 April 9th 07 05:46 PM
Count Intervals of 2 Consecutive Values in same Row and Return Count across Row Sam via OfficeKB.com Excel Worksheet Functions 6 November 29th 05 03:27 PM
Count Intervals of Filtered TEXT values in Column and Return Count across a Row Sam via OfficeKB.com Excel Worksheet Functions 9 July 31st 05 03:37 AM


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