+ Reply to Thread
Results 1 to 3 of 3

Vlookup Formula

  1. #1
    Registered User
    Join Date
    06-17-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    19

    Vlookup Formula

    Hi All,

    Thanks everyone for the help in advance.

    I was trying to figure out a formula that will pick up a new email format when entered into excel.

    Basically column D has a list of e-mail address that have traded with us. The addresses have been listed more than once for those that have traded multiple times. I copied this column into AO and removed duplicates to leave me with the number of clients we have based on their email address. I would like a formula that recognises any new email address that has traded (column D) and duplicate that email address to column AO. Is this possible?

    Please see e-mail formats listed below, I'm guesisng as more than one person share an email format the formula will need "*@" somewhere.
    Column D
    peer@stc.com.au
    peter.green@DIY.com.au
    sophie@llc.com.au
    andy.shaw@DIY.com.au
    mike@pagin.com
    sal@pagin.com

  2. #2
    Valued Forum Contributor
    Join Date
    09-07-2006
    Posts
    520

    Re: Vlookup Formula

    Here's one simple way to extract a uniques list dynamically (on-the-fly updating) ...
    Assume your source data (eg email addresses) runs in A2 down
    Put in B2: =IF(A2="","",IF(COUNTIF(A$2:A2,A2)>1,"",ROW()))
    Put in C2: =IF(ROWS($1:1)>COUNT(B:B),"",INDEX(A:A,SMALL(B:B,ROWS($1:1))))
    Copy B2:C2 down as far as data is expected in col A, eg down to row 200?
    Hide away col B. Col C will return a uniques listing of the items in col A, all neatly packed at the top. This uniques list will auto-update as new data is input (or pasted) into col A
    ------------------------------------------------
    Success? Wave it, click the little star at the bottom left of my response

  3. #3
    Valued Forum Contributor
    Join Date
    09-15-2011
    Location
    Chennai, India
    MS-Off Ver
    Excel 2010
    Posts
    436

    Re: Vlookup Formula

    Please paste this function with Ctrl+Shift+Enter in B2 & copy across to generate unique email ids without the person name.


    =IFERROR(INDEX(SUBSTITUTE(RIGHT(SUBSTITUTE($A$2:$A$7,"@",REPT("!",LEN($A$2:$A$7))),LEN($A$2:$A$7)),"!",""),SMALL(IF(FREQUENCY(IF(SUBSTITUTE(RIGHT(SUBSTITUTE($A$2:$A$7,"@",REPT("!",LEN($A$2:$A$7))),LEN($A$2:$A$7)),"!","")<>"",MATCH(SUBSTITUTE(RIGHT(SUBSTITUTE($A$2:$A$7,"@",REPT("!",LEN($A$2:$A$7))),LEN($A$2:$A$7)),"!",""),SUBSTITUTE(RIGHT(SUBSTITUTE($A$2:$A$7,"@",REPT("!",LEN($A$2:$A$7))),LEN($A$2:$A$7)),"!",""),0)),ROW($A$2:$A$7)-ROW($A$2)+1),ROW($A$2:$A$7)-ROW($A$2)+1),ROWS($C$2:C2))),"")

    And to count each email, use this function
    Paste the function in C2
    =SUMPRODUCT(1*(ISNUMBER(SEARCH(B2,$A$2:$A$7))))
    Last edited by ramananhrm; 07-23-2013 at 02:44 AM.
    Please click 'Add reputation', if my answer helped you.

+ 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. [SOLVED] VBA code for change vlookup formula to vlookup formula with ISNA
    By erprasannaa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-12-2013, 03:33 AM
  2. Vlookup referencing a vlookup formula
    By laurenann in forum Excel General
    Replies: 1
    Last Post: 01-24-2011, 05:52 PM
  3. Replies: 4
    Last Post: 06-06-2010, 07:13 PM
  4. Replies: 2
    Last Post: 10-08-2009, 09:51 PM
  5. vlookup-reate a vlookup formula?
    By Pam C in forum Excel General
    Replies: 1
    Last Post: 03-16-2006, 12:15 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