+ Reply to Thread
Results 1 to 11 of 11

Retain information in 3 rows and sort by column

  1. #1
    Registered User
    Join Date
    08-01-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    5

    Retain information in 3 rows and sort by column

    Hello,
    I'm trying to sort by location but retain name with two addresses in 3 separate rows.

    NAME Location
    Fname Lname 7
    Physical Address
    Mailing Address
    Fname2 Lname2 5
    Physical Address
    Mailing Address

    Name and location are both in different columns.
    If anyone can please help out. Thanks.
    Attached Files Attached Files
    Last edited by elopez72; 08-01-2013 at 03:47 AM.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Retain information in 3 rows and sort by column

    Please attach a sample workbook with enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

    Note: Please don't attach documents containing confidential data like (address, telephone, ID#s, etc.).


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    08-01-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Retain information in 3 rows and sort by column

    Can someone help me out please.
    Thanks

  4. #4
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    365
    Posts
    495

    Re: Retain information in 3 rows and sort by column

    If you put the location number in all 3 cells of every person, and you sort your data only on Location, all 3 lines stay together
    When I say semicolon, u say comma!

  5. #5
    Registered User
    Join Date
    08-01-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Retain information in 3 rows and sort by column

    Yes, I thought of that but I have over 1000 names.
    Thanks for the reply.

  6. #6
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    365
    Posts
    495

    Re: Retain information in 3 rows and sort by column

    Ok. Are you allowed to fill column G with extra data?
    In G2 type =IF(F2="";G1;F2) and drag down. This fills the extra location numbers that you would need to use my previous solution.

  7. #7
    Registered User
    Join Date
    08-01-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Retain information in 3 rows and sort by column

    Does't seem to work. It gives me an error.
    The formula you typed contains an error.
    I've tried it several times. Won't work.

  8. #8
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Retain information in 3 rows and sort by column

    I think to get L-Drr's formula to work you need to replace the semi-colons with commas so this
    =IF(F2="";G1;F2)
    should be this
    =IF(F2="",G1,F2)
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  9. #9
    Registered User
    Join Date
    08-01-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Retain information in 3 rows and sort by column

    Thanks it worked. Thanks to both of you.

  10. #10
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Retain information in 3 rows and sort by column

    Cool, don't forget to give L-Drr the credit. Rep points are always welcome to forum contributors.
    I think for some reason overseas versions of excel seem to use semi-colons where we typically use commas as I've seen that appear in other formulas but I know whenever I see them they won't work in whatever I'm trying to use them in.

  11. #11
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    365
    Posts
    495

    Re: Retain information in 3 rows and sort by column

    Haha true, maybe it's time to put that in my signature

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 10
    Last Post: 01-02-2013, 10:56 AM
  2. I need a macro that will sort my information based on values in a column
    By theczar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-14-2010, 02:13 AM
  3. Retain validation rules with sort
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-25-2010, 05:16 PM
  4. Sort Data & Retain Row Height
    By Axel Watson in forum Excel General
    Replies: 2
    Last Post: 04-22-2008, 02:25 PM
  5. Sort excel rows by data within url information
    By jfeitlinger in forum Excel General
    Replies: 1
    Last Post: 02-11-2008, 02:24 PM

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