+ Reply to Thread
Results 1 to 11 of 11

Vlookup with column name instead of col_index_name(3rd Section of Vlookup formula)

  1. #1
    Forum Contributor
    Join Date
    10-21-2012
    Location
    Ind
    MS-Off Ver
    Excel 2010
    Posts
    110

    Vlookup with column name instead of col_index_name(3rd Section of Vlookup formula)

    In Vlookup can we used column name instead of col_index_name(3rd Section of Vlookup formula)? I do not want to use Match or Index within vlookup. I have attached sample file for your reference. Please advise.
    Attached Files Attached Files

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,863

    Re: Vlookup with column name instead of col_index_name(3rd Section of Vlookup formula)

    Please Login or Register  to view this content.
    instead of "Name" you can use address of a cell with text Name

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Vlookup with column name instead of col_index_name(3rd Section of Vlookup formula)

    Quote Originally Posted by akulka58 View Post
    I do not want to use Match or Index within vlookup.
    Why not? That would be the best way to refer to a column heading by name within a Vlookup:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  4. #4
    Forum Contributor
    Join Date
    10-21-2012
    Location
    Ind
    MS-Off Ver
    Excel 2010
    Posts
    110

    Re: Vlookup with column name instead of col_index_name(3rd Section of Vlookup formula)

    Hi Kaper,

    Thanks for your reply. I need to use without MATCH or INDEX formula.

  5. #5
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Vlookup with column name instead of col_index_name(3rd Section of Vlookup formula)

    Quote Originally Posted by akulka58 View Post
    I need to use without MATCH or INDEX formula.
    Please explain why?

  6. #6
    Forum Contributor
    Join Date
    10-21-2012
    Location
    Ind
    MS-Off Ver
    Excel 2010
    Posts
    110

    Re: Vlookup with column name instead of col_index_name(3rd Section of Vlookup formula)

    Trying to find out if there are any other way, if there are any other options let me know.

  7. #7
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,863

    Re: Vlookup with column name instead of col_index_name(3rd Section of Vlookup formula)

    Of course (it is not wise, but if you wish so) you can always use several IFs instead of MATCH like (in B1 your selected header like Name or date etc.). For instance:
    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    10-21-2012
    Location
    Ind
    MS-Off Ver
    Excel 2010
    Posts
    110

    Re: Vlookup with column name instead of col_index_name(3rd Section of Vlookup formula)

    Hi Kaper, Thanks a lot lot but It showing NO Column Data. It should show NAME column data. Please advise.

  9. #9
    Registered User
    Join Date
    01-20-2014
    Location
    Poland, Ireland
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Vlookup with column name instead of col_index_name(3rd Section of Vlookup formula)

    And another solution without MATCH or INDEX but with SUMPRODUCT (MATCH would be much better).
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Cell B1 contain "name" or "date", of course.
    Last edited by szbill62; 01-21-2014 at 10:12 AM.

  10. #10
    Forum Contributor
    Join Date
    10-21-2012
    Location
    Ind
    MS-Off Ver
    Excel 2010
    Posts
    110

    Re: Vlookup with column name instead of col_index_name(3rd Section of Vlookup formula)

    Hi Kaper & szbill62,

    Thanks for your reply. The formula is not showing correct results. Its showing 1 only. If you can send me the file that would be better.

  11. #11
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,863

    Re: Vlookup with column name instead of col_index_name(3rd Section of Vlookup formula)

    No, I think if you can send us the file that would be better
    You claim it is not working -> show us.
    Frankly speaking, we do not care too much if you do not put enough effort ...

    OK. That was enough - see the attechment.
    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)

Similar Threads

  1. [SOLVED] Insert Column with vLookup formula
    By MileHigh_PhD in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-25-2013, 03:03 AM
  2. Deleting Row Section without Disrupting Formula Range Outside of Deleted Section
    By JeffNYG23 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-14-2013, 09:10 AM
  3. First column of range in VLOOKUP contains formula
    By er.diljeetsingh in forum Excel General
    Replies: 3
    Last Post: 11-10-2011, 05:19 AM
  4. specify the column names in a vlookup formula
    By friend11_6 in forum Excel General
    Replies: 4
    Last Post: 06-27-2011, 08:37 PM
  5. Replies: 3
    Last Post: 06-19-2010, 08:49 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