Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
barnabel
 
Posts: n/a
Default Creating custom list with a comma in it

I need to sort a list of cities. I know how to creat a custom list however
there seems to be a bug in it. I am hoping somebody knows how to work around
this

Creating this list is simple:

CHICAGO
BALTIMORE
PHILADELPHIA
DALLAS
WASHINGTON

The problem comes when the same city is in multiple states so that the cell
actually says:
COLUMBUS, OH
COLUMBUS, GA
PORTLAND, OR
PORTLAND, ME

because internally the item separator is a comma, the custom list changes
these entries to:
COLUMBUS
OH
COLUMBUS
GA
PORTLAND
OR
PORTLAND
ME

Obviously when you do a data sort it doesn't find any of these values. I
tried creating the list programatically using the addCustomList but it did
the same thing. I've run out of things to try.

Any help would be appreciated.

Peter Richardson
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

I tried typing this list into a column in a worksheet.
COLUMBUS, OH
COLUMBUS, GA
PORTLAND, OR
PORTLAND, ME

Then I selected my range of cells
the I did tools|options|custom lists tab
and imported from the worksheet.

It seemed to work better than typing them in the dialog.



barnabel wrote:

I need to sort a list of cities. I know how to creat a custom list however
there seems to be a bug in it. I am hoping somebody knows how to work around
this

Creating this list is simple:

CHICAGO
BALTIMORE
PHILADELPHIA
DALLAS
WASHINGTON

The problem comes when the same city is in multiple states so that the cell
actually says:
COLUMBUS, OH
COLUMBUS, GA
PORTLAND, OR
PORTLAND, ME

because internally the item separator is a comma, the custom list changes
these entries to:
COLUMBUS
OH
COLUMBUS
GA
PORTLAND
OR
PORTLAND
ME

Obviously when you do a data sort it doesn't find any of these values. I
tried creating the list programatically using the addCustomList but it did
the same thing. I've run out of things to try.

Any help would be appreciated.

Peter Richardson


--

Dave Peterson
  #3   Report Post  
barnabel
 
Posts: n/a
Default

Did you actually try to use it in a sort? It looks ok in the Custom List
box. But the values don't match when trying to sort.



"Dave Peterson" wrote:

I tried typing this list into a column in a worksheet.
COLUMBUS, OH
COLUMBUS, GA
PORTLAND, OR
PORTLAND, ME

Then I selected my range of cells
the I did tools|options|custom lists tab
and imported from the worksheet.

It seemed to work better than typing them in the dialog.



barnabel wrote:

I need to sort a list of cities. I know how to creat a custom list however
there seems to be a bug in it. I am hoping somebody knows how to work around
this

Creating this list is simple:

CHICAGO
BALTIMORE
PHILADELPHIA
DALLAS
WASHINGTON

The problem comes when the same city is in multiple states so that the cell
actually says:
COLUMBUS, OH
COLUMBUS, GA
PORTLAND, OR
PORTLAND, ME

because internally the item separator is a comma, the custom list changes
these entries to:
COLUMBUS
OH
COLUMBUS
GA
PORTLAND
OR
PORTLAND
ME

Obviously when you do a data sort it doesn't find any of these values. I
tried creating the list programatically using the addCustomList but it did
the same thing. I've run out of things to try.

Any help would be appreciated.

Peter Richardson


--

Dave Peterson

  #4   Report Post  
Dave Peterson
 
Posts: n/a
Default

Yes, I did try a sort.

I think you missed a step in your sort.

Select your range
Data|Sort|Options button
specify your custom sort order.

But I did have to add that custom list via a range. If I typed them into the
dialog, then I had trouble.

barnabel wrote:

Did you actually try to use it in a sort? It looks ok in the Custom List
box. But the values don't match when trying to sort.

"Dave Peterson" wrote:

I tried typing this list into a column in a worksheet.
COLUMBUS, OH
COLUMBUS, GA
PORTLAND, OR
PORTLAND, ME

Then I selected my range of cells
the I did tools|options|custom lists tab
and imported from the worksheet.

It seemed to work better than typing them in the dialog.



barnabel wrote:

I need to sort a list of cities. I know how to creat a custom list however
there seems to be a bug in it. I am hoping somebody knows how to work around
this

Creating this list is simple:

CHICAGO
BALTIMORE
PHILADELPHIA
DALLAS
WASHINGTON

The problem comes when the same city is in multiple states so that the cell
actually says:
COLUMBUS, OH
COLUMBUS, GA
PORTLAND, OR
PORTLAND, ME

because internally the item separator is a comma, the custom list changes
these entries to:
COLUMBUS
OH
COLUMBUS
GA
PORTLAND
OR
PORTLAND
ME

