Hi,
I'm kind of lost - I am able to do an IF and VLOOKUP to get the required data but now i am trying to add another IF and VLOOKUP formula to multiply by the discount rate if the purchase if made before the discount end date.
I'm really struggling to grasp on the best action to achieve these results.
[TABLE="width: 0"]
<tbody>[TR]
[TD]Options
[/TD]
[TD]Cost
[/TD]
[TD]Maintenance
[/TD]
[/TR]
[TR]
[TD]Phone
[/TD]
[TD]600
[/TD]
[TD]30
[/TD]
[/TR]
[TR]
[TD]Laptop
[/TD]
[TD]400
[/TD]
[TD]50
[/TD]
[/TR]
[TR]
[TD]Desktop
[/TD]
[TD]200
[/TD]
[TD]70
[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 0"]
<tbody>[TR]
[TD]People
[/TD]
[TD]Purchase
[/TD]
[TD] Start Date
[/TD]
[/TR]
[TR]
[TD]Bob
[/TD]
[TD]Phone (Dropdown)[/TD]
[TD] 01/01/2017
[/TD]
[/TR]
[TR]
[TD]John
[/TD]
[TD]Laptop (Dropdown)
[/TD]
[TD] 24/03/2017
[/TD]
[/TR]
[TR]
[TD]Andrew
[/TD]
[TD]Desktop (Dropdown)
[/TD]
[TD]04/04/2017
[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 0"]
<tbody>[TR]
[TD]Discount Rate
[/TD]
[TD]20%
[/TD]
[/TR]
[TR]
[TD]Discount End Date
[/TD]
[TD]30/03/2017
[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 0"]
<tbody>[TR]
[TD][TABLE="width: 0"]
<tbody>[TR]
[TD][/TD]
[TD]01/01/2017
[/TD]
[TD]01/02/2017
[/TD]
[TD]01/03/2017
[/TD]
[TD] 01/04/2017
[/TD]
[TD]01/05/2017
[/TD]
[/TR]
[TR]
[TD]Bob
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]John
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Andrew
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I'm currently using the formula =IF(C6<C11,VLOOKUP(B6,A5:C8,2,FALSE),0) for BOB 01/01/2017
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thanks,
I'm kind of lost - I am able to do an IF and VLOOKUP to get the required data but now i am trying to add another IF and VLOOKUP formula to multiply by the discount rate if the purchase if made before the discount end date.
I'm really struggling to grasp on the best action to achieve these results.
[TABLE="width: 0"]
<tbody>[TR]
[TD]Options
[/TD]
[TD]Cost
[/TD]
[TD]Maintenance
[/TD]
[/TR]
[TR]
[TD]Phone
[/TD]
[TD]600
[/TD]
[TD]30
[/TD]
[/TR]
[TR]
[TD]Laptop
[/TD]
[TD]400
[/TD]
[TD]50
[/TD]
[/TR]
[TR]
[TD]Desktop
[/TD]
[TD]200
[/TD]
[TD]70
[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 0"]
<tbody>[TR]
[TD]People
[/TD]
[TD]Purchase
[/TD]
[TD] Start Date
[/TD]
[/TR]
[TR]
[TD]Bob
[/TD]
[TD]Phone (Dropdown)[/TD]
[TD] 01/01/2017
[/TD]
[/TR]
[TR]
[TD]John
[/TD]
[TD]Laptop (Dropdown)
[/TD]
[TD] 24/03/2017
[/TD]
[/TR]
[TR]
[TD]Andrew
[/TD]
[TD]Desktop (Dropdown)
[/TD]
[TD]04/04/2017
[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 0"]
<tbody>[TR]
[TD]Discount Rate
[/TD]
[TD]20%
[/TD]
[/TR]
[TR]
[TD]Discount End Date
[/TD]
[TD]30/03/2017
[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 0"]
<tbody>[TR]
[TD][TABLE="width: 0"]
<tbody>[TR]
[TD][/TD]
[TD]01/01/2017
[/TD]
[TD]01/02/2017
[/TD]
[TD]01/03/2017
[/TD]
[TD] 01/04/2017
[/TD]
[TD]01/05/2017
[/TD]
[/TR]
[TR]
[TD]Bob
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]John
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Andrew
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I'm currently using the formula =IF(C6<C11,VLOOKUP(B6,A5:C8,2,FALSE),0) for BOB 01/01/2017
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thanks,