+ Reply to Thread
Results 1 to 8 of 8

Lookup Column number in a table based on a cell value

  1. #1
    Registered User
    Join Date
    03-21-2012
    Location
    San Diego
    MS-Off Ver
    Excel 2010
    Posts
    4

    Lookup Column number in a table based on a cell value

    In the summary tab I am trying to show the value of the keyword rank for the specified date. I tried using Hlookup and index/match but was unable to pull the column number for the date within the header. What is the best approach to solve this problem?
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Lookup Column number in a table based on a cell value

    Maybe with a pivot table.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Lookup Column number in a table based on a cell value

    In that case: Delete!
    Last edited by Søren Larsen; 08-21-2012 at 02:25 PM.
    Sincerely
    S?ren Larsen

    "Give a man a fish, and you'll feed him for a day. Give a man a fishing rod, and he'll steal your yacht!"

  4. #4
    Registered User
    Join Date
    03-21-2012
    Location
    San Diego
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Lookup Column number in a table based on a cell value

    The visits seemed to be working, it was the rankings that I was having trouble with, which was a blank column on the summary tab.

  5. #5
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Lookup Column number in a table based on a cell value

    Hi electricmice,

    Welcome to the forum.

    Use the below array formula:-
    {=INDEX(rankings[#All],MATCH(Summary!$B$2&Summary!$A5,rankings[Engine]&rankings[Keyword],0),MATCH(Summary!$B$1,rankings[#Headers],0))}


    Visits and Rankings.xlsx

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  6. #6
    Registered User
    Join Date
    03-21-2012
    Location
    San Diego
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Lookup Column number in a table based on a cell value

    That did it! Thanks! I noticed you converted all the dates, is there a quick way to go about that process, it seemed to want to increment by year instead of by day when I attempted to drag across.

  7. #7
    Registered User
    Join Date
    03-21-2012
    Location
    San Diego
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Lookup Column number in a table based on a cell value

    DILIPandey,

    when i changed the date the data stopped pulling, any idea what could cause this?

  8. #8
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Lookup Column number in a table based on a cell value

    Hi electrimice,

    You need to make the date in date format (not in text format)... to convert the text dates in date format .. type 1 somewhere and copy that.. now multiply the dates by this 1 (pastespecial / multiply)

    To check if dates are equal in both the place, just copy one of them to the next of other and compare them with "=" sign.. if they are really equal, then only formula will work.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

+ 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