Obviously when you do a data sort it doesn't find any of these values. I
tried creating the list programatically using the addCustomList but it did
the same thing. I've run out of things to try.

Any help would be appreciated.

Peter Richardson


--

Dave Peterson


--

Dave Peterson
  #5   Report Post  
barnabel
 
Posts: n/a
Default

Totally awesome!

The trick is to reorder the city names in the list before importing them
into the custom list. I had imported the list in alphabetic order and then
tried to move them to the order I wanted them. That killed it. However if
the city list is in the right order when importing then the sort works
perfectly.


"Dave Peterson" wrote:

Yes, I did try a sort.

I think you missed a step in your sort.

Select your range
Data|Sort|Options button
specify your custom sort order.

But I did have to add that custom list via a range. If I typed them into the
dialog, then I had trouble.

barnabel wrote:

Did you actually try to use it in a sort? It looks ok in the Custom List
box. But the values don't match when trying to sort.

"Dave Peterson" wrote:

I tried typing this list into a column in a worksheet.
COLUMBUS, OH
COLUMBUS, GA
PORTLAND, OR
PORTLAND, ME

Then I selected my range of cells
the I did tools|options|custom lists tab
and imported from the worksheet.

It seemed to work better than typing them in the dialog.



barnabel wrote:

I need to sort a list of cities. I know how to creat a custom list however
there seems to be a bug in it. I am hoping somebody knows how to work around
this

Creating this list is simple:

CHICAGO
BALTIMORE
PHILADELPHIA
DALLAS
WASHINGTON

The problem comes when the same city is in multiple states so that the cell
actually says:
COLUMBUS, OH
COLUMBUS, GA
PORTLAND, OR
PORTLAND, ME

because internally the item separator is a comma, the custom list changes
these entries to:
COLUMBUS
OH
COLUMBUS
GA
PORTLAND
OR
PORTLAND
ME

Obviously when you do a data sort it doesn't find any of these values. I
tried creating the list programatically using the addCustomList but it did
the same thing. I've run out of things to try.

Any help would be appreciated.

Peter Richardson

--

Dave Peterson


--

Dave Peterson



  #6   Report Post  
Dave Peterson
 
Posts: n/a
Default

Glad you got it working!

barnabel wrote:

Totally awesome!

The trick is to reorder the city names in the list before importing them
into the custom list. I had imported the list in alphabetic order and then
tried to move them to the order I wanted them. That killed it. However if
the city list is in the right order when importing then the sort works
perfectly.

"Dave Peterson" wrote:

Yes, I did try a sort.

I think you missed a step in your sort.

Select your range
Data|Sort|Options button
specify your custom sort order.

But I did have to add that custom list via a range. If I typed them into the
dialog, then I had trouble.

barnabel wrote:

Did you actually try to use it in a sort? It looks ok in the Custom List
box. But the values don't match when trying to sort.

"Dave Peterson" wrote:

I tried typing this list into a column in a worksheet.
COLUMBUS, OH
COLUMBUS, GA
PORTLAND, OR
PORTLAND, ME

Then I selected my range of cells
the I did tools|options|custom lists tab
and imported from the worksheet.

It seemed to work better than typing them in the dialog.



barnabel wrote:

I need to sort a list of cities. I know how to creat a custom list however
there seems to be a bug in it. I am hoping somebody knows how to work around
this

Creating this list is simple:

CHICAGO
BALTIMORE
PHILADELPHIA
DALLAS
WASHINGTON

The problem comes when the same city is in multiple states so that the cell
actually says:
COLUMBUS, OH
COLUMBUS, GA
PORTLAND, OR
PORTLAND, ME

because internally the item separator is a comma, the custom list changes
these entries to:
COLUMBUS
OH
COLUMBUS
GA
PORTLAND
OR
PORTLAND
ME

Obviously when you do a data sort it doesn't find any of these values. I
tried creating the list programatically using the addCustomList but it did
the same thing. I've run out of things to try.

Any help would be appreciated.

Peter Richardson

--

Dave Peterson


--

Dave Peterson


--

Dave Peterson
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
Creating a dynamic list Jarrod A Excel Worksheet Functions 1 November 18th 05 11:29 PM
Eliminate creating list that returns blank cells Marc Todd Excel Worksheet Functions 1 January 26th 05 09:58 PM
custom list Anthony Excel Discussion (Misc queries) 4 January 17th 05 11:05 PM
Creating a dynamic list JarrodA Excel Worksheet Functions 3 October 30th 04 04:01 AM
Creating a list from an existing list. Jad Excel Worksheet Functions 1 October 29th 04 06:00 AM


All times are GMT +1. The time now is 05:06 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"