+ Reply to Thread
Results 1 to 7 of 7

Universal Formula to Looking for the last value for last given date.

  1. #1
    Forum Contributor
    Join Date
    02-25-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    445

    Universal Formula to Looking for the last value for last given date.

    Hello Friends

    Please refer the attached MS Excel 2007 file <last date value.xlsx>.

    My requirement is to take the last value to use.i.e., in the attached file in the Column B the last value entered is B43 is 23-Jul-14 and its corresponding value is 428.10 in Cell C43. If the date is entered in the Column B then it should take the value from Column C. i.e. if i enter the date 24-Jul-14 in Cell B44 and the value 427 in C44 then it should display the value of 427 in the formula cell (say / may be E1).


    1) Please make the universal formulas which uses B:B & C:C instead B5:B82 & C5:C82.
    2) Also the formula should track not only numbers (here number 428.10 in Cell C43), but also able to track texts and combination of text and numbers is great.

    thanks in advance

    thilag
    Attached Files Attached Files

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Universal Formula to Looking for the last value for last given date.

    Since your dates are in ascending order, use this

    =INDEX(C:C,MATCH(MAX(B:B),B:B,0))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Contributor
    Join Date
    02-25-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    445

    Re: Universal Formula to Looking for the last value for last given date.

    Hello Ace_XL

    thanks for your formula. It work's fine. But if the date is replaced by the text in Column B:B then the formula not works.

    thanks again

    thilag

  4. #4
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: Universal Formula to Looking for the last value for last given date.

    Hi, check out the attachment
    Attached Files Attached Files
    Click just below left if it helps, Boo?ath?

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Universal Formula to Looking for the last value for last given date.

    Try this...

    =LOOKUP(2,1/(C5:C100<>0),C5:C100)

    1) Please make the universal formulas which uses B:B & C:C instead B5:B82 & C5:C82.
    In this application the formula will test EVERY cell referenced so you should avoid using entire columns as range references. Use a range that will always be bigger than you will need (but less than the entire column) or use dynamic ranges.

    Goto the Formulas tab>Define name

    Name:Value
    Refers to: ='P1'!$C$5:INDEX('P1'!$C:$C,MATCH(1E100,'P1'!$B:$B))

    OK out

    Then the formula becomes:

    =LOOKUP(2,1/(Value<>0),Value)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  6. #6
    Forum Contributor
    Join Date
    02-25-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    445

    Re: Universal Formula to Looking for the last value for last given date.

    Hello Boopathiraha, Tony Valko, Ace_XL

    thanks for all your replies.

    thanks

    thilag

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Universal Formula to Looking for the last value for last given date.

    You're welcome. Thanks for the feedback!

+ 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. how do i make stock appear as i type
    By jowens94 in forum Excel General
    Replies: 1
    Last Post: 08-03-2012, 04:02 PM
  2. Universal date formatting
    By scantron in forum Excel General
    Replies: 1
    Last Post: 02-21-2012, 02:45 PM
  3. universal spreadsheet OWC?
    By fire_water in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-13-2009, 02:52 AM
  4. Universal Macro
    By Cougar548 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-05-2005, 04:25 PM
  5. Excel formula for universal use on lotto
    By cradino in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-28-2005, 07:53 AM

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