+ Reply to Thread
Results 1 to 2 of 2

Perform a vlookup on a cell containing a formula?

  1. #1
    Registered User
    Join Date
    03-31-2010
    Location
    Southport England
    MS-Off Ver
    Excel 2003
    Posts
    1

    Perform a vlookup on a cell containing a formula?

    Is it possible to perform a vlookup function using a cell which already contains a formula?

    I am creating a spreadsheet which will list any complaints we have had against the work we have done for our customers. I have a separate worksheet for every customer within one workbook and want to pull together some information for all customers onto a summary worksheet. I already have a formula to countif there is actually a complaint and another to pull through only the most recent date of complaint onto my summary sheet. However I also have fields such as reference and status which I would like only to pull through onto the summary page, for the MOST RECENT DATE. Is this possible?

    IE. My cell contains a MAX formula to find the most recent date from my range of cells. I then want to perform a vlookup using this 'most recent date value' to get data related to the current complaint (ie reference of the job/status).

    I hope this all makes sense?

    Thanks

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Perform a vlookup on a cell containing a formula?

    You can use Vlookup if the Date column is left of the related data to bring over..

    e.g. =Vlookup(X1,Sheet2!$A$1:$B$1000,2,0) where X1 contains your MAX() formula and Sheet2!A1:A1000 contain the dates to look up and B1:B1000 the corresponding data to bring back.

    else you can use Index/Match

    e.g. =Index($A$1:$A$1000,Match(X1,$B$1:$B$1000,0))

    where the columns are reversed... i.e. column B contains dates and column A the data

    Note: You can use the Index/Match in either case...

    You can also replace X1 in the formulas with the actual MAX() formula so you don't have a separate cell, although that might cause calc problems if you are using that formula in a lot of cells.. usually better to keep the MAX() separate.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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