Lookup Issues

djjamesp

New Member
Joined
Oct 21, 2024
Messages
8
Office Version
  1. 365
Platform
  1. Windows
So, quite a complex one that's consumed my life for a week and I still cannot get it working..

I have a spreadsheet which is the data from audits completed, it's a substantial size (goes up to column KP). Each row has a unique reference / identifier number. Each question has a possible outcome of yes, no, N/A or a failure code.

The failure codes are contained in another table - these codes could appear in virtually any one of the cells from "R" to "KP", there are 71 codes.

What I'm trying to achieve is to build a kind of dashboard, where the unique reference number would list the failure codes and if the codes are not found (as there are no failures) it would say Pass.

Is this possible to have a lookup of 71 codes? I can't seem to get xlookup to work over such a range, am I doing anything wrong?
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Just a guess to get started (it would help if you showed a sample layout and your desired results) ...

JKLMNOPQRSTUVWXYZAAABAC
1FailCodesIDQ1Q2Q3Q4Q5Q6etc etc
2AData missing111YesYesNoNoYesn/a
3BInvalid data field222NoNon/aCDYes
4CToo big333YesYesNon/aYesNo
5DOut of stock444YesBCENon/a
6EToo soft
7
8Results
9222Too big, Out of stock
10
Sheet1
Cell Formulas
RangeFormula
K9K9=LET(t,TEXTJOIN(", ",,XLOOKUP(XLOOKUP(J9,Q$2:Q$5,R$2:AC$5),J$2:J$6,K$2:K$6,"")),IF(LEN(t),t,"Pass"))
 
Upvote 0
Thanks for the reply - I will have a play with the syntax in that formula.

I've attached a (very scaled down) version of what I'm trying to achieve, it's difficult as I cannot post the originals as they contain sensitive data. Each of the purple headings is a separate sheet within the workbook, I hope this makes sense

Thanks in advance

James
 

Attachments

  • Excel Capture.PNG
    Excel Capture.PNG
    135.8 KB · Views: 7
Upvote 0
The best way to post a screenshot is using the XL2BB add-in. Then we don't need to re-create your layout from a picture.

In which columns will the error codes appear? You originally said:
these codes could appear in virtually any one of the cells from "R" to "KP"
Instead, can we rely on them appearing in every second column P, R, T ... as shown in Post#3?

Is the lookup table with the values relevant to the question?

And how many rows of data will there be? You say you have >200 columns, so a formula approach may be computation heavy if there are too many rows.
 
Upvote 0

Forum statistics

Threads
1,225,626
Messages
6,186,087
Members
453,336
Latest member
Excelnoob223

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