+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    03-08-2010
    Location
    Texas, US
    MS-Off Ver
    Excel 2007
    Posts
    21

    Sorting Column Data

    Hey all...I have a weird column of data a pdf converter gave me.

    A1 Phone #
    A2 Name
    A3 phone#
    A4 Name
    so on

    I was trying to get the name next to the phone number. Is an if statement the best? If(A2=number, "", A2)? And how do you tell excel if A2 = number? Also keep in mind that on each phone number row, there is other data. For example b1 has minutes used, c1 charges, etc... I just thought I could insert a column and put an if statement in.

    Thanks for your help!

  2. #2
    Forum Guru zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    Excel 2007
    Posts
    5,740

    Re: Sorting Column Data

    Try ISNUMBER function
    "Relax. What is mind? No matter. What is matter? Never mind!"

  3. #3
    Registered User
    Join Date
    03-08-2010
    Location
    Texas, US
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Sorting Column Data

    I tried it...and it works....only problem now is that 333-333-3333 doesn't count as a number? When I put just 3 in, the formula works.....ugh...frustrating

  4. #4
    Forum Guru zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    Excel 2007
    Posts
    5,740

    Re: Sorting Column Data

    Can you upload example?

    You can change your relevant data but keep formating.
    Espetially for telephone numbers:

    111-111-11
    or
    111111111
    and other forms that might appear
    "Relax. What is mind? No matter. What is matter? Never mind!"

  5. #5
    Registered User
    Join Date
    03-08-2010
    Location
    Texas, US
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Sorting Column Data

    Here you go...thanks for your help!
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    03-08-2010
    Location
    Texas, US
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Sorting Column Data

    I think I'm going to try it another way.....just delete every other row and be done with it.

  7. #7
    Forum Guru zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    Excel 2007
    Posts
    5,740

    Re: Sorting Column Data

    Here, try this in B2 and pull down

    =IF(AND(LEN(A2)-LEN(SUBSTITUTE(A2,"-",""))=2,ISNUMBER(--(SUBSTITUTE(A2,"-","")))),A3,"")

    Then you can add filter and filter out blanks:
    Attached Files Attached Files
    "Relax. What is mind? No matter. What is matter? Never mind!"

  8. #8
    Registered User
    Join Date
    03-08-2010
    Location
    Texas, US
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Sorting Column Data

    Thank you so much! Works like a charm.

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.2.0