Forum Discussion

Dylan Bastien's avatar
Dylan Bastien
Copper Contributor
Sep 05, 2018

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:

  
 NAMELEVEL SMTWRFS
John2     T7T7T7
Barbara2     T7T7P15
Jane3    T7 D7T7
Steve1  D7  T7T7D7
          
level 1  0101111
Level 2  0001222
Level 3  0000011

 

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_Lewin's avatar
    Detlef_Lewin
    Silver 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<>""))}

     

Resources