Look up value

psycoperl

Active Member
Joined
Oct 23, 2007
Messages
339
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
  3. Web
I have a seating chart (Sheet1) where I have indicated where specific people will sit. In Sheet3 I have a list of the people. I would like to do a lookup in Sheet3 where it displays the seat assigned in Sheet1 for each conflictID. The seat ID is located two rows above the ID is entered.

So for example, in Sheet3 Column A it should display "EVE/B5150-CTR A-09"


Cell Formulas
RangeFormula
K70:O70,K80:O80,K75:O75K70=CONCAT($C$1,"/", $E$1, "-", K$2, " ", MID($A70,6,1), "-", TEXT(K69,"00"))
K71:O71,K81:O81,K76:O76K71=MID(K72,6,3)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B82:AJ82,B77:AJ77,B67:AJ67,B57:AJ57,B47:AJ47,B37:AJ37,B32:AJ32,B27:AJ27,B22:AJ22,B17:AJ17,B12:AJ12,B7:AJ7,B62:AJ62,B52:AJ52,B72:AJ72,B42:AJ42Expression=SUM(COUNTIFS($B$82:$AJ$82,B7),COUNTIFS($B$77:$AJ$77,B7), COUNTIFS($B$72:$AJ$72,B7), COUNTIFS($B$67:$AJ$67,B7), COUNTIFS($B$62:$AJ$62,B7), COUNTIFS($B$57:$AJ$57,B7), COUNTIFS($B$52:$AJ$52,B7), COUNTIFS($B$47:$AJ$47,B7), COUNTIFS($B$42:$AJ$42,B7), COUNTIFS($B$37:$AJ$37,B7), COUNTIFS($B$32:$AJ$32,B7), COUNTIFS($B$27:$AJ$27,B7), COUNTIFS($B$22:$AJ$22,B7), COUNTIFS($B$17:$AJ$17,B7), COUNTIFS($B$12:$AJ$12,B7), COUNTIFS($B$7:$AJ$7,B7))>1textNO
B82:AJ82,B77:AJ77,B67:AJ67,B57:AJ57,B47:AJ47,B37:AJ37,B32:AJ32,B27:AJ27,B22:AJ22,B17:AJ17,B12:AJ12,B7:AJ7,B62:AJ62,B52:AJ52,B72:AJ72,B42:AJ42Expression=SUM(COUNTIFS($B$82:$AJ$82,B7),COUNTIFS($B$77:$AJ$77,B7), COUNTIFS($B$72:$AJ$72,B7), COUNTIFS($B$67:$AJ$67,B7), COUNTIFS($B$62:$AJ$62,B7), COUNTIFS($B$57:$AJ$57,B7), COUNTIFS($B$52:$AJ$52,B7), COUNTIFS($B$47:$AJ$47,B7), COUNTIFS($B$42:$AJ$42,B7), COUNTIFS($B$37:$AJ$37,B7), COUNTIFS($B$32:$AJ$32,B7), COUNTIFS($B$27:$AJ$27,B7), COUNTIFS($B$22:$AJ$22,B7), COUNTIFS($B$17:$AJ$17,B7), COUNTIFS($B$12:$AJ$12,B7), COUNTIFS($B$7:$AJ$7,B7))=1textNO
Cells with Data Validation
CellAllowCriteria
K77:O77List=Sheet3!$B$2:$B$66
K82:O82List=Sheet3!$B$2:$B$66
K72:O72List=Sheet3!$B$2:$B$66


