ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How do I list the most recent occrence of a purchase order? (https://www.excelbanter.com/excel-worksheet-functions/86882-how-do-i-list-most-recent-occrence-purchase-order.html)

Sharon

How do I list the most recent occrence of a purchase order?
 
I am working on an Excel spreadsheet that lists information on individuals
based on purchase order number, date of the purchase order number in addtion
to other fields. This report lists activity on a purchase order based on
yyyy/mm/dd format. What I would like to return from this report is the MOST
RECENT activity of the purchase order. For example, activity for PO#12345
for Jane Doe occurred in Jan, Mar, and April. I ONLY want to list the
activity for the same PO on Jane Doe in April.

Thanks.

Ronald Dodge

How do I list the most recent occrence of a purchase order?
 
You can do this one of 2 ways, via macro or formula. I'm not sure how you
are with macros, but here's the formula method:

Assuming you have all of your data in a table like format, similar to how it
would be stored in a DB environment, you can use formula something like the
follows:

=INDIRECT(ADDRESS(MATCH(MAX($A:$A),$A:$A,0),COLUMN (C:C)))

One potential downfall of this, the MATCH function will only return the
first occurence within the range of that exact value (as specified by the
'0' in the last argument of the function), which then may require to not
only use date, but also time of day as well.

--
Ronald R. Dodge, Jr.
Production Statistician/Programmer
Master MOUS 2000

"Sharon" wrote in message
...
I am working on an Excel spreadsheet that lists information on individuals
based on purchase order number, date of the purchase order number in

addtion
to other fields. This report lists activity on a purchase order based on
yyyy/mm/dd format. What I would like to return from this report is the

MOST
RECENT activity of the purchase order. For example, activity for PO#12345
for Jane Doe occurred in Jan, Mar, and April. I ONLY want to list the
activity for the same PO on Jane Doe in April.

Thanks.





All times are GMT +1. The time now is 05:56 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com