Multiple criteria (date range, product code, value) vlookup and if functions or do I need index and match?

StaceyVECL

New Member
Joined
Apr 13, 2022
Messages
25
Office Version
  1. 365
Platform
  1. Windows
I apologise if this has been asked before but I can't seem to find an answer.

I need the end result to be a discount given based on the product code, date range and quantity.

For example: Based on the order date, product code, and quantity from the below table the discount should be -15.00. Obviously if someone were to order 2 it would -30.00

ABCDE
ORDER DATEPRODUCT CODECUSTOMER CODEQUANTITYDISCOUNT
13/04/2022B2001234561-15.00

I have separate tab with the discount values and dates called "Formulas"

A B
PRODUCT CODEDISCOUNT
START DATE
END DATE
B200-15.00
13/04/2022
03/05/2022

I need column E on the first table to look up column A, B and the dates from the formulas tab and give me the discount result.

I've used IFS, SUMIFS, and vlookup's before but I just can't seem to figure this one out.

Thanks in advance.
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

Forum statistics

Threads
1,215,339
Messages
6,124,375
Members
449,155
Latest member
ravioli44

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top