How to display all staff/manager name according to similar project, but on different task?

haha97

New Member
Joined
Mar 31, 2022
Messages
17
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hi. Previously, I have posted this question How to split the name and display the status of task/project for each name?. Usually, each staff has their own task for the similar project. I tried to add additional column, which is Task and the output only recognize the first and second name of staff (M1 and M2), but for M3 and M4, it can't recognized as shown in table below. The status project for M2 should be in progress instead of on-hold. Kindly need your help for this question and thank you.
project_tracker.xlsx
ABCDEFGHI
1Date4/4/2022
2Date1ProjectTaskstatusmanagerProjectA
34/4/2022ATask1in progressM1/M2ManagerStatus Project
44/4/2022ATask2on holdM3/M4M1in progress
54/5/2022BTask3in progressM3/M2M2on hold
64/6/2022CTask4otherM4/M5/M6  
Sheet4
Cell Formulas
RangeFormula
H4:H6H4=IFNA(TRIM(MID(SUBSTITUTE(VLOOKUP(I$2,B$3:E$6,4,0),"/",REPT(" ",100)),ROWS(H$4:H4)*100-99,100)),"")
I4:I6I4=IFNA(IF(H4="","",VLOOKUP(I$2,B3:E6,3,0)),"")


Desired output:
project_tracker.xlsx
HI
10Date4/4/2022
11ProjectA
12ManagerStatus Project
13M1in progress
14M2in progress
15M3on hold
16M4on hold
Sheet4
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Here's something that will work in 365, but it's not great.

MrExcelPlayground7.xlsx
ABCDEFGHI
1Date4/4/2022
2Date1ProjectTaskstatusmanagerProjectA
34/4/2022ATask1in progressM1/M2ManagerStatus Project
44/4/2022ATask2on holdM3/M4M1in progress
54/5/2022CTask3in progressM3/M2M2in progress
64/6/2022CTask4otherM4/M5/M6M3on hold
7M4on hold
8 
9 
10 
11 
Sheet27
Cell Formulas
RangeFormula
H4:H7H4=SORT(FILTERXML("<x><y>"&SUBSTITUTE(TEXTJOIN("/",TRUE,FILTER(E3:E6,B3:B6=I2)),"/","</y><y>")&"</y></x>","//y"))
I4:I11I4=IF(H4<>"",INDEX(FILTER($D$3:$D$6,$B$3:$B$6=$I$2),MAX(--(NOT(ISERR(SEARCH(H4,FILTER($E$3:$E$6,$B$3:$B$6=$I$2)))))*SEQUENCE(ROWS(FILTER($E$3:$E$6,$B$3:$B$6=$I$2))))),"")
Dynamic array formulas.
 
Upvote 0
Here's something that will work in 365, but it's not great.

MrExcelPlayground7.xlsx
ABCDEFGHI
1Date4/4/2022
2Date1ProjectTaskstatusmanagerProjectA
34/4/2022ATask1in progressM1/M2ManagerStatus Project
44/4/2022ATask2on holdM3/M4M1in progress
54/5/2022CTask3in progressM3/M2M2in progress
64/6/2022CTask4otherM4/M5/M6M3on hold
7M4on hold
8 
9 
10 
11 
Sheet27
Cell Formulas
RangeFormula
H4:H7H4=SORT(FILTERXML("<x><y>"&SUBSTITUTE(TEXTJOIN("/",TRUE,FILTER(E3:E6,B3:B6=I2)),"/","</y><y>")&"</y></x>","//y"))
I4:I11I4=IF(H4<>"",INDEX(FILTER($D$3:$D$6,$B$3:$B$6=$I$2),MAX(--(NOT(ISERR(SEARCH(H4,FILTER($E$3:$E$6,$B$3:$B$6=$I$2)))))*SEQUENCE(ROWS(FILTER($E$3:$E$6,$B$3:$B$6=$I$2))))),"")
Dynamic array formulas.
Thank you for your reply. Actually, I used my office laptop and it only supported Microsoft 2019 only. I know that FILTERXML is only supported for Microsoft 365 and 2021
 
Upvote 0
Here's something that will work in 365, but it's not great.

MrExcelPlayground7.xlsx
ABCDEFGHI
1Date4/4/2022
2Date1ProjectTaskstatusmanagerProjectA
34/4/2022ATask1in progressM1/M2ManagerStatus Project
44/4/2022ATask2on holdM3/M4M1in progress
54/5/2022CTask3in progressM3/M2M2in progress
64/6/2022CTask4otherM4/M5/M6M3on hold
7M4on hold
8 
9 
10 
11 
Sheet27
Cell Formulas
RangeFormula
H4:H7H4=SORT(FILTERXML("<x><y>"&SUBSTITUTE(TEXTJOIN("/",TRUE,FILTER(E3:E6,B3:B6=I2)),"/","</y><y>")&"</y></x>","//y"))
I4:I11I4=IF(H4<>"",INDEX(FILTER($D$3:$D$6,$B$3:$B$6=$I$2),MAX(--(NOT(ISERR(SEARCH(H4,FILTER($E$3:$E$6,$B$3:$B$6=$I$2)))))*SEQUENCE(ROWS(FILTER($E$3:$E$6,$B$3:$B$6=$I$2))))),"")
Dynamic array formulas.
Is there any solution that you can recommend to me? Thank you
 
Upvote 0
filterxml works on older excels. The textjoin, sort and filter doesn't work on older excels... I don't think I could pull this off in older excel.
 
Upvote 0
filterxml works on older excels. The textjoin, sort and filter doesn't work on older excels... I don't think I could pull this off in older excel.
Yes. I have tried it, but it stated that 'the function isn't valid'.
 
Upvote 0

Forum statistics

Threads
1,215,004
Messages
6,122,659
Members
449,091
Latest member
peppernaut

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