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

counting different products colu

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Counting different products in a column

Counting different products in a column

ResolvedVersion 2003

Dee has attended:
Excel Advanced course
Excel Intermediate course

Counting different products in a column

Hi,

I have a spreadsheet that has columns of different items and I need to find out how many of each item are in the column.

Ex:
green
blue
yellow
white
green
blue

I need totals for each colour. Is there a way of doing this?

Cheers,

Dee

RE: Counting different products in a column

Hello Dee

Thank you for your question.

You can use the COUNTIF function to count the number of times a specific criteria (in this case, name of a colour) appears within a cell range.

I've attached an example to show how it works. The formulas are in the cells coloured in yellow.

Kind regards
Amanda

Attached files...

countif.xls

RE: Counting different products in a column

Thanks!

Dee

Excel tip:

Autonumber in Excel

To create an autonumber field, can use the Offset() function.

In cell A1, enter the number 1.
Then in cell A2, enter this formula:

=OFFSET(A2,-1,0)+1

Then copy the formula from cell A2, down as far as you need.

See also: Autonumber in Excel forum post.

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.