Cell Formulas
RangeFormula
B2:B12B2=SUM(COUNTIFS(Sheet1!$B$82:$AJ$82,Sheet3!C2),COUNTIFS(Sheet1!$B$77:$AJ$77,Sheet3!C2), COUNTIFS(Sheet1!$B$72:$AJ$72,Sheet3!C2), COUNTIFS(Sheet1!$B$67:$AJ$67,Sheet3!C2), COUNTIFS(Sheet1!$B$62:$AJ$62,Sheet3!C2), COUNTIFS(Sheet1!$B$57:$AJ$57,Sheet3!C2), COUNTIFS(Sheet1!$B$52:$AJ$52,Sheet3!C2), COUNTIFS(Sheet1!$B$47:$AJ$47,Sheet3!C2), COUNTIFS(Sheet1!$B$42:$AJ$42,Sheet3!C2), COUNTIFS(Sheet1!$B$37:$AJ$37,Sheet3!C2), COUNTIFS(Sheet1!$B$32:$AJ$32,Sheet3!C2), COUNTIFS(Sheet1!$B$27:$AJ$27,Sheet3!C2), COUNTIFS(Sheet1!$B$22:$AJ$22,Sheet3!C2), COUNTIFS(Sheet1!$B$17:$AJ$17,Sheet3!C2), COUNTIFS(Sheet1!$B$12:$AJ$12,Sheet3!C2), COUNTIFS(Sheet1!$B$7:$AJ$7,Sheet3!C2))
C2:C12C2=CONCAT(TEXT(D2,"0000")," ",J2," ",K2," ",L2," ",Q2)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
2:2500Expression=$B2=0textNO
2:2500Expression=$B2=1textNO
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
How about
Fluff.xlsm
ABC
1SEATDONE?conflictID
2EVE/B5150-CTR A-0910010 LAW 1101 CTRB C-120
3 10018 BUS 2000 STL B-90
4 10036 BUS 2000 STL B-90
5 10037 BUS 2000 STL B-90
6 10044 LAW 1101 PMWA C-120
7 10050 MKT 3000 DMWB -
8 10051 MKT 3000 DMWA A-60
9 10052 LAW 1101 QTRB C-120
10 10053 BUS 2000 STL B-90
11 10066 BUS 2000 STL B-90
12 10074 LAW 1101 PMWA C-120
Data
Cell Formulas
RangeFormula
A2:A12A2=LET(x,WRAPROWS(TOCOL(CHOOSEROWS($K$70:$O$83,1,3,6,8,11,13),,1),2),FILTER(TAKE(x,,1),TAKE(x,,-1)=C2,""))
 
Upvote 0
How about
Fluff.xlsm
ABC
1SEATDONE?conflictID
2EVE/B5150-CTR A-0910010 LAW 1101 CTRB C-120
3 10018 BUS 2000 STL B-90
4 10036 BUS 2000 STL B-90
5 10037 BUS 2000 STL B-90
6 10044 LAW 1101 PMWA C-120
7 10050 MKT 3000 DMWB -
8 10051 MKT 3000 DMWA A-60
9 10052 LAW 1101 QTRB C-120
10 10053 BUS 2000 STL B-90
11 10066 BUS 2000 STL B-90
12 10074 LAW 1101 PMWA C-120
Data
Cell Formulas
RangeFormula
A2:A12A2=LET(x,WRAPROWS(TOCOL(CHOOSEROWS($K$70:$O$83,1,3,6,8,11,13),,1),2),FILTER(TAKE(x,,1),TAKE(x,,-1)=C2,""))

Could you please explain the formula that you are using. I have never heard of LET, WRAPROWS, Filter and Take. before.
 
Upvote 0
when I pasted it into my spreadsheet, no. But I am also thinking that I need to provide references to the other sheet where the source data is located. which is why I am trying to understand the formula's process.
 
Upvote 0
Oops, forgot to add the sheet name, it should be
Excel Formula:
=LET(x,WRAPROWS(TOCOL(CHOOSEROWS(Sheet1!$K$70:$O$83,1,3,6,8,11,13),,1),2),FILTER(TAKE(x,,1),TAKE(x,,-1)=C2,""))
 
Upvote 0

Forum statistics

Threads
1,223,262
Messages
6,171,080
Members
452,377
Latest member
bradfordsam

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