Limiting a Drop Down List (Conditional Formatting)

Aussie Chris

New Member
Joined
Jul 4, 2016
Messages
3
Hi,

I have a table (simplified below) where I am tracking shipping containers.

Id like to create a drop down list (using conditional formatting) of container numbers where the status is not set to DELIVERED on a separate sheet. The idea being that I can create an auto filling container weight declaration from the data in the appropriate rows of the table. The biggest problem I have is that the table currently has over 200 records which makes scrolling the drop down list very tedious. What I'd like to do is exclude any containers from that drop down list where the status is set to DELIVERED. This would reduce the size of the drop down list by more than 90% making it a little more manageable.

The only solution I have come up with thus far is to base the drop down list off a query that filters out the DELIVERED containers but this requires the need to refresh query each time new records are added to the table.

Is it possible to simplify this to remove the need for a query and without resorting to VB?


Container NumberStatus
AA11DELIVERED
BB22DELIVERED
CC33DELIVERED
DD44LOADED
EE55EMPTY
FF66LOADED
GG77EMPTY

<tbody>
</tbody>
 

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.
Hi, welcome to the board :)

(I think you may have some terms mixed up there, Conditional Formatting is only used to change the format - color/font/etc) of a cell)

Anyway, I think 1 way around this would be to use a helper column...
A​
B​
C​
1​
Container NumberStatusHelper
2​
AA11DELIVERED
0​
3​
BB22DELIVERED
0​
4​
CC33DELIVERED
0​
5​
DD44LOADED
1​
6​
EE55EMPTY
2​
7​
FF66LOADED
3​
8​
GG77EMPTY
4​
C2=COUNTIF($B$2:B2,"<>delivered")
copied down

Then to do the extract...
F​
G​
1​
Container NumberStatus
2​
DD44LOADED
3​
EE55EMPTY
4​
FF66LOADED
5​
GG77EMPTY
F2=IFERROR(INDEX(A:A,MATCH(ROW(1:1),$C:$C,0)),"")
copied down and across as needed
 
Upvote 0
You can do this without helper column. Put the CSE formula in D1 and drag down


Unknown
ABCD
1Container NumberStatusDD44
2AA11DELIVEREDEE55
3BB22DELIVEREDFF66
4CC33DELIVEREDGG77
5DD44LOADED
6EE55EMPTY
7FF66LOADED
8GG77EMPTY
9
10
11
12
13
Sheet1
Cell Formulas
RangeFormula
D1{=INDEX(A:A, SMALL(IF($B$2:$B$100<>"delivered",ROW($B$2:$B$100),999),ROW(A1)), 1)&""}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,386
Messages
6,124,628
Members
449,176
Latest member
Dazjlbb

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