Creating Formula (Effective-Discontinue) Dates while using vlookup

安稳与你 提交于 2019-12-12 03:27:07

问题


I need some help in creating an effective formula to help me return a result into a field if the effective date is within the results column. Also want the formula to be calculated if the discontinue date has not expired.

Here is a snapshot of what I am looking to do. Project

Where as "T" will only return if effective date is 04/01/2015-04/30/2015 and still within the discontinue date. (T calculates by looking up a part number volume for that given month) I hope this is clear.

Thank you.


回答1:


I believe that this will do what you want:

=IF(AND(A2<=DATEVALUE("4/30/2015"),B2>=DATEVALUE("4/1/2015")),"Your function here","")

You'd get rid of the quotes for "Your function here" and replace it with your delta*vlookup formula.

If you formatted the column heading so it was just the first day of a given month (4/1/2015), you could automate the formula so that you don't have to adjust it for each month column.



来源:https://stackoverflow.com/questions/28097250/creating-formula-effective-discontinue-dates-while-using-vlookup

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!