+ Reply to Thread
Results 1 to 5 of 5

Vlookup to show value from 2 colums

  1. #1
    Forum Contributor
    Join Date
    09-05-2012
    Location
    PLYMOUTH ,MI
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    106

    Vlookup to show value from 2 colums

    Hello all,
    Trying to use a Vlookup to get information brought over from 2 different columns. Basically real quick i want to extract the cell that has the first available value
    If lookup value 1 is blank, then I want the lookup to show the value that is in lookup value 2
    And if the value is in lookup value 1, i don't want it to pull in lookup value 2.

    =vlookup(a7,'sheet1'A:B,1,false),vlookup(a7,'sheet1'A:B,2,false) )


    How do i make this work properly..

    Thanks

  2. #2
    Valued Forum Contributor
    Join Date
    02-04-2009
    Location
    Texas
    MS-Off Ver
    Excel 2016
    Posts
    665

    Re: Vlookup to show value from 2 colums

    =if(vlookup(a7,'sheet1'A:B,1,false)=1,vlookup(a7,'sheet1'A:B,1,false),vlookup(a7,'sheet1'A:B,2,false) )

  3. #3
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Vlookup to show value from 2 colums

    It would work a little something like this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    However, as your first VLOOKUP is only returning a value from the 1st column in a range, if it doesn't find the value then I imagine you get an error, so potentially you could use:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    BSB

  4. #4
    Valued Forum Contributor
    Join Date
    02-04-2009
    Location
    Texas
    MS-Off Ver
    Excel 2016
    Posts
    665

    Re: Vlookup to show value from 2 colums

    sorry =if(vlookup(a7,'sheet1'A:B,1,false)<>"",vlookup(a7,'sheet1'A:B,1,false),vlookup(a7,'sheet1'A:B,2,false) )

  5. #5
    Forum Contributor
    Join Date
    09-05-2012
    Location
    PLYMOUTH ,MI
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    106

    Re: Vlookup to show value from 2 colums

    Perfect CRIMEDOG. Thanks for the assist

+ 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. Hide and Show Colums using VBA
    By Aisha890 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-19-2016, 07:28 AM
  2. [SOLVED] Hide/Show Colums via drop down list on a different sheet
    By realrookie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-24-2015, 05:52 AM
  3. Search 5 colums for 3 nrs and show all matches
    By ricklou in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-25-2014, 08:46 AM
  4. Show specific rows and colums on dropdown list selection
    By info5 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-07-2012, 02:22 AM
  5. Hide show colums showing list of works
    By excelwanabe in forum Excel General
    Replies: 9
    Last Post: 02-21-2012, 09:24 AM
  6. show 2 colums per page instead of 1
    By Patrick T. in forum Excel General
    Replies: 1
    Last Post: 05-17-2006, 12:25 PM
  7. [SOLVED] how to get my rows and colums to show up when printing
    By Stephanie in forum Excel General
    Replies: 2
    Last Post: 03-06-2006, 07:00 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