问题
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