Hi.
I am new to this forum and i was wondering if someone could help me out with an excel function i need
So i have a table with the sales per product and the remaining stock. I want a function to calculate the appropriate quantity to be returned to the warehouse.
If the sales are lowered than 2 peices i want to leave as stock t peices and the remaining peices to be returned. If sale are more that 2 pieces i want stock equal to the sales.
Here is an exmple table:
The column: QUANTITY TO BE RETURNED is the desired result using a function.
Thank you in advance for your help.
I am new to this forum and i was wondering if someone could help me out with an excel function i need
So i have a table with the sales per product and the remaining stock. I want a function to calculate the appropriate quantity to be returned to the warehouse.
If the sales are lowered than 2 peices i want to leave as stock t peices and the remaining peices to be returned. If sale are more that 2 pieces i want stock equal to the sales.
Here is an exmple table:
The column: QUANTITY TO BE RETURNED is the desired result using a function.
R163 | SALES | STOCK | QUANTITY TO BE RETURNED |
PRODUCT 1 | 2 | 3 | 1 |
PRODUCT 2 | 3 | 4 | 1 |
PRODUCT 3 | 1 | 5 | 3 |
PRODUCT 4 | 3 | 2 | |
PRODUCT 5 | 2 | 3 | 1 |
PRODUCT 6 | 0 | 7 | 5 |
PRODUCT 7 | 0 | 7 | 5 |
PRODUCT 8 | 1 | 6 | 4 |
PRODUCT 9 | 0 | 7 | 5 |
PRODUCT 10 | 0 | 7 | 5 |
PRODUCT 11 | 1 | 6 | 4 |
Thank you in advance for your help.