+ Reply to Thread
Results 1 to 11 of 11

Hi There, I want to look 1 value and return the multiple results in different rows.

  1. #1
    Registered User
    Join Date
    08-07-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    8

    Hi There, I want to look 1 value and return the multiple results in different rows.

    Hello,

    I lots of names and each name has multiple contacts, so I want the contacts in different rows in one column for every name.

    an example is attached showing the raw data in first box and the next box is the result which I want :sample.JPG

    Please help, thank you in advance for your kind assistance.

    Musavir Pasha.
    Last edited by musavir_pasha; 08-07-2012 at 06:48 AM.

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

    Re: Hi There, I want to look 1 value and return the multiple results in different rows.

    A picture may be worth a thousand words, but it doesn't help much in this case as it doesn't show which rows or columns you are using. Please post a sample workbook, as few people would be prepared to type in that data themselves.

    Pete

  3. #3
    Registered User
    Join Date
    08-07-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Hi There, I want to look 1 value and return the multiple results in different rows.

    Hello Pete,

    Thank you for your swift response, I have attached the work sheet.

    just to re-frame my query, I have lots of names in column and each name has multiple contacts, so I want the contacts in different columns in one row for every name.

    Thanks in advance,

    Musavir Pasha.
    Attached Files Attached Files

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

    Re: Hi There, I want to look 1 value and return the multiple results in different rows.

    Put this formula in D5:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    and copy down. Put this array* formula in F5:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    * Commit using Ctrl-Shift-Enter rather than the usual <Enter>

    Then put this formula in G5:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    and copy across to K5, then copy F5:K5 down as far as you need.

    The attached workbook illustrates this.

    Hope this helps.

    Pete
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-07-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Hi There, I want to look 1 value and return the multiple results in different rows.

    Good afternoon Pete,

    You are Awesomeeeeeeeeeeee

    One more small help, I have attached the sample file, what I need is the last contact of that person :

    example : name 'A' has 2 contacts and 'B' has 5 and 'C' has 1 contact in same row, so I want the formula to pick the last contact only, like for A it should pick only 2nd contact, for B it should pick only 5th contact and C should pick only 1st contact.

    Thank you in advance again

    Cheers,
    Musavir Pasha.
    Attached Files Attached Files

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

    Re: Hi There, I want to look 1 value and return the multiple results in different rows.

    Put this formula in J3:

    =LOOKUP(10E10,C3:G3)

    then copy down.

    Hope this helps.

    Pete

  7. #7
    Registered User
    Join Date
    08-07-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Hi There, I want to look 1 value and return the multiple results in different rows.

    Pete, you are supereb, thank you soo much.

    Cheers,
    Musa.

  8. #8
    Registered User
    Join Date
    08-07-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Hi There, I want to look 1 value and return the multiple results in different rows.

    need conditional formatting.JPG

    Hi Pete,

    As per the image there are two tables and the cells are highlighted which are not matching, so is there a conditional formatting for this?

    Thank you in advance,
    Musavir Pasha.

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

    Re: Hi There, I want to look 1 value and return the multiple results in different rows.

    Yes, but attach an Excel workbook so that I can put the formulae in for you - I said before that a picture isn't much use.

    Pete

  10. #10
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Hi There, I want to look 1 value and return the multiple results in different rows.

    Try this in G10, Drag Across then Down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  11. #11
    Registered User
    Join Date
    08-07-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    8

    Smile Hello There, Need Macro which can execute the linked celles as values except formulas.

    Hello There,

    As per the attached excel file as a sample, I have multiple sheets and in each sheets random cells are linked to other sheets and there is a formula beside each linked cell.

    So I want a Macro or any other suggestion through which I can execute the sheets with values of linked cells only and other cells which has formulas should remain formula.

    Thank you in advance,
    Musavir Pasha.
    Attached Files Attached Files

+ 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