Index Match and returning the *right* value

orangebloss

Board Regular
Joined
Jun 5, 2013
Messages
51
Office Version
  1. 365
Platform
  1. 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]])),"")
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
[TABLE="class: grid, width: 640"]
<tbody>[TR]
[TD="width: 64, bgcolor: #FFFFFF"]Name[/TD]
[TD="width: 64, bgcolor: #FFFFFF"]Project[/TD]
[TD="width: 64, bgcolor: #FFFFFF"]Week 1[/TD]
[TD="width: 64, bgcolor: #FFFFFF"]Week 2[/TD]
[TD="width: 64, bgcolor: #FFFFFF"]Week 3[/TD]
[TD="width: 64, bgcolor: #FFFFFF"]Week 4[/TD]
[TD="width: 64, bgcolor: transparent"][/TD]
[TD="width: 64, bgcolor: transparent"][/TD]
[TD="width: 64, bgcolor: transparent"][/TD]
[TD="width: 64, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="width: 64, bgcolor: #FFFFFF"]BOB[/TD]
[TD="width: 64, bgcolor: #FFFFFF"]ABC[/TD]
[TD="width: 64, bgcolor: #FFFFFF"]1[/TD]
[TD="width: 64, bgcolor: #FFFFFF"]0.5[/TD]
[TD="width: 64, bgcolor: #FFFFFF"][/TD]
[TD="width: 64, bgcolor: #FFFFFF"]1[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]bob[/TD]
[TD="bgcolor: transparent"]week 3[/TD]
[TD="bgcolor: transparent"]DEF[/TD]
[/TR]
[TR]
[TD="width: 64, bgcolor: #FFFFFF"]BOB[/TD]
[TD="width: 64, bgcolor: #FFFFFF"]DEF[/TD]
[TD="width: 64, bgcolor: #FFFFFF"][/TD]
[TD="width: 64, bgcolor: #FFFFFF"][/TD]
[TD="width: 64, bgcolor: #FFFFFF"]1[/TD]
[TD="width: 64, bgcolor: #FFFFFF"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="width: 64, bgcolor: #FFFFFF"]JANE[/TD]
[TD="width: 64, bgcolor: #FFFFFF"]DEF[/TD]
[TD="width: 64, bgcolor: #FFFFFF"]1[/TD]
[TD="width: 64, bgcolor: #FFFFFF"][/TD]
[TD="width: 64, bgcolor: #FFFFFF"]1[/TD]
[TD="bgcolor: #FFFFFF"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
</tbody>[/TABLE]

In j2 control+shift+enter, not just enter:

=INDEX($B$2:$B$4,MATCH(H2,IF(ISNUMBER(INDEX($C$2:$F$4,0,MATCH(I2,$C$1:$F$1,0))),$A$2:$A$4),0))
 
Upvote 0
Thank you so much!!! it took a bit of shuffling and playing but it worked!!! *phew*
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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