+ Reply to Thread
Results 1 to 6 of 6

Lookup does not return correct value

  1. #1
    Registered User
    Join Date
    07-29-2014
    Location
    Oxford, England
    MS-Off Ver
    Office 2010
    Posts
    6

    Lookup does not return correct value

    Hi,

    I have tried lots of different methods, but I just can't get this to work. I have a table with purchases allocated to dates, including "$0.00" for no purchases (see image):

    lookup.jpg

    I used =LOOKUP(1000,B4:I4,B2:I2) , hoping that the "1000" would result in the formula looking for a value greater than zero. Using >0 also did not work.

    What I want to do is retrieve the date of the latest purchase for this line and more lines to follow. So in this case it SHOULD return 23/02/2014... Please can you help me??
    Attached Images Attached Images
    Last edited by AnnaBX; 07-29-2014 at 10:29 AM.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Lookup does not return correct value

    Try

    =LOOKUP(2,1/(B4:I4>0),B2:I2)

  3. #3
    Registered User
    Join Date
    07-29-2014
    Location
    Oxford, England
    MS-Off Ver
    Office 2010
    Posts
    6

    Re: Lookup does not return correct value

    Now it returns "#N/A"

  4. #4
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: Lookup does not return correct value

    A quick and unsophisticated solution would be to add a helper row that returns, for example, "Yes" if the value in Row 4 is greater than 0. Than you could use the "=DMAX" function to identify the latest date with a "Yes" in your helper row.

  5. #5
    Registered User
    Join Date
    07-29-2014
    Location
    Oxford, England
    MS-Off Ver
    Office 2010
    Posts
    6

    Re: Lookup does not return correct value

    You were right, I did not see the brackets, that was my mistake! Thank you!

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Lookup does not return correct value

    You're welcome.

+ 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. Replies: 6
    Last Post: 10-09-2013, 03:08 PM
  2. Replies: 1
    Last Post: 09-17-2012, 09:35 AM
  3. Formula does not return the correct value
    By eliswhite in forum Excel General
    Replies: 3
    Last Post: 04-11-2012, 07:43 AM
  4. lookup 2 columns that are data validated wont return correct info
    By imatthews2001 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-31-2011, 02:31 PM
  5. Not Able to Get LOOKUP to Return Correct Data
    By ngoedken in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-12-2009, 08:19 PM

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