ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Count on multiple columns (https://www.excelbanter.com/excel-worksheet-functions/16126-count-multiple-columns.html)

Emece

Count on multiple columns
 
Hi,

I have a worksheet with three columns, each of one stores values sold to
companies in July, August and September. I need to count to how many of these
companies I have sold sth at least once, for example if I sold to them on
July and August, I only want to count it once.

Hope I am clear enough, need help asap.

Thanks in advance

Regards,
Emece

Bob Phillips

Emece,

This formula will count the unique entries in A2:C10

=SUMPRODUCT((1/COUNTIF(A2:C10,A2:C10&"")))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Emece" wrote in message
...
Hi,

I have a worksheet with three columns, each of one stores values sold to
companies in July, August and September. I need to count to how many of

these
companies I have sold sth at least once, for example if I sold to them on
July and August, I only want to count it once.

Hope I am clear enough, need help asap.

Thanks in advance

Regards,
Emece




Aladin Akyurek

Create an additional colum where you sum the values rowwise like in:

=SUM(B2:D2)

in column E. Then invoke:

=COUNT(E2:E50)-COUNTIF(E2:E50,0)

to obtain the desired count.

Emece wrote:
Hi,

I have a worksheet with three columns, each of one stores values sold to
companies in July, August and September. I need to count to how many of these
companies I have sold sth at least once, for example if I sold to them on
July and August, I only want to count it once.

Hope I am clear enough, need help asap.

Thanks in advance

Regards,
Emece



All times are GMT +1. The time now is 06:49 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com