+ Reply to Thread
Results 1 to 7 of 7

Next name down a list

  1. #1
    Forum Contributor
    Join Date
    08-24-2006
    Location
    Sevenoaks, Kent
    MS-Off Ver
    Office 365 ProPlus
    Posts
    459

    Next name down a list

    Hi

    I need a formula/vba function that will select the next name down on a list and place it in another cell, lets say for example we have names in cells A1:A20 names go as follows:

    DJ
    DJ
    DJ
    AC
    AC
    FB
    FB

    Now starting in column b i want a formula/vba that will look for the next name down column a and place it in the cells so i get

    DJ
    AC
    FB

    Thanks in advance

    DJ
    Last edited by djfatboyfats; 11-23-2008 at 09:49 PM.

  2. #2
    Forum Contributor
    Join Date
    01-18-2005
    Location
    Auckland New Zealand
    MS-Off Ver
    Office Professional 2007
    Posts
    295
    See http://www.cpearson.com/excel/DistinctValues.aspx for a VBA function which will do this.

    Regards
    Mike

  3. #3
    Forum Contributor
    Join Date
    08-24-2006
    Location
    Sevenoaks, Kent
    MS-Off Ver
    Office 365 ProPlus
    Posts
    459
    page not working

  4. #4
    Forum Contributor
    Join Date
    01-18-2005
    Location
    Auckland New Zealand
    MS-Off Ver
    Office Professional 2007
    Posts
    295
    Curious, works for me; try going to Chip's home page and follow the links from there.

  5. #5
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Listing unique values using formulas

    With
    A1:A10 containing this list, with A1 as the heading:
    Please Login or Register  to view this content.
    and
    B1: SeqList

    If the list will not contain any all-numeric entries, this formula begins listing
    each unique name, as it is encountered
    Please Login or Register  to view this content.
    Copy that formula down as far as you need.

    (If the list will include numeric entries, there's longer formula to use)

    In the above example, the following values are returned by the formulas
    in B2:B5
    Please Login or Register  to view this content.
    Does that help?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  6. #6
    Forum Contributor
    Join Date
    08-24-2006
    Location
    Sevenoaks, Kent
    MS-Off Ver
    Office 365 ProPlus
    Posts
    459
    no still not working, keep getting "Configuration error" tried it on firefox and Internet explorer, thanks anyway. do you know the answer so you could post on here or is to complex?

    Thanks

    DJ

  7. #7
    Forum Contributor
    Join Date
    08-24-2006
    Location
    Sevenoaks, Kent
    MS-Off Ver
    Office 365 ProPlus
    Posts
    459
    Sorted, thanks very much

+ 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