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

sumproduct counting distinct

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Sumproduct - counting distinct values in two columns

Sumproduct - counting distinct values in two columns

ResolvedVersion 2003

Gareth has attended:
Excel VBA Intro Intermediate course
Excel Intermediate course
Excel Advanced course

Sumproduct - counting distinct values in two columns

Hi

I have this formula to count the number of distinct entries in one column.

=SUMPRODUCT(($H$23:$H$65536<>"")/COUNTIF($H$23:$H$65536,$H$23:$H$65536&""))

I need to adapt this formula to count the distinct entries that match a value in column S as well. This Column contains the month.

So essentially I need to count the distinct entries that match a particular month.

Any suggestions? Thanks

gareth

RE: Sumproduct - counting distinct values in two columns

Hi Gareth

Thank you for your enquiry. You may be able to extend your SUMPRODUCT statement to include selection criteria. Whilst it's not formerly covered in our training courses you may find section 3 of the following article of help.

http://www.meadinkent.co.uk/xlsumproduct.htm

I hope this helps - do let us know if you have any further questions.

Kind regards,
Andrew

RE: Sumproduct - counting distinct values in two columns

Hi Andrew

Thanks for the reply. I wouldn't know where to beging amending my original formula!

Any advice on how I go about extending it to include another criteria from another column?

Thanks

RE: Sumproduct - counting distinct values in two columns

Hi Gareth

Thank you for coming back to me. I have asked a colleague to look at your question as this is an area he as worked on. Please bear in mind he will be back on Wednesday. Please let me know if this will be a problem.

Kind regards,
Andrew

RE: Sumproduct - counting distinct values in two columns

Hi Gareth

Thank you for your question which Andrew has passed to me.

First I apologise for the delay in responding, this was due to an oversight on my part.

If this is still an outstanding problem I suggest yo email me an example of the workbook with information as to what exactly you wish to achieve and I will give the matter my urgent attention

My email is sw@stl-training.co.uk

Regards

Stephen

Excel tip:

How to apply the same formatting and data to multiple sheets at the same time in Excel 2010

When you want to format more than one sheet in a worksheet exactly the same way, Ctrl-click the tabs of the sheets you want to group together and they will all turn white. While they are grouped, anything you enter in one sheet gets entered into the others.

After you have done this, remember to click on the tabs to take them out of the group so that you do not accidentally insert data in multiple sheets when you just want to insert data in one.

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.