orangebloss
Board Regular
- Joined
- Jun 5, 2013
- Messages
- 51
- Office Version
- 365
- Platform
- Windows
I have a spreadsheet that is used as a resource planner and I am trying to plot who is working on what in a graphical format (bit like within Project Server - but that's a whole other conversation).
The data is set up as below and I want to return the project name where the value is e.g. Bob in week 3 should return project DEF
[table="width: 500"]
[tr]
[td]Name [/td]
[td]Project[/td]
[td]Week 1[/td]
[td]Week 2[/td]
[td]Week 3[/td]
[td]Week 4[/td]
[/tr]
[tr]
[td]BOB[/td]
[td]ABC[/td]
[td]1[/td]
[td]0.5[/td]
[td][/td]
[td]1[/td]
[/tr]
[tr]
[td]BOB[/td]
[td]DEF[/td]
[td][/td]
[td][/td]
[td]1[/td]
[td][/td]
[/tr]
[tr]
[td]JANE[/td]
[td]DEF[/td]
[td]1[/td]
[td][/td]
[td]1[/td]
[td][/td]
[/tr]
[/table]
The formula I have so far is as follows - which sort of works but will return project ABC even for week 3. Is there a way for it to find where the number is and then return the project name?
=IF(SUMIF(RNAME1,RNAME,'Resource Planner'!P:P)>0,INDEX(PROJECTCODE,MATCH(RNAME,RNAME1,0),MATCH(I$1,Table1[[#Headers],[17/01]])),"")
The data is set up as below and I want to return the project name where the value is e.g. Bob in week 3 should return project DEF
[table="width: 500"]
[tr]
[td]Name [/td]
[td]Project[/td]
[td]Week 1[/td]
[td]Week 2[/td]
[td]Week 3[/td]
[td]Week 4[/td]
[/tr]
[tr]
[td]BOB[/td]
[td]ABC[/td]
[td]1[/td]
[td]0.5[/td]
[td][/td]
[td]1[/td]
[/tr]
[tr]
[td]BOB[/td]
[td]DEF[/td]
[td][/td]
[td][/td]
[td]1[/td]
[td][/td]
[/tr]
[tr]
[td]JANE[/td]
[td]DEF[/td]
[td]1[/td]
[td][/td]
[td]1[/td]
[td][/td]
[/tr]
[/table]
The formula I have so far is as follows - which sort of works but will return project ABC even for week 3. Is there a way for it to find where the number is and then return the project name?
=IF(SUMIF(RNAME1,RNAME,'Resource Planner'!P:P)>0,INDEX(PROJECTCODE,MATCH(RNAME,RNAME1,0),MATCH(I$1,Table1[[#Headers],[17/01]])),"")