简体   繁体   中英

Use date reference is a vlookup formula

I have attached a printscreen to make it easier to understand my question.

I'm creating a supply management woorkbook. Income will refer to the purchases and outcome the resale of this purchases. Because there will be price variations, I'm looking for a formula to insert on Outcome Total Price that will return the purchase price of the item sold to deduct from the total value of my stock.

I don't know if it's possible to use a second reference on vlookup formula, like to return the price of product A with the condition that it has to be before the date 19/09/2016.

Adriano

打印屏幕

假设在任何给定的一天中任何给定产品的条目不超过一个,并且假设数据按时间顺序排列,请在F3中尝试此操作并复制下来

=IF(E3>0,SUMPRODUCT($D2:D$3,--($A2:A$3=A3),--($B2:B$3=MAX($B2:B$3))),"")

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM