+ Reply to Thread
Results 1 to 12 of 12

VLOOKUP all column

  1. #1
    Registered User
    Join Date
    06-16-2018
    Location
    Manchester, England
    MS-Off Ver
    2016
    Posts
    138

    VLOOKUP all column

    Here's hoping this is possible
    I have this-
    A B C D
    1 a
    2 1 b
    3 c

    When I use lookup value 1 in A2 it returns b in D2, but is it possible to also return a in D1 and c in D3.
    Basically all of column B to be shown in column D

    Thanks

  2. #2
    Valued Forum Contributor saravnepali's Avatar
    Join Date
    01-14-2019
    Location
    Sydney Australia
    MS-Off Ver
    2010
    Posts
    447

    Re: VLOOKUP all column

    Its not still clear what you are after.

    You can use vlookup

    This formula goes to D1 and just drag it down for lookup value on A1 & table $A$1:$B$3

    Make sure use the $ as it has to be fixed when you use it for different rows.

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


    Quote Originally Posted by parbynat View Post
    Basically all of column B to be shown in column D

    Thanks
    If you just want that you can simply say put on Column D cells D1
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and then drag down

    If this is not what you are after then attach excel sheet with sample data
    Last edited by saravnepali; 11-24-2019 at 11:49 PM.
    If you think someone helped you, click on the "* Add Reputation" as a way to say thank you.

    If your problem is solved, go to Thread Tools and select Mark This Thread Solved

  3. #3
    Registered User
    Join Date
    06-16-2018
    Location
    Manchester, England
    MS-Off Ver
    2016
    Posts
    138

    Re: VLOOKUP all column

    I should have checked how it looked before I posted as a, b and c are all in column B.
    Attachment 651331

  4. #4
    Valued Forum Contributor saravnepali's Avatar
    Join Date
    01-14-2019
    Location
    Sydney Australia
    MS-Off Ver
    2010
    Posts
    447

    Re: VLOOKUP all column

    Quote Originally Posted by parbynat View Post
    I should have checked how it looked before I posted as a, b and c are all in column B.
    Attachment 651331
    attachment doesnt work

  5. #5
    Registered User
    Join Date
    06-16-2018
    Location
    Manchester, England
    MS-Off Ver
    2016
    Posts
    138

    Re: VLOOKUP all column

    Sorry I am not savvy in doing this.
    I'll try again

  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,427

    Re: VLOOKUP all column

    Follow the instructions given in the yellow banner at the top of the screen to attach a file. A more-detailed set of instructions is given below:

    To do this, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and then on Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post.

    Don't try to use the Paperclip icon for attachments, as it doesn't work on this forum.

    Hope this helps.

    Pete

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,220

    Re: VLOOKUP all column

    The attachment does not really help. It shows this:

    Excel 2016 (Windows) 32 bit
    A
    B
    C
    D
    1
    a
    2
    1
    b
    b
    3
    c
    Sheet: Sheet1
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  8. #8
    Registered User
    Join Date
    06-16-2018
    Location
    Manchester, England
    MS-Off Ver
    2016
    Posts
    138

    Re: VLOOKUP all column


  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,427

    Re: VLOOKUP all column

    You could put this formula in D1:

    =IF(COUNTA(A:A),B1&"","")

    and copy it down. Then if you have no values in column A then column D cells will show as blanks, but if you put any value in any cell in column A then the values from column B will show in column D. Is that what you want?

    Hope this helps.

    Pete

  10. #10
    Valued Forum Contributor saravnepali's Avatar
    Join Date
    01-14-2019
    Location
    Sydney Australia
    MS-Off Ver
    2010
    Posts
    447

    Re: VLOOKUP all column

    try this formula and drag it to the range as needed till D3
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    06-16-2018
    Location
    Manchester, England
    MS-Off Ver
    2016
    Posts
    138

    Re: VLOOKUP all column

    Thanks for the replies

    =IF(COUNTA(A:A),B1&"","") works for me

    Cheers

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

    Re: VLOOKUP all column

    Glad to hear it.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    You might also like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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] Vlookup name in column 1 and text string in column 2 and bring that cell in column 2
    By luajambeiro in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-22-2019, 06:12 PM
  2. [SOLVED] Macro to Insert column and include a VLOOKUP array for entire column
    By bdouglas1011 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-29-2014, 06:28 PM
  3. Replies: 1
    Last Post: 02-20-2014, 08:42 AM
  4. Replies: 12
    Last Post: 01-28-2014, 12:36 PM
  5. [SOLVED] Vlookup with column name instead of col_index_name(3rd Section of Vlookup formula)
    By akulka58 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-21-2014, 10:42 AM
  6. Replies: 3
    Last Post: 04-10-2013, 06:33 AM
  7. [SOLVED] Copy data from column to other sheets, based upon vlookup/criteria on column a
    By jedemeyer1 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 03-27-2013, 04:01 AM

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