+ Reply to Thread
Results 1 to 16 of 16

Function to pull out data from one column to another without duplicates

Hybrid View

  1. #1
    Registered User
    Join Date
    03-31-2008
    Posts
    28

    Function to pull out data from one column to another without duplicates

    Here is what i'm working with:

    http://img90.imageshack.us/my.php?im...uestionas8.jpg

    what i want it to do is pull out the stuff in column C and put it in column F. But i don't want it to duplicate it at all. So for instance in this case, submarket 1 would be cary-morrisville-apex / submarket 2: northwest wake / submarket 3: north wake etc.

    would this involve a VLOOKUP function but an if then function as well? I'm not really sure how to go about it.

    thanks in advance!

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Assuming that your data is in the range C5:C12 and your formula is going into F4, then try this array entered (ctrl, shift, enter) formula.
    =IF(ROW()-3>SUM(1/COUNTIF($C$5:$C$12,$C$5:$C$12)),"",INDEX(C:C,SMALL(IF(MATCH($C$5:$C$12,$C$5:$C$12,0)=ROW($C$5:$C$12)-4,ROW($C$5:$C$12),""),ROW()-3)))
    rylo

  3. #3
    Registered User
    Join Date
    03-31-2008
    Posts
    28
    i copied and pasted it in and it just gives me a blank cell.
    what is it supposed to return? because i honestly didn't understand any of that

  4. #4
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    764
    Hi
    Select C4:C12 goto DATA menu > filter >advanced filter > tick copy to another location > Copy to : F3 > tick unique records only > click OK
    Ravi

  5. #5
    Registered User
    Join Date
    03-31-2008
    Posts
    28
    I tried what you said and it keeps giving me the error "The extract range has a missing or illegal field name."

    could this be due to the fact that column B is pulling from a column on the first worksheet. So technically wouldn't this be pulling the formulas and not just their value?

  6. #6
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Did you array enter the formula. Hold down the ctrl and shift keys, then press enter. If it is entered correctly the formula should be enclosed in curly brackets {}.

    rylo

+ 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