COUNTA: Calculating Dynamically Changing Rows

gsof

New Member
Joined
Jan 9, 2013
Messages
24
Hi All,


I am a bit of a newbie to Excel's formulas so apologies in advance for incorrect use of terminology.


However I have an issue that I was wondering if anyone could help me with.


I have a report that varies in row size daily, and I need to count how many employees we have in that one day. So for example one day we may have 50 employees whereas the next day we may only have 4 employees (please see the example I have created).

Employee NumberNameAgeFavourite Colour
gs111

<tbody>
</tbody>
Gary Smith10Red
as222

<tbody>
</tbody>
Alan Smith56Blue
bc333

<tbody>
</tbody>
Barry Corr23Red

<tbody>
</tbody>


Currently I am using COUNTA and manually changing this. However I was wondering whether there was a way for the formula to automatically do this so I do not have to keep manually editing the formula daily.


Many thanks in advance.


gsof
 
Last edited:

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Thanks for the reply JackDanIce :)

however I am starting the counta from A9 (A8 including the table header), so if I do =counta(A9:A) it only selects cell A9 :confused:
 
Upvote 0
Thanks for the reply JackDanIce :)

however I am starting the counta from A9 (A8 including the table header), so if I do =counta(A9:A) it only selects cell A9 :confused:

Define EMPLOYEES by means of Insert | Name | Define or Formulas | Name Manager as referring to:

=Sheet1!$A$9:INDEX(Sheet1!$A:$A,MATCH(REPT("z",255),Sheet1!$A:$A))

Adjust the sheet name to suit.

Usage:

=COUNTIF(EMPLOYEES,"?*")

would return an employee count.
 
Upvote 0
Thanks for your reply again JackDanIce, however I believe I have to pay for this add-in unfortunately thats something I can't do.

Again though I do appreciate the help you've offered :)
 
Upvote 0
Aladin's suggestion will work and no, you don't have to pay for the add-in, it's different ways of defining a dynamic (changing) range and how to apply formulae to it; more for your benefit only! :)
 
Upvote 0
Thanks for your reply again JackDanIce, however I believe I have to pay for this add-in unfortunately thats something I can't do.

Again though I do appreciate the help you've offered :)

In case you are going to miss it or already missed: See Post #6.
 
Upvote 0
Thanks Aladin Akyurek,

Apologies I have tried your example and it is not returning back the number of employees in my practice table :\
in using =COUNTIF(EMPLOYEES,"?*") it is returning back #VALUE!

 
Upvote 0

Forum statistics

Threads
1,216,070
Messages
6,128,614
Members
449,460
Latest member
jgharbawi

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top