PC Review


Reply
Thread Tools Rate Thread

Counta function

 
 
Help
Guest
Posts: n/a
 
      2nd Jul 2008
How do I copy a formula of "COUNTA" for a range to the next row in which the
row no is jumping to row 50?
For example, i want to count the no appear in the other sheet where
=counta(abc!c1:c10) and returns value is 2. However when i copy the formula
to the next row of the same sheet, the formula will be read as
=counta(abc!c2:c11) but what i want is =counta(abc!c61:c70).

Thanks

 
Reply With Quote
 
 
 
 
T. Valko
Guest
Posts: n/a
 
      2nd Jul 2008
>How do I copy a formula of "COUNTA" for a range to the next
>row in which the row no is jumping to row 50?
>=counta(abc!c1:c10)
>=counta(abc!c61:c70)


Your interval is 60 rows. Assume you're entering this formula in cell A1 and
copying down:

=COUNTA(OFFSET(abc!C$1,(ROWS(A$1:A1)-1)*60,,10))

A1 = COUNTA(abc!C1:C10)
A2 = COUNTA(abc!C61:C70)
A3 = COUNTA(abc!C121:C130)
A4 = COUNTA(abc!C181:C190)
etc
etc

--
Biff
Microsoft Excel MVP


"Help" <(E-Mail Removed)> wrote in message
news:9B444525-C941-4B91-9636-(E-Mail Removed)...
> How do I copy a formula of "COUNTA" for a range to the next row in which
> the
> row no is jumping to row 50?
> For example, i want to count the no appear in the other sheet where
> =counta(abc!c1:c10) and returns value is 2. However when i copy the
> formula
> to the next row of the same sheet, the formula will be read as
> =counta(abc!c2:c11) but what i want is =counta(abc!c61:c70).
>
> Thanks
>



 
Reply With Quote
 
Shane Devenshire
Guest
Posts: n/a
 
      2nd Jul 2008
Hi folks,

=COUNTA(OFFSET(abc!C$1,(ROWS(A$1:A1)-1)*60,,10))
You can simplify the suggestion above in a couple of ways:

=COUNTA(OFFSET(abc!C$1,(ROW(A1)-1)*60,,10))

and then if you give the range abc!C1:C10 the name A you can make the
following changes:

=COUNTA(OFFSET(A,(ROW(A1)-1)*60,))

Cheers,
Shane


"T. Valko" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>>How do I copy a formula of "COUNTA" for a range to the next
>>row in which the row no is jumping to row 50?
>>=counta(abc!c1:c10)
>>=counta(abc!c61:c70)

>
> Your interval is 60 rows. Assume you're entering this formula in cell A1
> and copying down:
>
> =COUNTA(OFFSET(abc!C$1,(ROWS(A$1:A1)-1)*60,,10))
>
> A1 = COUNTA(abc!C1:C10)
> A2 = COUNTA(abc!C61:C70)
> A3 = COUNTA(abc!C121:C130)
> A4 = COUNTA(abc!C181:C190)
> etc
> etc
>
> --
> Biff
> Microsoft Excel MVP
>
>
> "Help" <(E-Mail Removed)> wrote in message
> news:9B444525-C941-4B91-9636-(E-Mail Removed)...
>> How do I copy a formula of "COUNTA" for a range to the next row in which
>> the
>> row no is jumping to row 50?
>> For example, i want to count the no appear in the other sheet where
>> =counta(abc!c1:c10) and returns value is 2. However when i copy the
>> formula
>> to the next row of the same sheet, the formula will be read as
>> =counta(abc!c2:c11) but what i want is =counta(abc!c61:c70).
>>
>> Thanks
>>

>
>

 
Reply With Quote
 
T. Valko
Guest
Posts: n/a
 
      2nd Jul 2008
> =COUNTA(OFFSET(abc!C$1,(ROWS(A$1:A1)-1)*60,,10))
> You can simplify the suggestion above in a couple of ways:
> =COUNTA(OFFSET(abc!C$1,(ROW(A1)-1)*60,,10))


Yeah, that works but if a new row 1 is inserted it'll break. Since we don't
know if that's a possibility my preference is to always use ROWS and not
have to worry about it.

Same reasoning also applies to using ROW() and/or COLUMN() with no argument.

--
Biff
Microsoft Excel MVP


"Shane Devenshire" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi folks,
>
> =COUNTA(OFFSET(abc!C$1,(ROWS(A$1:A1)-1)*60,,10))
> You can simplify the suggestion above in a couple of ways:
>
> =COUNTA(OFFSET(abc!C$1,(ROW(A1)-1)*60,,10))
>
> and then if you give the range abc!C1:C10 the name A you can make the
> following changes:
>
> =COUNTA(OFFSET(A,(ROW(A1)-1)*60,))
>
> Cheers,
> Shane
>
>
> "T. Valko" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>>>How do I copy a formula of "COUNTA" for a range to the next
>>>row in which the row no is jumping to row 50?
>>>=counta(abc!c1:c10)
>>>=counta(abc!c61:c70)

>>
>> Your interval is 60 rows. Assume you're entering this formula in cell A1
>> and copying down:
>>
>> =COUNTA(OFFSET(abc!C$1,(ROWS(A$1:A1)-1)*60,,10))
>>
>> A1 = COUNTA(abc!C1:C10)
>> A2 = COUNTA(abc!C61:C70)
>> A3 = COUNTA(abc!C121:C130)
>> A4 = COUNTA(abc!C181:C190)
>> etc
>> etc
>>
>> --
>> Biff
>> Microsoft Excel MVP
>>
>>
>> "Help" <(E-Mail Removed)> wrote in message
>> news:9B444525-C941-4B91-9636-(E-Mail Removed)...
>>> How do I copy a formula of "COUNTA" for a range to the next row in which
>>> the
>>> row no is jumping to row 50?
>>> For example, i want to count the no appear in the other sheet where
>>> =counta(abc!c1:c10) and returns value is 2. However when i copy the
>>> formula
>>> to the next row of the same sheet, the formula will be read as
>>> =counta(abc!c2:c11) but what i want is =counta(abc!c61:c70).
>>>
>>> Thanks
>>>

>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using the COUNTA function =?Utf-8?B?SkwxOTc2?= Microsoft Excel Misc 1 26th Oct 2007 01:28 AM
CountA function Paul Microsoft Excel Programming 2 23rd Nov 2004 03:40 PM
COUNTA Function not working =COUNTA(C3:C69,"NH") =?Utf-8?B?TWlrZWluTkg=?= Microsoft Excel Worksheet Functions 2 8th Nov 2004 01:19 AM
counta function MP Microsoft Excel Worksheet Functions 4 10th Sep 2004 05:06 PM
Counta Function Diane White Microsoft Excel Worksheet Functions 1 12th Apr 2004 02:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:38 PM.