+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    09-24-2009
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    2

    Problem Using Hlookup to Return Max Value Based On Not Blank

    Hey all,

    The situation:

    1 row with dates (years) 2007 to 2027

    1 row with varying $ amounts. some cells are empty

    What I want is a formula that spits out the latest year (2007-2027) that has a corresponding $$$ amount.

    So if, for instance:

    A3=2007 and B3=$50
    A4=2008 and B4=<blank>
    A5=2009 and B5=$35
    A6=2010 and B6=<blank>

    the formula would spit out "2009"

    Any suggestions on how to do this?

    Thanks in advance.
    Last edited by rioisk; 09-24-2009 at 04:55 PM. Reason: solved

  2. #2
    Forum Moderator NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003, 2007, 2010
    Posts
    31,163

    Re: can't wrap head around formula

    Welcome to the forum,

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

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

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

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Registered User
    Join Date
    09-24-2009
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Using SUMPRODUCT() and MAX() to find last cell in row

    I found this formula

    =SUMPRODUCT((MAX(($F$6:$AU$6>0)*($F$3:$AU$3))))

    at

    http://www.eggheadcafe.com/conversat...eadid=32954632

    which seems to solve the problem.

  4. #4
    Forum Moderator NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003, 2007, 2010
    Posts
    31,163

    Re: Problem Using Hlookup to Return Max Value Based On Not Blank

    Thanks for taking the time to read and comply with the rule .

    and thanks for posting your solution.
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

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

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

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

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.2.0