• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

using a counta formula for the sum of 2 columns side by side

theYaniac

New Member
I am trying to use a count formula for two columns side by side. For example columns A is ST hours and column B is OT hours. I need a total count of employees found. Some will have time in A and B some will have time in A or B. I only want one employee counted per row.
A B
ST OT
2 0
2 0
2 0
0 2
0 1
2 1
0 0
0 0
0 0
0 0
based on the example the count should return (6). This is a time entry for 6 separate employees. Please help
 
pl
I am trying to use a count formula for two columns side by side. For example columns A is ST hours and column B is OT hours. I need a total count of employees found. Some will have time in A and B some will have time in A or B. I only want one employee counted per row.
A B
ST OT
2 0
2 0
2 0
0 2
0 1
2 1
0 0
0 0
0 0
0 0
based on the example the count should return (6). This is a time entry for 6 separate employees. Please help
please send attach file . your question is not clear.
 
hi,

Not really sure if I am thinking too complicated. However, for now the below solution works

SUMPRODUCT(--(MMULT(A2:B11,{1;1})>0))

Assuming that your values are stored in range A2 to B11

And is there any reason you want to stick to counta funtion
 

Attachments

  • upload_2018-3-5_23-17-8.png
    upload_2018-3-5_23-17-8.png
    8.9 KB · Views: 7
here is an example of the template. I need to only count the number of direct employees that have hours charged in each job. The employees could have only straight time hours, only overtime hours, or both in each job.
 

Attachments

  • ExampleBook1.xlsx
    8.8 KB · Views: 5
Back
Top