Lookup and Concatenate

Pestomania

Active Member
Joined
May 30, 2018
Messages
330
Office Version
  1. 365
Platform
  1. Windows
Hello, I am trying to identify how to Create a "statement" based on a lookup of the workaround based on where Yes is listed in the row.

Prestons Playground for Modeling 1.xlsx
ABCDEFGHIJ
1Column1ReprioritizeVPNAlternate LocationManual ProcessStatementStatusWorkaround
2Action 1YesYesReprioritize Workload, Move to an alternate location on CampusReprioritizeReprioritize Workload
3Action 2YesYesUtilize VPN, Manual Process availableVPNUtilize VPN
4Action 3YesYesYesAlternate LocationMove to an alternate location on Campus
5Action 4YesYesYesManual ProcessManual Process available
6Other StaffCan cover each other
7ICT StaffUtilize Wichita Staff
8
9I would like to have a vlookup based on where the "Yes" is. And once the workaround has been identified, I would like to have ti concatenate the workaround, comma, and next workaround until none left.
10
11
12
Sheet9
Cell Formulas
RangeFormula
I2:I5I2=TRANSPOSE(UNIQUE(Table11[[#Headers],[Reprioritize]:[Manual Process]]))
F2:F3F2=J2&", "&J4
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
B2:E5ListYes, No
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Try:
Book1
ABCDEFGHIJ
1Column1ReprioritizeVPNAlternate LocationManual ProcessStatementStatusWorkaround
2Action 1YesYesReprioritize Workload, Move to an alternate location on CampusReprioritizeReprioritize Workload
3Action 2YesYesUtilize VPN, Manual Process availableVPNUtilize VPN
4Action 3YesYesYesReprioritize Workload, Utilize VPN, Move to an alternate location on CampusAlternate LocationMove to an alternate location on Campus
5Action 4YesYesYesUtilize VPN, Move to an alternate location on Campus, Manual Process availableManual ProcessManual Process available
6Other StaffCan cover each other
7ICT StaffUtilize Wichita Staff
Sheet11
Cell Formulas
RangeFormula
I2:I5I2=TRANSPOSE(B1:E1)
F2:F5F2=TEXTJOIN(", ",,IF(B2:E2="Yes",XLOOKUP($B$1:$E$1,$I$2:$I$7,$J$2:$J$7),""))
Dynamic array formulas.
 
Upvote 0
Solution
Try:
Book1
ABCDEFGHIJ
1Column1ReprioritizeVPNAlternate LocationManual ProcessStatementStatusWorkaround
2Action 1YesYesReprioritize Workload, Move to an alternate location on CampusReprioritizeReprioritize Workload
3Action 2YesYesUtilize VPN, Manual Process availableVPNUtilize VPN
4Action 3YesYesYesReprioritize Workload, Utilize VPN, Move to an alternate location on CampusAlternate LocationMove to an alternate location on Campus
5Action 4YesYesYesUtilize VPN, Move to an alternate location on Campus, Manual Process availableManual ProcessManual Process available
6Other StaffCan cover each other
7ICT StaffUtilize Wichita Staff
Sheet11
Cell Formulas
RangeFormula
I2:I5I2=TRANSPOSE(B1:E1)
F2:F5F2=TEXTJOIN(", ",,IF(B2:E2="Yes",XLOOKUP($B$1:$E$1,$I$2:$I$7,$J$2:$J$7),""))
Dynamic array formulas.
Awesome!!! I wish I could remember textjoin.
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,915
Members
452,366
Latest member
TePunaBloke

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