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

Name ProjectWeek 1Week 2Week 3Week 4
BOBABC10.51
BOBDEF1
JANEDEF11

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

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
NameProjectWeek 1Week 2Week 3Week 4
BOBABC10.51bobweek 3DEF
BOBDEF1
JANEDEF11

<tbody>
</tbody>

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,215,737
Messages
6,126,576
Members
449,318
Latest member
Son Raphon

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