Remove blanks with formulas in from my drop down menu

Peter Davison

Active Member
Joined
Jun 4, 2020
Messages
435
Office Version
  1. 365
Platform
  1. Windows
Hi I have a list of cells in my drop down menu on one sheet. (My drop down menu selection box is on a separate sheet) All cells have a formula in which populates some cells with a result and leaves some blank. My drop down menu has all the cells showing even the blanks. Is there a way I can remove blanks from the drop down list?
I've tried offset but it thinks the blank cells with formulas in are a non blank cell.
Any help would be great.
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Hi Dear,

Try the following, please:
  1. select the range/column where you create your drop list from
  2. give the selected range a name by simply typing in the Name Box (e.g. =Products)
  3. from the Formulas ribbon, select Name Manager
  4. Edit the created range, and type-in the following formula: =OFFSET(XXX!$B$2,0,0,COUNTA(XXX!$B:$B)-1,1) [replace XXX by the sheet name, and B by the range that has blanks]
  5. Go to Data ribbon, selection Data Validation, select List and in the formula section just refer to the created name (e.g. =Products)
Best Regards
M. Yusuf
 
Upvote 0

Forum statistics

Threads
1,214,872
Messages
6,122,026
Members
449,061
Latest member
TheRealJoaquin

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