I have a large spreadsheet with lots of daily sales volumes and need to look up the sales number in a table to determine the cost varaible then multiply the total sales by cost. Can anyone help out. I was only able to come up with a simple IF statement to the first range. I need it to look through the min/max and if it is between those variables multiply it by cost.
My formula to calculate the $133,000.00 is:
IF(AND(B10>A2,B10<B2),(B10*C2))
Thanks for helping
Min Max Cost
0 500,000 $0.38
500,001 1,000,000 $0.30
1,000,001 2,000,000 $0.29
2,000,001 3,000,000 $0.28
3,000,001 4,000,000 $0.27
4,000,001 5,000,000 $0.26
5,000,001 100,000,000 $0.25
Total Sales 350,000 $133,000.00
1,00,002
2,000,004
3,000,003
4,000,005
8,000,000
My formula to calculate the $133,000.00 is:
IF(AND(B10>A2,B10<B2),(B10*C2))
Thanks for helping
Min Max Cost
0 500,000 $0.38
500,001 1,000,000 $0.30
1,000,001 2,000,000 $0.29
2,000,001 3,000,000 $0.28
3,000,001 4,000,000 $0.27
4,000,001 5,000,000 $0.26
5,000,001 100,000,000 $0.25
Total Sales 350,000 $133,000.00
1,00,002
2,000,004
3,000,003
4,000,005
8,000,000
Code: