简体   繁体   English

使用日期参考是vlookup公式

[英]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. 我不知道是否可以在vlookup公式上使用第二个引用,例如返回产品A的价格,条件是必须在日期19/09/2016之前。

Adriano 阿德里亚诺

打印屏幕

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

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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