Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default sort name records according to criteria

I have sheet of names and addresses but some of the rows do not have the
name title ( Mr / Mrs ) . i.e they only have the name J. Doe instead of Mr
J. Doe
I would like to prepare the list for mail merge in order to do this, I want
to split the list into 2 segments.
1 section of the rows of records containing full title and the 2nd section
containing the records which have no title.
How can I do this quickly without highlighting and cut/copy etc?
It's a list of several thousand records.

--

-keevill-

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 896
Default sort name records according to criteria

=IF(OR(LEFT(A1,2)="Mr",LEFT(A1,3)="Mrs"),"Mr/Mrs","")

then apply autofilter

ctrl+G, Special, select Visibles, copy to another sheet/location,
paste as values

do the same for NON "Mr/Mrs" with changed formula:

=IF(AND(LEFT(A1,2)<"Mr",LEFT(A1,3)<"Mrs"),"Mr/Mrs","")
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default sort name records according to criteria


"Jarek Kujawa" wrote in message
...
=IF(OR(LEFT(A1,2)="Mr",LEFT(A1,3)="Mrs"),"Mr/Mrs","")

then apply autofilter

ctrl+G, Special, select Visibles, copy to another sheet/location,
paste as values

do the same for NON "Mr/Mrs" with changed formula:

=IF(AND(LEFT(A1,2)<"Mr",LEFT(A1,3)<"Mrs"),"Mr/Mrs","")


few more instructions needed please...
where do I insert this text/command ?


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 396
Default sort name records according to criteria

These formulae (perhaps slightly changed to match your columns) should come
in a new column next to your table. Then you can use Sort or Autofilter.

--
Wigi
http://www.wimgielis.be = Excel/VBA, soccer and music


"-keevill-" wrote:


"Jarek Kujawa" wrote in message
...
=IF(OR(LEFT(A1,2)="Mr",LEFT(A1,3)="Mrs"),"Mr/Mrs","")

then apply autofilter

ctrl+G, Special, select Visibles, copy to another sheet/location,
paste as values

do the same for NON "Mr/Mrs" with changed formula:

=IF(AND(LEFT(A1,2)<"Mr",LEFT(A1,3)<"Mrs"),"Mr/Mrs","")


few more instructions needed please...
where do I insert this text/command ?



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
Not sure what function to use to return records that fit criteria Roy Bernal Excel Worksheet Functions 2 June 4th 08 07:25 PM
When i sort records...Only from Colomn A to O does it sort the lis Randall Excel Discussion (Misc queries) 1 October 26th 06 01:19 AM
How do I sort records that are on two lines in a spreadsheet? ecox Excel Worksheet Functions 2 August 22nd 06 08:43 PM
Saving Sort Criteria (or Sort Lists) Jim J. Excel Worksheet Functions 1 July 25th 06 10:55 AM
count records meeting three criteria Laura Excel Worksheet Functions 5 December 21st 05 05:47 PM


All times are GMT +1. The time now is 01:15 AM.

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"