XLOOKUP based on conditional IDs

Alotheal

New Member
Joined
Sep 2, 2022
Messages
6
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I have a table with 6 rows, it looks something like this.
Job StageJob DescriptionJob StatusJob SequenceJob IDCar ID
Stage 1Fill GasIn Work56Job1233
Stage 1Fill GasComplete31Job1232
Stage 3Fix DoorNot Started35Job2342
Stage 2Fix DoorComplete12Job2341
Stage 5PaintNeed Inspection54Job8761

I have a database of work instructions (the table above), data above is fabricated but the essence is present. Essentially I want my table on another page to act like this.
"Populate Sequence"
<Insert Job ID>
"Populate Description""Populate Status""Populate Todays Date" (Possible?)

Each sheet will be a different "Car ID" I have to manage 3 different ones. Think serial numbers, different entities, similar but NOT same build.
So basically,
1. I'd type in the Job ID
2. Based on what excel sheet I'm on it will look for the ID and populate the rest of the data conditional to the Car ID.
ex. I am on sheet two or "Car ID 2". I lookup Job123, multiple builds have the same job but the information is different. So I want it to say if it's not car ID 2 keep looking, if it is stop.

I will continue to mess around with this. What I have currently created is an XLookup, I just don't know how to bounce the Job ID off the Car ID to return the correct row. My first thought was an IF="2", XLookup yeah yeah yeah, (THIS IS WHERE I GET LOST, instead of returning an error I want it to keep searching.)

The data I input will have an output, it is clean.

Ideas and solutions highly welcomes,
Thanks guys!
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Xlookup has an argument If not found. Instead of If =2, you put xlookup(''$jobID$cell, jobIDcolumn, currentColumn, ifnotfounddosomething). But if you want to return multiple, you would use something like Filter
 
Upvote 0

Forum statistics

Threads
1,215,545
Messages
6,125,448
Members
449,227
Latest member
Gina V

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