Remove blank cells from data validation drop down box


"Excel VBA Help"

 


Play Friv Now - Play Friv Games
Go Back   The Code Cage Forums > Microsoft Topics > Microsoft Excel Forum
Our Info Pages:-
The Code Cage - Microsoft Office help

Notices

Microsoft Excel Forum Members Post questions in this forum if they are related to using Microsoft Excel, this includes Worksheet Functions, Excel VBA Programming, Simple Macro Code & Charting, Excel formula etc.

New Reply
Thread Tools Rate Thread Display Modes
  #1  
Unread 5th December 2009, 00:39
Jay's Avatar
Jay
Newsgroup Contributor
 
Posts: n/a
Posts Per Day: 0
My Top Tip Count:
Default Remove blank cells from data validation drop down box
     Excel: Functions   


First, I've checked out Debra Dalgeish's contextures web site and found some
really *GREAT* info there (thank you!).

But I'm still having issues with the drop down function using data validation.

I have drop down boxes that rely on the value of the cells to the left. I've
got it functional with a work around, but I'd like to make this simpler.

Here's what I have set up:
This is used for a single elimiation tournament with 16 teams.

Cells A1, A3, A5, A7, A9...A31 have static values in them (A2, A4...A30 are
blank)

I use a drop down validation box that has the values of A1 and A3 in it for
cell B2, same for A5 and A7 for B6 all the way to B30 (for A29 and A31)

I then move over to cell C4 (using the values from B2 and B6) to C28 (B26/B30)

See where I'm going here?

The users pick from the drop down boxes, which propagates over to the next
column until there is only one value (which ends up in E16).

The drop-down boxes reference other cells that I've hidden at the bottom of
the sheet, this list does not have any spaces between the values (16 in
column A, 8 in Column B, 4 in C, 2 in D). These are simple statements that
refrence the non-blank cells (A20's value is "=$A$1", B20 is "=$B$2, for a
few examples)

The data validation for B2 is a list with a source of A20 and A21.

What I'd really like to do is set the validation list in B2 to be A1 and A3
without having the user see the blank cell that's in A2 because it gets messy
when you get out to E16 with values in the first and last positions with 30
blank spaces in between.

What is comes down to is this:

1) Is there an easier way to do what I've done with calls to other cells for
the drop down list?
2) Is using the drop down list in Data Validation the best way to do this?

I'm using 2007, but I also tried to find a better solution when I had 2003.

Thanks!

The Code Cage Advertisment
Advertisement
  #2  
Unread 5th December 2009, 05:54
T. Valko's Avatar
T. Valko
Newsgroup Contributor
 
Posts: n/a
Posts Per Day: 0
My Top Tip Count:
Default Re: Remove blank cells from data validation drop down box

------ Register to get rid of these "In Post" ads! ------


Warning

Warning



Sorry but you need to register for FREE to see the rest of these posts. Please click HERE to register.

We only allow guests to see the first post of every thread to keep valuable resources for our members.






  #3  
Unread 8th December 2009, 16:52
Jay's Avatar
Jay
Newsgroup Contributor
 
Posts: n/a
Posts Per Day: 0
My Top Tip Count:
Default Re: Remove blank cells from data validation drop down box

------ Register to get rid of these "In Post" ads! ------


Warning

Warning



Sorry but you need to register for FREE to see the rest of these posts. Please click HERE to register.

We only allow guests to see the first post of every thread to keep valuable resources for our members.






The Code Cage Advertisment
Advertisement
  #4  
Unread 8th December 2009, 17:19
T. Valko's Avatar
T. Valko
Newsgroup Contributor
 
Posts: n/a
Posts Per Day: 0
My Top Tip Count:
Default Re: Remove blank cells from data validation drop down box

------ Register to get rid of these "In Post" ads! ------


Warning

Warning



Sorry but you need to register for FREE to see the rest of these posts. Please click HERE to register.

We only allow guests to see the first post of every thread to keep valuable resources for our members.






The Code Cage Advertisment
Advertisement
New Reply
The Code Cage at Facebookhe Code Cage at Twitter


Tags
blank, box, cells, data, drop, remove, validation

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

The Code Cage Affilliates



http://www.thecodecage.com/forumz tested by McAfee Security http://www.thecodecage.com/forumz tested by McAfee Security

All times are GMT +1. The time now is 11:08.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Template-Modifications by TMS
No part of this board, functionality or creatives may be copied or reproduced either in part or full without the express permission of The Code Cage Team.
Copyright ©2008 - , Simon lloyd.
We are not associated with nor employed by Microsoft in any way, we simply provide resources!
All MS office icons are registered trademarks of the application they represent and are used with permission from Microsoft
UA-8135493-1
Cultural Forum | Study at Malaysian University