+ Reply to Thread
Results 1 to 4 of 4

An If/Then Sort?

  1. #1
    mcsmith1x
    Guest

    An If/Then Sort?

    Recently converted all data from an old program to Excel list of ex-students
    for a reunion. New request is to sort by Maiden name for the women, and Last
    Name for the men for the book. First sort - YearGrad; Second Sort - either
    maiden or last name. Can I somehow say sort by maiden unless blank, then sort
    by last name?
    --
    Working Mom (redundant wording)

  2. #2
    Dave Peterson
    Guest

    Re: An If/Then Sort?

    I'd add another column--call it "name to Sort"

    then use a formula to fill it:

    =if(c2<>"",c2,d2)

    Where C2 held the maiden name and D2 held the current last name.



    mcsmith1x wrote:
    >
    > Recently converted all data from an old program to Excel list of ex-students
    > for a reunion. New request is to sort by Maiden name for the women, and Last
    > Name for the men for the book. First sort - YearGrad; Second Sort - either
    > maiden or last name. Can I somehow say sort by maiden unless blank, then sort
    > by last name?
    > --
    > Working Mom (redundant wording)


    --

    Dave Peterson

  3. #3
    mcsmith1x
    Guest

    Re: An If/Then Sort?

    Awesome! It works!
    --
    Working Mom (redundant wording)


    "Dave Peterson" wrote:

    > I'd add another column--call it "name to Sort"
    >
    > then use a formula to fill it:
    >
    > =if(c2<>"",c2,d2)
    >
    > Where C2 held the maiden name and D2 held the current last name.
    >
    >
    >
    > mcsmith1x wrote:
    > >
    > > Recently converted all data from an old program to Excel list of ex-students
    > > for a reunion. New request is to sort by Maiden name for the women, and Last
    > > Name for the men for the book. First sort - YearGrad; Second Sort - either
    > > maiden or last name. Can I somehow say sort by maiden unless blank, then sort
    > > by last name?
    > > --
    > > Working Mom (redundant wording)

    >
    > --
    >
    > Dave Peterson
    >


  4. #4
    ivory_kitten
    Guest

    RE: An If/Then Sort?

    You could add an extra column for sorting, say SortName with a formula:

    =IF(MaidenName="",Surname,MaidenName)

    Hope this helps

    "mcsmith1x" wrote:

    > Recently converted all data from an old program to Excel list of ex-students
    > for a reunion. New request is to sort by Maiden name for the women, and Last
    > Name for the men for the book. First sort - YearGrad; Second Sort - either
    > maiden or last name. Can I somehow say sort by maiden unless blank, then sort
    > by last name?
    > --
    > Working Mom (redundant wording)


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1