Last Sales Price

rajivsoni

Board Regular
Joined
May 5, 2006
Messages
133
Hey guys,
I'm stuck with a report i need to make and need an urgent response :(
i have a database file containing the following:

Date | Order Number | Product Id | Product Description | Customer ID | Customer Name | Volumes sold | Selling Price | Total Value (Volume x sp)

now what i want is a formula to get the Last selling Price of a Product.

For Eg.
Lets say the Customer is "Rajiv" and the Product Purchased is a "Pendant"

I need to know @ what price was the pendant last sold to the customer rajiv.
Now the tricky part is tht this customer could have purchased the pendants before number of times. i need to know @ what price was it last purchased.
I have a date column in my database which im sure would be helpful.

Lemme know if i wasnt clear.

Thanks in Advance :)
 
Yeap the Price of the product for an "X" customer on the last entry date :)
I'm glad u helped me with it... which is why i cud figure out :) otherwise i wud've been going mad and crazy with it :) lol
 
Upvote 0

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
hey thanks Aladin, this works but i have a question here, what this does is it pickes up the last row for that customer. can there be a way to pickup the Price range based on the order date ??? it should pick up the Latest Order date
Thank you soo much ..! :)

Control+shift+enter, not just enter:

F2: Rajiv
G2: Pendant

H2:

Control+shift+enter, not just enter:
Code:
=INDEX(PriceRange,MATCH(MAX(IF(CustomerRange=F2,
   IF(ProductRange=G2,DateRange))),IF(CustomerRange=F2,
    IF(ProductRange=G2,DateRange)),0))
 
Upvote 0

Forum statistics

Threads
1,224,548
Messages
6,179,451
Members
452,915
Latest member
hannnahheileen

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top