Count Formulae Help

HaudYerWeesht

New Member
Joined
Jun 9, 2016
Messages
17
Office Version
  1. 2016
Platform
  1. Windows
Hi. I have a list of staff and I’m keeping track of any days they take off.

Cell A1 - Joiner, A2 - Plumber, A3 - Roofer, A4 Joiner etc

In column B I have blank cells and each cell denotes 4 hours unless it is filled and then it becomes 0. I have a formula in place in another column that adds up all the blank cells and multiplies it by 4 and gives the total hours for that day.

However it is for all trades. Is there a formula that will add up the blank cells in column B only for one of the trades? So if the 2 joiners were working could a formula look for the word joiner in column A and then check column B for blank cells on the same row as the joiners and then multiply them by 4?

Thanks
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
countifs()
should work for you

=countifs( A1:A10000, "joiner", B1:B10000, "")
then * 4
you could use a cell with joiner in rather than hardcoding

Book4
ABCD
1
2joiner5
3bricklayer
4joiner1
5bricklayer
6joiner
7bricklayer
8joiner1
9bricklayer
10joiner
11bricklayer
12joiner1
13bricklayer
14joiner
15bricklayer
16joiner
17bricklayer
Sheet1
Cell Formulas
RangeFormula
D2D2=COUNTIFS(A1:A23,"joiner",B1:B23,"")


using a cell to put the criteria in - also the count multiplied by 4

Book4
ABCDEF
1
2joinerJoiner20
3bricklayer
4joiner1
5bricklayer
6joiner
7bricklayer
8joiner1
9bricklayer
10joiner
11bricklayer
12joiner1
13bricklayer
14joiner
15bricklayer
16joiner
17bricklayer
Sheet1
Cell Formulas
RangeFormula
F2F2=COUNTIFS(A1:A23,E2,B1:B23,"")*4
 
Upvote 0
Solution
countifs()
should work for you

=countifs( A1:A10000, "joiner", B1:B10000, "")
then * 4
you could use a cell with joiner in rather than hardcoding

Book4
ABCD
1
2joiner5
3bricklayer
4joiner1
5bricklayer
6joiner
7bricklayer
8joiner1
9bricklayer
10joiner
11bricklayer
12joiner1
13bricklayer
14joiner
15bricklayer
16joiner
17bricklayer
Sheet1
Cell Formulas
RangeFormula
D2D2=COUNTIFS(A1:A23,"joiner",B1:B23,"")


using a cell to put the criteria in - also the count multiplied by 4

Book4
ABCDEF
1
2joinerJoiner20
3bricklayer
4joiner1
5bricklayer
6joiner
7bricklayer
8joiner1
9bricklayer
10joiner
11bricklayer
12joiner1
13bricklayer
14joiner
15bricklayer
16joiner
17bricklayer
Sheet1
Cell Formulas
RangeFormula
F2F2=COUNTIFS(A1:A23,E2,B1:B23,"")*4

perfect, thanks etaf
 
Last edited by a moderator:
Upvote 0
you are welcome
no real need to quote my reply in yours - FYI
 
Upvote 0

Forum statistics

Threads
1,224,542
Messages
6,179,421
Members
452,913
Latest member
JWD210

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top