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

excel

ResolvedVersion 2003

Rachael has attended:
Excel VBA Intro Intermediate course

Excel

Is there a way to calculate the number of cells that match a certain ciretria when the column has a filter on it?

E.g;

Row A has 25 "PAYE" workers in there, but when we select a filter in Row B the result is 5 "PAYE" workers. the countif still counts a total of 25, but we would like to be able to count only 5. Is this possible?

Thanks

Rac

RE: Excel

Hello Rachael,

Hope you enjoyed your Microsoft Excel VBA course with Best STL.

Thank you for your question regarding working with filtered data and being able to either sum or count items that appear after the filter has been applied.

I have attached a small file containing some employee data and I have created a subtotal function for the paye column and the salary column. Since I applied a number of 1 to the paye employees and a 0 to the rest, the subtotal will always work no matter how you have filtered the list.

If this does not help you, then I suggest you send me a copy of your file to my email address at:

rl@stl-training.co.uk



I hope this resolves your question. If it has, please mark this question as resolved.

If you require further assistance, please reply to this post. Or perhaps you have another Microsoft Office question?

Have a great day.
Regards,

Rodney
Microsoft Office Specialist Trainer

Attached files...

Employee information.xls

Thu 10 Nov 2011: Automatically marked as resolved.

Excel tip:

Select only cell that contain text to lock format

For selecting cells that only contain Text in Excel

By selecting cells that only contain text, you can delete, fill or protect cells of this type.

Use short cut to Go to box (F5) or Edit, Go to
In the dialog box, click special button & select Constants and only check text or any other desired type.

Click OK.

And text cells will all be highlighted for you to apply format. Please note only works on one sheet at a time.

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.1 secs.