Data Validation (Indirect) Remove Blank Cells

djossh

Board Regular
Joined
Jul 27, 2009
Messages
243
I have a Data Validation on "R1" (Using a Name range)

i also have a Data Validation on "M3" (using "=Indirect($R$1)")

My Problem is there are Blank Cells in some of the range..
ie. Column A:D (A=Name1, B=Name2, C=Name3, D=Name4)
Column A Range is A1:A20 (But my list data is up to A1:A12 Only so from row A13 to A20 is Blank)
Column B Range is B1:B20(But my list data is up to B1:B17 Only so from row B18 to B20 is Blank)
Column C Range is C1:C20 (But my list data is up to C1:C8 Only so from row C9 to C20 is Blank)
Column D Range is D1:D20 (list is coplete form D1:D20 so, no Blank fields, this one is Ok)


Are there any VBA code or Macro that will force my Data Validation in "M3" NOT to show Blank cells..Thanks
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Your lists are variable length lists of data, that link covers it.
 
Upvote 0

Forum statistics

Threads
1,224,608
Messages
6,179,872
Members
452,949
Latest member
Dupuhini

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