+ Reply to Thread
Results 1 to 3 of 3

Vlookup Formula

  1. #1
    Registered User
    Join Date
    04-25-2012
    Location
    England
    MS-Off Ver
    Excel 2003&2010
    Posts
    18

    Vlookup Formula

    Hi I am trying to create a lookup that will change when I change a patricular cell, what I currently have is a vlookup formula that that finds a value for each line based on the site name, and then the column I want it to look at, but I was trying to create a formula that instead of looking at a column number it can find a word such as a month and then find the figure in that column, for example if column a has the site name and in cell b2 has the current month and "tab2 has all the raw data by month, can I create a formula in column c that will find the site name and then look on "tab 2" for the relevant month? Or will I have to change the formula every month?
    Regards
    Martin

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

    Re: Vlookup Formula

    Hi Martin,

    I would suggest you to explore the Index - match formula...
    Supply the sample workbook in case of any issues. thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Vlookup Formula

    without seeing your data have a look at index/match or you could use match in the vlookup to find the col entitled month
    say your data is in d1:h10 and colum f cell f1 has "month"
    vlookup("something",d1:h10,3,false)
    can become
    vlookup("something",d1:h10,match("month",d1:h1,0),false)
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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