Help with multiple look ups

Tonyd789

Board Regular
Joined
Feb 6, 2011
Messages
89
Afternoon all

Here we go.......

I am building a spreadsheet at work for managing the amount of racking damage in the workplace. Racking damage is grade as red, amber and green, red meaning racking needs to be immediately offloaded, amber means it turns to red in 4 weeks then needs offloading and green just needs monitoring regularly.

I have the log side of the spreadsheet working no problem, but what i have also included is a birds eye view of the racking system draw with cells that i want to change to the colour of the damage logged with condition formatting.

No here where it gets confusing!
Our aisles are called XA, XB, XC etc etc all the way to XZ
and then our bays range from 01 to 86 eg XA01 XA02 XA03
Then our racking levels range from A to F, eg XA01A XA01B, XA01C, there are a further 2 numbers on the end but thats irrelevant.

So here the tricky bit, i thought about vlookup first for this once i had shortened the location down to the first 4 characters (XA01). However the vlookup will stop at the first XA01 it finds and return the colour value. Now that maybe a green.

What i need is the vlookup to supersede any greens it comes across with amber, and any amber with reds. I'm struggling with this to be fair.

I hope that makes sense!
 
Last edited:

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
If you gave a numeric value to your "green", "amber" & "red" you could use MIN/MAX functions.
 
Upvote 0
It's ok i have figured it ok using an array formula.

=MAX(IF($CI$2:$CI$21=D51,$CJ$2:$CJ$21))

However i want to add to the formula to return also the value of the cell 2 rows to the right of where its referencing from! any ideas anyone?
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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