Removing "" from the Dropdown

Xiggie

New Member
Joined
Feb 23, 2022
Messages
12
Office Version
  1. 2013
Platform
  1. Windows
Hi!

I am trying to create a dropdown from H23:H27.

The plan was to exclude values next to 0 from the dropdown, and it worked, to an extent - but now I cannot create a condition to adjust the length of the list to not include "" cells.

My dropdown now looks like this, as it considers my formula a value.

1646574069483.png


Any suggestions would be welcome!!


Mercenaries Ledger.xlsm
BDEFGH
21Group 11
22
231Value 155,555.56 ₽Value 1
241Value 255,555.56 ₽Value 2
251Value 455,555.56 ₽Value 4
261Value 355,555.56 ₽Value 3
270Value 155,555.56 ₽ 
Loot
Cell Formulas
RangeFormula
B23:B26B23=IF(D23="Наемник", 0, 1)
B27B27=IF(D27="Value 1", 0, 1)
E23E23='Shared Expenses'!$J$62
E24E24='Shared Expenses'!$K$62
E25E25='Shared Expenses'!$L$62
E26E26='Shared Expenses'!$M$62
E27E27='Shared Expenses'!$N$62
H23:H27H23=IFERROR(INDEX(D$23:D$27,SMALL(IF(($B$23:$B$27=$H$21),ROW($B$23:$B$27)-ROW($B$23)+1),ROWS(H$23:H23))),"")
Press CTRL+SHIFT+ENTER to enter array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D27Expression=AND(NOT(ISBLANK(C$4)),ISBLANK(D$4))textNO
D26Expression=AND(NOT(ISBLANK(C$4)),ISBLANK(D$4))textNO
D25Expression=AND(NOT(ISBLANK(C$4)),ISBLANK(D$4))textNO
D24Expression=AND(NOT(ISBLANK(C$4)),ISBLANK(D$4))textNO
D23Expression=AND(NOT(ISBLANK(C$4)),ISBLANK(D$4))textNO
Cells with Data Validation
CellAllowCriteria
D23:D27List=Mercenaries!$A$2:$A$1048576
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Your list formula is

Excel Formula:
=Mercenaries!$A$2:$A$1048576

and yet you do not show us what is in that column. Also, specifying over a million rows for a list is usually not a good idea.

Lacking the necessary information I would guess this might work for your list formula. This will include only non-blank cells regardless of whether they contain a formula:

Excel Formula:
=OFFSET(Mercenaries!$A$2,0,0,COUNTIF(Mercenaries!$A:$A,"*?"))
 
Upvote 0
Hello and thank you for the reply!

I shall try that!

For context, I am working on a calculator for a game to calculate and distribute the income between guild members.
Mercenaries is a list of participants. Now, D23:D27 is a group (a group is always 5 members). The values in the group (D23:D27) are picked based on group participants (5 participants from the list).

I am trying to make a new drop down, which would only include the participants of the group.
 
Upvote 0
Don't see how I can edit my previous post, but I am looking for a way to work with H23:H27 without touching the original range $A$2:$A$1048576
I need a dropdown for a different table:

Mercenaries Ledger.xlsm
F
7Ing1more
83imA
93imA
10Komar174
11Serg710
Shared Expenses
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F44:F56,F13:F19,F7:F11Expression=AND(NOT(ISBLANK($B7)),ISBLANK($F7))textNO
F44:F56,F13:F19,F7:F11Expression=AND(ISERROR(MATCH(F7,$J$5:$AM$5,0)),NOT(ISBLANK(B7)))textNO
Cells with Data Validation
CellAllowCriteria
F7:F11List=Loot!$H$23:$H$27
 
Upvote 0
this is hopfully the same idea as you. if so hopes the helps.

Book25667.xlsx
ABCDEFGHIJ
1Merc groupnameRankpayment NumberColumn1Column6Column1helper
2Group 1Zubin Varla111Group 1Group 1
3Group 1Will Attenborough211Group 2
4Group 1Tamer Burjaq311Group 3
5Group 1Steve Toussaint411Group 4
6Group 1Simon Lennon511Group 5
7Group 2Shalom Brune-Franklin62#N/AGroup 6
8Group 2Sean Ward72#N/AGroup 7
9Group 2Sean Sagar82#N/AGroup 8
10Group 2Rolan Bell92#N/AGroup 9
11Group 2Pranesh Maharaj102#N/AGroup 10
12Group 3Patrick Sithole113#N/A 
13Group 3Patrick McNamee123#N/A 
14Group 3Olly Rix133#N/A 
15Group 3Nico Mirallegro143#N/A 
16Group 3Nick Preston153#N/A 
17Group 4Nebras Jamali164#N/A 
18Group 4Nabil Elouahabi174#N/A 
19Group 4Michelle Keegan184#N/A 
20Group 4Matthew McNulty194#N/A 
21Group 4Mark Armstrong204#N/A 
22Group 5Luke Pasqualino215#N/A 
23Group 5Lawrence Walker225#N/A 
24Group 5Lacey Turner235#N/A 
25Group 5Kirsty Averton245#N/A 
26Group 5Kaine Zajaz255#N/A 
27Group 6Josh Bowman266#N/A 
28Group 6Jonas Khan276#N/A 
29Group 6John Michie286#N/A 
30Group 6Jed O'Hagan296#N/A 
31Group 6Jack Parry Jones306#N/A 
32Group 7Iwan Rheon317#N/A 
33Group 7Houston Skinner327#N/A 
34Group 7Harki Bhambra337#N/A 
35Group 7Hamza Jeetooa347#N/A 
36Group 7Fiona Skinner357#N/A 
37Group 8Dwane Walcott368#N/A 
38Group 8Dominic Jephcott378#N/A 
39Group 8Danny Hatchard388#N/A 
40Group 8Charley Palmer Rothwell398#N/A 
41Group 8Ben Batt408#N/A 
42Group 9Ben Aldridge419#N/A 
43Group 9Ashley Houston429#N/A 
44Group 9Arinze Kene439#N/A 
45Group 9Anthony Oseyemi449#N/A 
46Group 9Amy-Leigh Hickman459#N/A 
47Group 10Ade Oyefeso4610#N/A 
48Group 10Adam Astill4710#N/A 
Sheet1
Cell Formulas
RangeFormula
E2:E48E2=ROW(B2)-1
F2:F48F2=INT(([@Number]-1)/5+1)
G2:G48G2=MATCH([@[Merc group]],Table48[Column1],0)
A2:A48A2=TEXTJOIN(" ",TRUE,"Group",[@Column1])
J2:J48J2=IFERROR(INDEX(Table3044[Merc group],MATCH(0,INDEX(COUNTIF($J$1:J1,Table3044[Merc group]),),0)),"")
Cells with Data Validation
CellAllowCriteria
H2List=OFFSET($J$2,,,COUNTIF($J$2:$J$48,"?*"))
 
Upvote 0

Forum statistics

Threads
1,215,046
Messages
6,122,852
Members
449,096
Latest member
Erald

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