Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Cart Login
Search... Search
SistemasemAccess
EspecializadaemsistemasemAccessProdutividadeparasuaempresa!Gotoitlab.com.br
Generic formula
Related formulas
Count total characters in a range
Explanation
To calculate product bundle pricing using a simple "x" to include or exclude a product, you can use a formula based on
theSUMPRODUCT function. In the example shown, the formula in D11 is:
The SUMPRODUCT function multiplies ranges or arrays together and returns the sum of products. This sounds boring, but
SUMPRODUCT is an elegant and versatile function, which this example illustrates nicely.
In this example, SUMPRODUCT is con gured with two arrays. The rst array is the range that holds product pricing:
$C$5:$C$9
https://exceljet.net/formula/easybundlepricingwithsumproduct?utm_source=Exceljet+Newsletter&utm_campaign=c27be848caElegant_SUMPRODUC 1/5
12/03/2017 Excelformula:EasybundlepricingwithSUMPRODUCT|Exceljet
Note the reference is absolute to prevent changes as the formula is copied to the right. This range evaluates to the following array:
{99;69;129;119;49}
(D5:D9 = "x")
{TRUE;TRUE;FALSE;FALSE;FALSE}
The double negative (--) converts these TRUE FALSE values to 1s and 0s:
{1;1;0;0;0}
= SUMPRODUCT({99;69;129;119;49},{1;1;0;0;0})
The SUMPRODUCT function then multiplies corresponding items in each array together:
= SUMPRODUCT({99;69;0;0;0})
Effectively, the second array acts as a lter for the values in the rst array. Zeros in array2 cancel out items in array1, and 1s in
array2 allow values from array1 to pass through into the nal result.
SUMPRODUCT is set up to accept multiple arrays, but you can simplify this formula a bit by providing a single array at the start:
The math operation (multiplication) automatically coerces the TRUE FALSE values in the second expression to ones and zeros, with
no need for a double negative.
Related functions
Excel SUMPRODUCT Function
Author
Dave Bruns
https://exceljet.net/formula/easybundlepricingwithsumproduct?utm_source=Exceljet+Newsletter&utm_campaign=c27be848caElegant_SUMPRODUC 2/5
12/03/2017 Excelformula:EasybundlepricingwithSUMPRODUCT|Exceljet
dates, text, named ranges, and troubleshooting. Clear, short videos with
practice worksheets. Start today - instant access, 100% guarantee.
https://exceljet.net/formula/easybundlepricingwithsumproduct?utm_source=Exceljet+Newsletter&utm_campaign=c27be848caElegant_SUMPRODUC 3/5
12/03/2017 Excelformula:EasybundlepricingwithSUMPRODUCT|Exceljet
9Comments exceljet
1 Login
Jointhediscussion
bobinderchawla12daysago
thankyousomuchdear
Reply Share
Al13daysago
ThanksDave...peryouremailIcanseewhyyou'love'SUMPRODUCT...PersonallyIwouldn'tleavemygirlfriendfortheSUMPRODUCTFunctionbut
Igetyoursentiment:)
Thanksforsharing.....BigAl
Reply Share
Iwouldn'tleavemywifeforSUMPRODUCTeither,justtobeclear:)
Reply Share
kasper13daysago
Itriedtocombineanumberarraywitha"x"arrayinthesamecolumnbutitdosen'tseemtowork?
=SUMPRODUCT($C$6:$C$11F6:F11(F6:F11="x"))
Reply Share
Addingnumericarraysshouldworkfine,butinthiscaseF6:F11doesn'tseemright...sinceF6:F11isthesamerangethatcontains"x".
Reply Share
VinayGoel16daysago
imtryingsohardtolearnsir.thanks
Reply Share
SUMPRODUCTtakesalittlepractice,butit'sanawesomefunction.
Reply Share
TamerAhmad17daysago
Thanksalotforthisamazingsite.Keepitup.Examplesmakethingssimplelikecrazy.
Waytogo
Reply Share
Thanks,Tamer!
Reply Share
Functions | Formulas
Pivot Tables
Conditional formatting
VLOOKUP | IF function
https://exceljet.net/formula/easybundlepricingwithsumproduct?utm_source=Exceljet+Newsletter&utm_campaign=c27be848caElegant_SUMPRODUC 4/5
12/03/2017 Excelformula:EasybundlepricingwithSUMPRODUCT|Exceljet
Keyboard shortcuts
Excel pros | Books
https://exceljet.net/formula/easybundlepricingwithsumproduct?utm_source=Exceljet+Newsletter&utm_campaign=c27be848caElegant_SUMPRODUC 5/5