Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
tb tb is offline
external usenet poster
 
Posts: 84
Default Excel Formula (Not Macro) For Sorting By Row

I have an excel spreadsheet with part numbers in Column A and bin
locations in Cols. B to G. I would like to find a formula that sorts
the bin locations in Cols. B-G alphabetically. The bin locations are
formatted as Text.

For instance, Cols B1 to G1 show:
22-2D 49-6A 48-1A 49-1C 49-5A

I would like to have a formula in Cols. H1 to O1 that sorts like this:
22-2D 48-1A 49-1C 49-5A 49-6A

Can anybody help me? Thanks.

--
tb
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,182
Default Excel Formula (Not Macro) For Sorting By Row

I have an excel spreadsheet with part numbers in Column A and bin
locations in Cols. B to G. I would like to find a formula that sorts
the bin locations in Cols. B-G alphabetically. The bin locations are
formatted as Text.

For instance, Cols B1 to G1 show:
22-2D 49-6A 48-1A 49-1C 49-5A

I would like to have a formula in Cols. H1 to O1 that sorts like this:
22-2D 48-1A 49-1C 49-5A 49-6A

Can anybody help me? Thanks.


Why not use Excel's built-in Sort feature on the row[s]?

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
tb tb is offline
external usenet poster
 
Posts: 84
Default Excel Formula (Not Macro) For Sorting By Row

On 12/12/2017 at 11:05:12 PM GS wrote:

I have an excel spreadsheet with part numbers in Column A and bin
locations in Cols. B to G. I would like to find a formula that
sorts the bin locations in Cols. B-G alphabetically. The bin
locations are formatted as Text.

For instance, Cols B1 to G1 show:
22-2D 49-6A 48-1A 49-1C 49-5A

I would like to have a formula in Cols. H1 to O1 that sorts like
this: 22-2D 48-1A 49-1C 49-5A 49-6A

Can anybody help me? Thanks.


Why not use Excel's built-in Sort feature on the row[s]?


Because (I think) I would have to sort each row individually. That
would take forever.

Each row has bin numbers for a different part number, so I would have
to sort Row 1 by itself, then sort Row 2 by itself, etc. etc.

Am I perhaps missing something?
--
tb
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,182
Default Excel Formula (Not Macro) For Sorting By Row

On 12/12/2017 at 11:05:12 PM GS wrote:

I have an excel spreadsheet with part numbers in Column A and bin
locations in Cols. B to G. I would like to find a formula that
sorts the bin locations in Cols. B-G alphabetically. The bin
locations are formatted as Text.

For instance, Cols B1 to G1 show:
22-2D 49-6A 48-1A 49-1C 49-5A

I would like to have a formula in Cols. H1 to O1 that sorts like
this: 22-2D 48-1A 49-1C 49-5A 49-6A

Can anybody help me? Thanks.


Why not use Excel's built-in Sort feature on the row[s]?


Because (I think) I would have to sort each row individually. That
would take forever.

Each row has bin numbers for a different part number, so I would have
to sort Row 1 by itself, then sort Row 2 by itself, etc. etc.

Am I perhaps missing something?


In the Sort dialog Options/Orientation, choose Left to Right!

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
tb tb is offline
external usenet poster
 
Posts: 84
Default Excel Formula (Not Macro) For Sorting By Row

On 12/13/2017 at 2:49:34 PM GS wrote:

On 12/12/2017 at 11:05:12 PM GS wrote:

I have an excel spreadsheet with part numbers in Column A and
bin locations in Cols. B to G. I would like to find a formula
that sorts the bin locations in Cols. B-G alphabetically. The
bin locations are formatted as Text.

For instance, Cols B1 to G1 show:
22-2D 49-6A 48-1A 49-1C 49-5A

I would like to have a formula in Cols. H1 to O1 that sorts like
this: 22-2D 48-1A 49-1C 49-5A 49-6A

Can anybody help me? Thanks.

Why not use Excel's built-in Sort feature on the row[s]?


Because (I think) I would have to sort each row individually. That
would take forever.

Each row has bin numbers for a different part number, so I would
have to sort Row 1 by itself, then sort Row 2 by itself, etc. etc.

Am I perhaps missing something?


In the Sort dialog Options/Orientation, choose Left to Right!


Right but then you have to tell Excel with one of the rows is the
primary sorting key. All the other rows will be sorted based on the
primary sorting key. I need to sort each row _independently_ from any
other row.

Say I have the following bin locations in Row 1 and Row 2 (each row
represents bin locations for a different part number):
22-2D 49-6A 48-1A 49-1C 49-5A
30-1B 05-2C 25-4D 01-1A 11-5B

When I do a Custom Sort - Options - Sort left to right, I have to
specify a Sort By Row key. Let's assume that I pick Row 1 as my Sort
By Row key. The end result would be this:
22-2D 48-1A 49-1C 49-5A 49-6A
30-1B 25-4D 01-1A 11-5B 05-2C

As you can see, Row 1 was sorted correctly but Row 2 was not.

--
tb


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,182
Default Excel Formula (Not Macro) For Sorting By Row

On 12/13/2017 at 2:49:34 PM GS wrote:

On 12/12/2017 at 11:05:12 PM GS wrote:

I have an excel spreadsheet with part numbers in Column A and
bin locations in Cols. B to G. I would like to find a formula
that sorts the bin locations in Cols. B-G alphabetically. The
bin locations are formatted as Text.

For instance, Cols B1 to G1 show:
22-2D 49-6A 48-1A 49-1C 49-5A

I would like to have a formula in Cols. H1 to O1 that sorts like
this: 22-2D 48-1A 49-1C 49-5A 49-6A

Can anybody help me? Thanks.

Why not use Excel's built-in Sort feature on the row[s]?

Because (I think) I would have to sort each row individually. That
would take forever.

Each row has bin numbers for a different part number, so I would
have to sort Row 1 by itself, then sort Row 2 by itself, etc. etc.

Am I perhaps missing something?


In the Sort dialog Options/Orientation, choose Left to Right!


Right but then you have to tell Excel with one of the rows is the
primary sorting key. All the other rows will be sorted based on the
primary sorting key. I need to sort each row _independently_ from any
other row.

Say I have the following bin locations in Row 1 and Row 2 (each row
represents bin locations for a different part number):
22-2D 49-6A 48-1A 49-1C 49-5A
30-1B 05-2C 25-4D 01-1A 11-5B

When I do a Custom Sort - Options - Sort left to right, I have to
specify a Sort By Row key. Let's assume that I pick Row 1 as my Sort
By Row key. The end result would be this:
22-2D 48-1A 49-1C 49-5A 49-6A
30-1B 25-4D 01-1A 11-5B 05-2C

As you can see, Row 1 was sorted correctly but Row 2 was not.


Can you use a macro?

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion
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
Sorting and coloring cells, formula or macro help needed domyrat Excel Discussion (Misc queries) 5 April 4th 10 03:18 PM
Formula or macro needed for sorting complex data issue. malycom Excel Discussion (Misc queries) 4 November 27th 08 07:24 AM
Sorting with a macro or a formula Shu of AZ Excel Discussion (Misc queries) 8 January 7th 07 08:16 PM
help with sorting data in excel(Macro) [email protected] Excel Programming 2 September 11th 06 03:26 PM
Please Help with Excel Sorting Macro!! ticketopia Excel Programming 1 October 6th 03 02:57 PM


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