+ Reply to Thread
Results 1 to 8 of 8

Keep only selection of cells from a database for further lookup matching..

  1. #1
    Registered User
    Join Date
    06-21-2012
    Location
    Greece
    MS-Off Ver
    Excel 2007
    Posts
    30

    Keep only selection of cells from a database for further lookup matching..

    Dear Excel Forum Users,

    Please see my example posted and revert with your advice/feedback.
    I have posted an example of an exported database into .xlsx format of 3 customer info details.
    The real database has more that 700 contacts.
    What I need is to keep ONLY the Company Name & the Email in adjucent cells vertically or horizontally, so as
    to match afterwards with VLOOKUP/HLOOKUP or INDEX matching formulas , the contact Info cells (Company name and Email) of another database..

    I will appreciate your help.

    Thank you very much in advance

    Ilias
    Last edited by Fotis1991; 05-15-2014 at 06:32 AM.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Keep only selection of cells from a database for further lookup matching..

    Hello-Καλημέρα Ηλία.

    I deleted your sample workbook as that included some sensitive(Real Names-Phone Numbers..etc) data.

    Pls replace these with sample data and upload your workbook again.

    Thank you.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,819

    Re: Keep only selection of cells from a database for further lookup matching..

    In Sheet2 insert a new blank row at the top of the sheet, then put this formula in cell AB2:

    =IF(A2="Company Name",COUNTIF(A$2:A2,A2),IF(A2="Email",MAX(AB$1:AB1)+0.5,""))

    Copy this down as far as you need to the bottom of your data.

    Create a new sheet with the column heading "Name" in A1 and "Email" in B1, and put this formula in A2:

    =IFERROR(INDEX(Sheet2!F:F,MATCH(ROWS($1:1),Sheet2!AB:AB,0)),"")

    and this one in B2:

    =IFERROR(INDEX(Sheet2!F:F,MATCH(ROWS($1:1)+0.5,Sheet2!AB:AB,0)),"")

    then copy these down as far as you need to.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    06-21-2012
    Location
    Greece
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: Keep only selection of cells from a database for further lookup matching..

    Dear Fotis,

    Hi! Nice to hear from you!
    Thank you for noticing, I have removed the sensitive data and re-posting the attachment.


    Hello Pete,

    ThanX for the feedback, will try it in a while and let know!

    BR
    ilias
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    06-21-2012
    Location
    Greece
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: Keep only selection of cells from a database for further lookup matching..

    Hello Pete,
    ..meaning with ''cell AB2''? If I merge cells A and B, excel wont let me paste the formula.
    If I place the formula in cell A2 or B2 (have already inserted the new row) and drag down , I get zeros ''0''..
    Is it possible to edit the revised example I posted and send it back?

    thank you

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,819

    Re: Keep only selection of cells from a database for further lookup matching..

    See attached file. I think you are a bit confused as to where to put the first formula - in column AB of Sheet2, shown in blue.

    Hope this helps.

    Pete
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    06-21-2012
    Location
    Greece
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: Keep only selection of cells from a database for further lookup matching..

    Thank you, will see this (from home) and revert.

  8. #8
    Registered User
    Join Date
    06-21-2012
    Location
    Greece
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: Keep only selection of cells from a database for further lookup matching..

    Yes, exactly what I need!
    Appreciate your help!

+ 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. [HELP] - How To Matching Worksheet With Database ??
    By hedhot in forum Excel General
    Replies: 7
    Last Post: 11-01-2013, 11:52 PM
  2. Replies: 2
    Last Post: 10-07-2013, 11:06 AM
  3. [SOLVED] Lookup question matching part of lookup value in the table array
    By kosmo in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-05-2013, 11:07 AM
  4. [SOLVED] Lookup cells and count matching cells column
    By Firemaster in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-18-2012, 05:09 AM
  5. Help matching fields in a database
    By simjambra in forum Excel General
    Replies: 2
    Last Post: 03-13-2009, 12:28 PM

Tags for this Thread

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