Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15
Default Validation list with non blanks from different column

I have a spreadsheet containing a worksheet (Applications) that has a
reference number E1,E2,E3 etc in column A in cells A3:A102. Cells C3:1C102
will contain a name but may not.

I want to create a Validation ldrop down list on another worksheet (Menu)
that only contains the reference number A3:A102 if there is a value in the
cell C3:C102.

Is there anyway of doing this?

At the moment my validation list contains blanks, as i have put an if
formula in the A3:A103 range to put blank if the C3:C102 cell is blank.




  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Validation list with non blanks from different column

First set an AutoFilter on column C to hide the blanks (rows without names).
Then copy column A to you destination sheet and use it for validation.
--
Gary''s Student - gsnu200850


"Shaggyjh" wrote:

I have a spreadsheet containing a worksheet (Applications) that has a
reference number E1,E2,E3 etc in column A in cells A3:A102. Cells C3:1C102
will contain a name but may not.

I want to create a Validation ldrop down list on another worksheet (Menu)
that only contains the reference number A3:A102 if there is a value in the
cell C3:C102.

Is there anyway of doing this?

At the moment my validation list contains blanks, as i have put an if
formula in the A3:A103 range to put blank if the C3:C102 cell is blank.




  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15
Default Validation list with non blanks from different column

I think i can write the macro to do the autofilter but how do i get the
resulting list to copy to my destination sheet?

Many thanks


"Gary''s Student" wrote:

First set an AutoFilter on column C to hide the blanks (rows without names).
Then copy column A to you destination sheet and use it for validation.
--
Gary''s Student - gsnu200850


"Shaggyjh" wrote:

I have a spreadsheet containing a worksheet (Applications) that has a
reference number E1,E2,E3 etc in column A in cells A3:A102. Cells C3:1C102
will contain a name but may not.

I want to create a Validation ldrop down list on another worksheet (Menu)
that only contains the reference number A3:A102 if there is a value in the
cell C3:C102.

Is there anyway of doing this?

At the moment my validation list contains blanks, as i have put an if
formula in the A3:A103 range to put blank if the C3:C102 cell is blank.




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Validation list with non blanks from different column

Here is some quick code from the Recorder:

Sub Macro2()
'
' Macro2 Macro
' Macro recorded 5/1/2009 by James Ravenswood
'

'
Range("C1").Select
Selection.AutoFilter
Selection.AutoFilter Field:=3, Criteria1:="<"
Range("A1:A27").Select
Selection.Copy
Sheets("Sheet2").Select
ActiveSheet.Paste
End Sub

I would modify this by replacing A27 with something REALLY bid, like A10000.
Also after the Sheets("Sheet2").Select, put something like:

Range("B9").Select

to set the destination cell.
--
Gary''s Student - gsnu200850


"Shaggyjh" wrote:

I think i can write the macro to do the autofilter but how do i get the
resulting list to copy to my destination sheet?

Many thanks


"Gary''s Student" wrote:

First set an AutoFilter on column C to hide the blanks (rows without names).
Then copy column A to you destination sheet and use it for validation.
--
Gary''s Student - gsnu200850


"Shaggyjh" wrote:

I have a spreadsheet containing a worksheet (Applications) that has a
reference number E1,E2,E3 etc in column A in cells A3:A102. Cells C3:1C102
will contain a name but may not.

I want to create a Validation ldrop down list on another worksheet (Menu)
that only contains the reference number A3:A102 if there is a value in the
cell C3:C102.

Is there anyway of doing this?

At the moment my validation list contains blanks, as i have put an if
formula in the A3:A103 range to put blank if the C3:C102 cell is blank.




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Validation List with blanks Vinod[_2_] Excel Discussion (Misc queries) 1 July 4th 08 05:47 PM
Blanks Data Validation List FARAZ QURESHI Excel Discussion (Misc queries) 4 March 13th 08 12:40 PM
Validation list with blanks at the bottom Andrew Excel Discussion (Misc queries) 4 December 19th 06 05:41 PM
Data Validation and Blanks in List GoneRural Excel Worksheet Functions 1 October 26th 05 05:03 PM
validation list blanks Wes Excel Worksheet Functions 2 March 6th 05 08:01 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"