Array Formula with Multiple Lookup Columns

Rcaaa

New Member
Joined
May 21, 2018
Messages
23
Table from Task sheet
A
B
C
D
E
F
G
H


W
X
Y
Z
AA
AB
AC
AD
AE
AH
2
ID
Project Name
Task ID
Task Description
Task Type
Start Date
End Date
# of Days
Resource 1
Resource 1 Contact
Resource 2
Resource 2 Contact
Resource 3
Resource 3 Contact
Resource 4
Resource 4 Contact
Resource 5
Resource 5 Contact
3
1
Project 1
Task A
Task a is
Main
1/20/17
1/20/18
365
Ana
Ana@gmail.com
Rob
Rob@gmail.com
Bill
Bill@gmail.com
Jan
Jan@gmail.com
Sara
Sara@gmail.com

<tbody>
</tbody>

Table Array Formula:
=IF(ROWS(C$7:C22)>$C$2,"",INDEX(Tasks!B$3:B$2012,SMALL(IF(Tasks!$U$3:$AH$2012=$B$2,ROW(Tasks!$U$3:$AH$2012
)-ROW(Tasks!$U$3)+1),ROWS(C$7:C22))))

Sheet with Table Array(Resource View)
B
C
1
Resource
Count
2
Ana
6

<tbody>
</tbody>

PROBLEM: I can only pull data that matches with 1 column of resources. I want to be able to have the data fill if the resource name is in any of the resource columns. For example if Ana is in the Resource 2 column for project 1 and resource 3 column for project 4, I want both entries to appear.
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Not saying Ill answer this but your example data suggests there will only be 4 Resources.
Is that true?
 
Upvote 0
I would actually have 5 Resources. There should be a scroll bar that shows the rest of the data.
Thanks,
RCAAA
 
Upvote 0
Say you have this in Tasks (dates as dd/mm/yyyy)

Columns A:F

A
B
C
D
E
F
G
H
1
2
ID​
Project Name​
Task ID​
Task Description​
Task Type​
Start Date​
End Date​
# of Days​
3
1​
Project 1​
Task A​
Task a is​
Main​
20/01/2017​
20/01/2018​
365​
4
2​
Project 2​
Task X​
5
3​
Project 3​
Task y​
6
4​
Project 4​
Task A​
Task a is​
Main​
20/01/2017​
20/01/2018​
365​

<tbody>
</tbody>


Columns W:AF

W
X
Y
Z
AA
AB
AC
AD
AE
AF
1
2
Resource 1​
Resource 1 Contact​
Resource 2​
Resource 2 Contact​
Resource 3​
Resource 3 Contact​
Resource 4​
Resource 4 Contact​
Resource 5​
Resource 5 Contact​
3
Ana​
Ana@gmail.com​
Rob​
Rob@gmail.com​
Bill​
Bill@gmail.com​
Jan​
Jan@gmail.com​
Sara​
Sara@gmail.com​
4
5
6
Rob​
Rob@gmail.com​
Ana​
Ana@another.com​
Bill​
Bill@gmail.com​
Jan​
Jan@gmail.com​
Sara​
Sara@gmail.com​

<tbody>
</tbody>


Try in another sheet

A
B
C
D
1
Resource​
Count​
Project List​
2
Ana​
2​
Project 1​
3
Project 4​
4

<tbody>
</tbody>


Formula in C2
=COUNTIF(Tasks!W:AF,B2)

Array formula in D2 copied down
=IF(C$2>=ROWS(D$2:D2),INDEX(Tasks!B$3:B$2012,SMALL(IF(Tasks!W$3:AF$2012=B$2,ROW(Tasks!W$3:AF$2012)-ROW(Tasks!W$3)+1),ROWS(D$2:D2))),"")
Ctrl+Shift+Enter

Hope this helps

M.



 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,101
Messages
6,123,094
Members
449,095
Latest member
gwguy

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