LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Katie59
 
Posts: n/a
Default Spreadsheet will not sort

I found the following poet on the Excel general question board, and it worked
perfectly. I hope it now works with my mail merge.

Unmerge* your cells and use "CenterAcrossSelection" instead. <Format
<Cells <Alignment tab, *Uncheck* "Merge Cells", Expand the "Horizontal"
window, And choose the last option. -- HTH,

Thanks for your help.

"vezerid" wrote:

If your Excel data contain only first/last name then the formulas I
suggest might help you. The idea is that in some rows first and last
name will be separated into two cells but in some other rows they might
have been merged. If you identify such rows, then perform the
following, in order to break these data into two columns in all cases
(always assuming your data is only two words, they occupy columns A:B
and they start from A2).

In D2:
=IF(ISNUMBER(FIND(" ", TRIM(A2)), LEFT(A2,FIND(" ", A2)), A2)
In E2:
=IF(ISNUMBER(FIND(" ", TRIM(A2)), MID(A2, FIND(" ",A2)+1, LEN(A2)), B2)

Copy down and let us know if it works. You should be able to sort
columns D:E w/o any problem.

HTH
Kostis Vezerides




 
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
How do I sort (or group?) a spreadsheet by similar rows? steve Excel Worksheet Functions 3 August 27th 05 06:33 PM
Sort columns between break lines winstonsnyder Excel Discussion (Misc queries) 1 August 21st 05 06:58 PM
Excel sort by Fill Color by custom list sort Dash4Cash Excel Discussion (Misc queries) 2 July 29th 05 10:45 PM
Sort Function Without Using VBA ExcelMonkey Excel Worksheet Functions 10 February 10th 05 10:24 AM
Data > Sort function amnesia? Dave D Excel Discussion (Misc queries) 1 November 29th 04 10:44 PM


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