Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

counting

ResolvedVersion 2016

Ben has attended:
Excel Intermediate course

Counting

I set of data with values relating to the staff Enumber.

Each staff may have more than one row value and I want to count how many rows each staff number has.

RE: Counting

Hi Ben,

Thank you for the forum question.

You will need the Countif or Countifs function. The Countif needs two information. =Countif(Range,Criteria)

The range will be the range where you have the staff Enumber and Criteria will be the Enumber. If you create a list of all unique Enumbers Lets imaging that your list with the unique Enumbers is in the range K2:K30 and that you have the range of Enumber you want to count in the range A2:A200.

If you in L2 write =Countif($A$2:$A$200,K2) and then copy down the formula the Countif will count number of records for each Enumber.

I hope this makes sense.




Kind regards

Jens Bonde
Microsoft Office Specialist Trainer

Tel: 0207 987 3777
Best STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector

Mon 22 May 2017: Automatically marked as resolved.

Excel tip:

Formst Excel to display leading zeroes

Select the cells that you want to have displaying leading zeroes.

From the 'Format' menu select 'Cells' (Or Right-click on the selected range and and select 'Format Cells').

In the 'Number' tab click on 'Custom' in the 'Category' window.

In the 'Type:' box enter zeroes that correspond to the size of the required number (eg 5 zeroes).

Click OK.

When you enter numbers into these cells, leading zeroes will be displayed.

eg 123 = 00123

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.11 secs.