Hello
This is in relation with Thread Unable to derive Simple Multiplication result with IF(AND.... Cell Value 0 or Blank
As criteria changed
How Can I use Sumproduct or Sum with IF(VlookUp or Lookup
You can see
The Cell range from D15:F19 is Fixed
From Row 22 onwards Formula will be draged.
So as per the fixed Range From D15:F19 the following is the result
=((13*100*1.65)+(13*200*4.1)+(13*200*7.45)+(13*500*8.25)/100) = 858
=(SUMPRODUCT(C58*IF(E52:E55=0,100,E$52:E55)*F$52:F$55/100)) = 858
What i want here is in G22 = 677.095 because one condition of lookup or vlookup needs to be added
using below Formula
New formula in G22 =
=B22*(SUMPRODUCT(C22*IF(E52:E55=0,100,(LOOKUP(C22,E$33:E$36,E$33:E$36)*(C22-LOOKUP(C22,E$33:E$36,E$33:E$36)*LOOKUP(C22,E$33:E$36,F$33:F$36))))))
I am getting as 4274400 instead of 66709.50 Somewhere i went wrong
The condition is to look for value C22 and on basis of that using SUMPRODUCT OR SUM with IF(Vlookup or Lookup
or How to achieve the following result with Sumproduct or Sum with Vlookup or Lookup and Cells blank or = 0 in the Range From D15:D19
=((13*100*1.65)+(13*200*4.1)+(13*200*7.45)+(13*322*8.25)/100) = 697.095
322=822-500
RapchikM
This is in relation with Thread Unable to derive Simple Multiplication result with IF(AND.... Cell Value 0 or Blank
As criteria changed
How Can I use Sumproduct or Sum with IF(VlookUp or Lookup
You can see
The Cell range from D15:F19 is Fixed
From Row 22 onwards Formula will be draged.
So as per the fixed Range From D15:F19 the following is the result
=((13*100*1.65)+(13*200*4.1)+(13*200*7.45)+(13*500*8.25)/100) = 858
=(SUMPRODUCT(C58*IF(E52:E55=0,100,E$52:E55)*F$52:F$55/100)) = 858
What i want here is in G22 = 677.095 because one condition of lookup or vlookup needs to be added
using below Formula
New formula in G22 =
=B22*(SUMPRODUCT(C22*IF(E52:E55=0,100,(LOOKUP(C22,E$33:E$36,E$33:E$36)*(C22-LOOKUP(C22,E$33:E$36,E$33:E$36)*LOOKUP(C22,E$33:E$36,F$33:F$36))))))
I am getting as 4274400 instead of 66709.50 Somewhere i went wrong
The condition is to look for value C22 and on basis of that using SUMPRODUCT OR SUM with IF(Vlookup or Lookup
or How to achieve the following result with Sumproduct or Sum with Vlookup or Lookup and Cells blank or = 0 in the Range From D15:D19
=((13*100*1.65)+(13*200*4.1)+(13*200*7.45)+(13*322*8.25)/100) = 697.095
322=822-500
sumproduct-formula.xlsx | ||||||||
---|---|---|---|---|---|---|---|---|
B | C | D | E | F | G | |||
15 | No Of Units | Rate Per Unit | ||||||
16 | 0-100 | 0 | 1.65 | |||||
17 | 101-300 | 200 | 4.10 | |||||
18 | 301-500 | 200 | 7.45 | |||||
19 | 500 + Above | 500 | 8.25 | |||||
20 | ||||||||
21 | ||||||||
22 | 13 | 822 | 4274400 | |||||
Sheet4 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
G22 | G22 | =$B22*(SUMPRODUCT(C22*IF(E52:E55=0,100,(($C22-LOOKUP($C22,E$33:E$36,E$33:E$36)*LOOKUP(C22,E$33:E$36,F$33:F$36)))/100))) |
Press CTRL+SHIFT+ENTER to enter array formulas. |
RapchikM