# Last Transaction Value

1. ## 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,

2. ## 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.

3. ## 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,

4. ## 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. ## Re: Last Transaction Value

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

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

#### 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