Forum Discussion

Ivan Wilson's avatar
Ivan Wilson
Copper Contributor
Aug 23, 2017

Array functions and If and Exact all combined not working

I am a little new to this, so some help would be much apprecaited.

 

I have a spreadsheet with names, projects and a 1 or 0 depending on if they are working on it for the week in question on one sheet. 

IE

Name,   Project, Week1, Week2, Week3 ...

Dave,     P1,         1            1           0

Tim,       P1,         0,           0            1

Dave,    P3,         0            0             1 

Sarah,   P4          1             0            1

Tim,      P5,        1            0              0

 

I want to create a new sheet with a summary for project management and team planning purposes, where each of the names has a 1 or 0 if they are busy on ANY project.

IE

 

Name, Week1, Week2, Week3, ...

Dave,    1              1           1

Tim        1             0           1

Sarah      1           0            1

 

I have

{=if(EXACT($B$8,'Resource Allocation'!B8:'Resource Allocation'!B114) AND'Resource Allocation'!G8:'Resource Allocation'!G114>0 ,1,0)}

Where $B$8 is the name and the 'Resource Allocation'!B8:'Resource Allocation'!B114 is the range of the names on the main sheet and the other range is the 1/0 if they are busy

Doesn't work.... what am I doing wrong? I cannot seem to get over this bit at all.

Thanks

Ivan

 

1 Reply

  • JKPieterse's avatar
    JKPieterse
    Silver Contributor

    I think you can use the COUNTIFS function here.

     

    Suppose your data is in 'Resource Allocation'$A$1:$E$100 and your new table starts in A1 then this formula should do the trick:

     

    =1*(COUNTIFS('Resource Allocation'!C$2:C$100,1,'Resource Allocation'!$A$2:$A$100,$A2)>0)

Resources