ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Counting Text Occurances - HELP PLEASE (https://www.excelbanter.com/excel-worksheet-functions/253185-counting-text-occurances-help-please.html)

Beauty Girl

Counting Text Occurances - HELP PLEASE
 
I have numerous (approx. 30) 2 letter codes used to identify different type
of work events. Some are "soft" events, some are "hard" events. I want to
count how many times each type of event occurs in a range.

Soft = DO, VC, SK, JD, CP, etc.
Hard = FT, TH, WK, MT, etc.

My data is entered across columns by date and down rows by employee. Does
anyone know how to sum the "soft" and "hard" events by row / employee?
Thanks.

Ashish Mathur[_2_]

Counting Text Occurances - HELP PLEASE
 
Hi,

Assume that your first employee data is in row 21 (Let's say the workevents
are in D21:I21). In C26:C31, enter the soft codes and in D26:D29, enter the
hard codes. In cell J21, enter the following formula to count the soft
codes

=SUMPRODUCT(1*(ISNUMBER(MATCH($D21:$I21,$C$26:$C$3 0,0))))

For hard codes

=SUMPRODUCT(1*(ISNUMBER(MATCH($D$21:$I$21,$D$26:$D $30,0))))

Hope this helps

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Beauty Girl" <Beauty wrote in message
...
I have numerous (approx. 30) 2 letter codes used to identify different
type
of work events. Some are "soft" events, some are "hard" events. I want
to
count how many times each type of event occurs in a range.

Soft = DO, VC, SK, JD, CP, etc.
Hard = FT, TH, WK, MT, etc.

My data is entered across columns by date and down rows by employee. Does
anyone know how to sum the "soft" and "hard" events by row / employee?
Thanks.




All times are GMT +1. The time now is 08:23 PM.

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