+ Reply to Thread
Results 1 to 5 of 5

Last Transaction Value

  1. #1
    Registered User
    Join Date
    07-15-2009
    Location
    Mumbai
    MS-Off Ver
    Excel 2007
    Posts
    28

    Last Transaction Value

    Hey,
    Hope this works. I have an excel file here that has a list of values. What I would like to do is write a formula that finds me the last transaction value of a particular item code. eg. the final list should show :
    30100 cost 1.04 (June Value)
    30103 cost 1.25 ( Apr- Value)

    I am trying to identify each month the last transaction value of a particular item.

    Pls help me out.

    Regards,
    Attached Files Attached Files
    Last edited by Chimero; 07-15-2009 at 01:55 PM.

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

    Re: Last Transaction Value

    Try in F2:

    =LOOKUP(2,1/(($B$4:$B$181=B4)),$A$4:$A$181)

    copied down.

    Note: You have a mix of formats in column B and so the results won't be right until you fix them..

    Select Column B and go to Data|Text to Columns and skip to the 3rd dialogue window... Select Text from the Columm Data Format area and click Ok.
    Attached Files Attached Files
    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.

  3. #3
    Registered User
    Join Date
    07-15-2009
    Location
    Mumbai
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: Last Transaction Value

    Thanks brother for replying so soon. However, I believe that I was unclear with my requirement and thus sent u the wrong way. I have attached one more sheet to the book where the required information is to be captured from the main data sheet. Could you pls take one more look at it. Sorry for being so vague previously.

    Regards,
    Attached Files Attached Files

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

    Re: Last Transaction Value

    Again, this is because your formats in column B of Sheet2 are not all the same...

    Follow the steps I mentioned previously to convert all to text....

    You also are referencing wrong cell in the formula in F4 of Sheet2, should be referencing B4, not B6

    =LOOKUP(2,1/(($B$4:$B$181=B4)),$A$4:$A$181)

    and formula in column G to get last value...

    =LOOKUP(2,1/(($B$4:$B$181=B4)),$D$4:$D$181)

    The formula is also in Sheet3 as:

    =LOOKUP(2,1/((Sheet2!$B$4:$B$181=A4)),Sheet2!$D$4:$D$181)

    copied down... (and again note, there is no code 30100 for June as you indicate)...

  5. #5
    Registered User
    Join Date
    07-15-2009
    Location
    Mumbai
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: Last Transaction Value

    Thanks bro, it worked like a charm. Appreciate your help.

+ 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