Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 13
Default Validation (list) that can be sorted

I am using a validation option list in a column (2 different listing
options). The rows need to be sorted but when that happens, the correct list
options doesn't match anymore. How can I use a list selection in a cell and
be able to sort the spreadsheet as well? Thank you
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,069
Default Validation (list) that can be sorted

If I understand correctly, this should help...

Put the lists for your data validations on another sheet. For each list,
select the cells to include and assign a range name to that selection. To
create the cell validation dropdowns, select List in the Data Validation
dialog and enter =YourRangeName in the Source box. For example, if the
validation is for the months of the year, enter them on another sheet, select
all 12 cells, and in the Name Box assign the name Months. When adding data
validation for months on the main sheet, select List in the Allow options and
enter =Months in the Source box. Wherever the cell is moved, it will always
use the range Months for its validation list.

Hope this helps,

Hutch

"hmaze" wrote:

I am using a validation option list in a column (2 different listing
options). The rows need to be sorted but when that happens, the correct list
options doesn't match anymore. How can I use a list selection in a cell and
be able to sort the spreadsheet as well? Thank you

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 13
Default Validation (list) that can be sorted

Hi Tom - It did not work for me. Example: I use rows 1-10 for one list (A)
and 11-20 for the other (B) - list is on a different sheet. When I sort the
spreadsheet, the list options are still right 1-10 and 11-20, however row 1
got resorted to row 15 and is giving me option B now, while it should give
list option A.

"Tom Hutchins" wrote:

If I understand correctly, this should help...

Put the lists for your data validations on another sheet. For each list,
select the cells to include and assign a range name to that selection. To
create the cell validation dropdowns, select List in the Data Validation
dialog and enter =YourRangeName in the Source box. For example, if the
validation is for the months of the year, enter them on another sheet, select
all 12 cells, and in the Name Box assign the name Months. When adding data
validation for months on the main sheet, select List in the Allow options and
enter =Months in the Source box. Wherever the cell is moved, it will always
use the range Months for its validation list.

Hope this helps,

Hutch

"hmaze" wrote:

I am using a validation option list in a column (2 different listing
options). The rows need to be sorted but when that happens, the correct list
options doesn't match anymore. How can I use a list selection in a cell and
be able to sort the spreadsheet as well? Thank you

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,069
Default Validation (list) that can be sorted

That's why I wrote "If I understand correctly..." You have a different
problem than I thought. I am unaware of a work-around for sorting validation.
Cell borders and conditionally formatted colors also do not sort with the
data. Hopefully, one of the MVP's knows a way, and we can both learn.

Sorry I couldn't be of more help,

Hutch

"hmaze" wrote:

Hi Tom - It did not work for me. Example: I use rows 1-10 for one list (A)
and 11-20 for the other (B) - list is on a different sheet. When I sort the
spreadsheet, the list options are still right 1-10 and 11-20, however row 1
got resorted to row 15 and is giving me option B now, while it should give
list option A.

"Tom Hutchins" wrote:

If I understand correctly, this should help...

Put the lists for your data validations on another sheet. For each list,
select the cells to include and assign a range name to that selection. To
create the cell validation dropdowns, select List in the Data Validation
dialog and enter =YourRangeName in the Source box. For example, if the
validation is for the months of the year, enter them on another sheet, select
all 12 cells, and in the Name Box assign the name Months. When adding data
validation for months on the main sheet, select List in the Allow options and
enter =Months in the Source box. Wherever the cell is moved, it will always
use the range Months for its validation list.

Hope this helps,

Hutch

"hmaze" wrote:

I am using a validation option list in a column (2 different listing
options). The rows need to be sorted but when that happens, the correct list
options doesn't match anymore. How can I use a list selection in a cell and
be able to sort the spreadsheet as well? Thank you

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 13
Default Validation (list) that can be sorted

Tom - NP, thank you for looking at my issue

"Tom Hutchins" wrote:

That's why I wrote "If I understand correctly..." You have a different
problem than I thought. I am unaware of a work-around for sorting validation.
Cell borders and conditionally formatted colors also do not sort with the
data. Hopefully, one of the MVP's knows a way, and we can both learn.

Sorry I couldn't be of more help,

Hutch

"hmaze" wrote:

Hi Tom - It did not work for me. Example: I use rows 1-10 for one list (A)
and 11-20 for the other (B) - list is on a different sheet. When I sort the
spreadsheet, the list options are still right 1-10 and 11-20, however row 1
got resorted to row 15 and is giving me option B now, while it should give
list option A.

"Tom Hutchins" wrote:

If I understand correctly, this should help...

Put the lists for your data validations on another sheet. For each list,
select the cells to include and assign a range name to that selection. To
create the cell validation dropdowns, select List in the Data Validation
dialog and enter =YourRangeName in the Source box. For example, if the
validation is for the months of the year, enter them on another sheet, select
all 12 cells, and in the Name Box assign the name Months. When adding data
validation for months on the main sheet, select List in the Allow options and
enter =Months in the Source box. Wherever the cell is moved, it will always
use the range Months for its validation list.

Hope this helps,

Hutch

"hmaze" wrote:

I am using a validation option list in a column (2 different listing
options). The rows need to be sorted but when that happens, the correct list
options doesn't match anymore. How can I use a list selection in a cell and
be able to sort the spreadsheet as well? Thank you

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
lookup in non sorted list Ron Excel Worksheet Functions 2 February 15th 08 01:28 PM
Dependant Data Validation not sorted Sara Hopkins Excel Worksheet Functions 3 September 26th 06 09:25 AM
Sorted list G Chartrand Excel Discussion (Misc queries) 2 April 28th 06 05:07 PM
Need sorted validation list [email protected] Excel Worksheet Functions 0 September 23rd 05 06:15 PM
Validation from Database (not sorted) faico Excel Worksheet Functions 1 September 17th 05 12:48 AM


All times are GMT +1. The time now is 04:55 PM.

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

About Us

"It's about Microsoft Excel"