Forum Discussion
how to make a formulaL: count if a cell contains text and countif specific information from a table
I'm creating a schedule for work. HUGE project!
I have a table "Levels" containing the following:
LAST FIRST LEVEL
Smith John 2
Jean Barbara 2
Doe Jane 3
Summers Steve 1
I have a range of cells that look like the following:
NAME | LEVEL | S | M | T | W | R | F | S | |
John | 2 | T7 | T7 | T7 | |||||
Barbara | 2 | T7 | T7 | P15 | |||||
Jane | 3 | T7 | D7 | T7 | |||||
Steve | 1 | D7 | T7 | T7 | D7 | ||||
level 1 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | ||
Level 2 | 0 | 0 | 0 | 1 | 2 | 2 | 2 | ||
Level 3 | 0 | 0 | 0 | 0 | 0 | 1 | 1 |
I would like to create a formula (where the bolded numbers are) that counts the number of levels looked up from the table "Levels".
Does this make any sense? is this even possible? Please let me know if I can clarify anything. Pretty desperate, I don't want to hand count each cell. I have 65 employees I would need to do this for!
- Detlef_LewinSilver Contributor
Hello Dylan
I get opposite results in the Wednesday column.
Select D7:J7, copy the formula into the formula bar and press CTRL-SHIFT-ENTER.
{=MMULT({1,1,1,1},("Level "&$B$2:$B$5=A12)*($D$2:$J$5<>""))}
- Dylan BastienCopper Contributor
hmm. didn't seem to work.