How to Use SUMPRODUCT in Excel
ฝัง
- เผยแพร่เมื่อ 23 พ.ย. 2024
- Join 400,000+ professionals in our courses here 👉 link.xelplus.c...
Quickly learn how Excel's SUMPRODUCT function works. It is one of Microsoft Excel's most powerful yet often overlooked function.
⬇️ Download the workbook: pages.xelplus....
🔑 Key Highlights:
▪️ Start with basic SUMPRODUCT uses - perfect for those new to Excel.
▪️ Advanced Applications: See how SUMPRODUCT can replace complex functions like VLOOKUP and SUMIFS.
▪️ Real-World Examples: From calculating revenue to performing OR conditions, learn through practical scenarios.
▪️ Pro Tips: Crucial syntax tips for error-free usage.
The classical use of Excel's SUMPRODUCT function is to do a sum of multiplications. The good thing about SUMPRODUCT is that it can work on arrays of values and it doesn’t have to be entered as an array function so no need to do control + shift + enter (CSE).
The great thing about SUMPRODUCT, is that it can help solve many more problems in non-obvious ways. It can act as a conditional SUMIFS function or work as a lookup function as INDEX and MATCH does. It can also act as a COUNTIF function.
SUMPRODUCT is also a better SUMIFS, because it can check for OR conditions - which the SUMIFS can't. SUMIFS can only check for AND conditions.
In this video you will see different examples of the SUMPRODUCT function and you will learn how it can save you from unnecessary "workarounds" in your Excel files. It will also show you the SUMPRODUCT formula in slow motion.
➡️ Join this channel to get access to perks: / @leilagharani
👕☕ Get the Official XelPlus MERCH: xelplus.creato...
🎓 Not sure which of my Excel courses fits best for you? Take the quiz: www.xelplus.co...
🎥 RESOURCES I recommend: www.xelplus.co...
🚩Let’s connect on social:
Instagram: / lgharani
LinkedIn: / xelplus
Note: This description contains affiliate links, which means at no additional cost to you, we will receive a small commission if you make a purchase using the links. This helps support the channel and allows us to continue to make videos like this. Thank you for your support!
#excel
Grab the file I used in the video from here 👉 pages.xelplus.com/sumproduct-file
I can't believe how helpful this video was. As someone somewhat advanced in Excel the concept of SUMPRODUCT's utility has always somewhat evaded me. This video was laid out in such a perfect and simple format I completely grasp how the command is actually calculating now. I'm going to turn to your channel for any excel help. Nicely done!
I‘m very glad to hear that Corey! Thank you.
Superb. Without a doubt, you're excel guru. Someone called me yesterday guru because I made for them a simple software. But you're the real guru you're teaching billions of people around the world.
This helped me so much in my Excel interview today. I used sumproduct instead of countifs and sumifs and the interviewer was visibly impressed.
Thank you so much - you will have a lot of good karma (and business) for doing this.
I'm glad it was helpful!
@@LeilaGharani Wow... I'm very courious of it... what kind of task could it have been where I use sumproduct instead of countifs and sumifs? Could you or maybe Kapil P please give an example?
Meanwhile I studied "sumproduct", now I know that it can be used as countif (count quantity, as in this video, no numbers will be counted) and sumif (when there is only 1 array, so there's no multiplicaton)
@@LeilaGharani there any way I can add up a certain product in a list of many different items?
I love Leila!!! My favorite excel teacher!! I recommend her to everyone who wishes to expand their knowledge about any aspect of this tool!!!
This is awesome. Everytime I think "oh, I already know about this function" I'm wrong, because there is always something new to learn with your videos. Thank you!
It happens to me all the time :)
Your videos are amazing, i have a doubt regarding if lot of datas are there with respect to date...for example for 20 years .how to get month average of every month without using match or lookup or any cell reference formula.
One of your very best videos! Not only did I learn something about SUMPRODUCT, but your "slow motion" explanation is elegant and understandable. I try something similar when teaching SUMIFS, but you've really clarified it.
I spend hours to build a formula of index, match, countif and sum to find the sum value of a customer, But after watching this video for 3 minutes I see that SUMPRODUCT does exactly what I want lol. Thanks Leila Gharani, your tutorials are amazing!
I'm glad I could help with that Kai.
The hot tip for the + meaning or, blew my mind. Didn't know about it. Thank you so much!
You are so welcome, Roberto!
I have been using excel for work for quite sometime. Have been searching what function can perform both sumif & sumproduct at the same time. Finally, found this video! This is the most powerful function I have learnt in Excel so far! The tutorial had explained the function very clearly that make very easy to understand & apply! Also found that besides "+", can also use "-" to exclude some conditions. Thanks a lot!
You're very welcome. Glad you liked the explanation. True. SUMPRODUCT is so versatile by itself and on top it can be combined with other functions to create impressive one formula arrays.
I've always loved Sumproduct, it does so much; and nice to hear / see someone emphasizing the importance of bracketing, I ended up creating a crib sheet of every AND / OR combination I could think as I was always getting confused. Still do for that matter.
The simplicity and elegance of this use of sumproduct is genious, you rock!! 😀
First, I have only recently discovered your TH-cam channel, and I find it to be super helpful, and secondly, your explanation and uses for SUMPRODUCT will absolutely change the way I use Excel.
A few comments:
1. Typos in the SUMPRODUCT_Excel_Explained_Free_Worknook_Xelplus: in Cells H23, H24 and H25 the word is SUMPRODUCT (not “SUMPRODCUT”)
2. In practicality, I find the Average Price calculation misleading. Revenue of 98,200 divided by a quantity of 470 units is 208.94. Your calculation of 208.40 is effectively a simple average of the 5 prices, not reflective of how much was sold.
3. Curiously, when you double check the Average Price (around 13:45 of the video), the Status Bar shows an average value for the highlighted values in cells D46, D47, D48, D50 and D52 of 208. I get the same result of 208 when highlighting the numbers in the same sequence (D46, D47, D48, D50, then D52)
4. The numbers in those cells (100, 200, 320, 222, and 200) actually have an average of 208.4. Somehow, the Status Bar shows a different (incorrect?) number of 208.
5. Even more curious, on my computer, when I highlight the cells from your file in reverse order (D52, D50, D48, D47, then D46) the Status Bar shows the correct Average Price of 208.4 … I don’t know why this is, but I am hoping you can explain it!
i’ve worked with sumproduct but this segment cleared up unanswered questions. Thank you!
Great demo for this great function! the array aspect of it now got a bit forgotten by old-timers with all the new array native functions. TY
One of the best teachers on the internet. Bravo.
Yeah, I agree, I even have done a few of her courses online through Udemy.
At my work now I am now considered a bit of an Excel Guru... These videos have really helped.
Super clear demonstration. Short and precise. Thank you!
Rightly said that this is for advanced users....many would have used sumproduct in a elementary level but with criteria it makes a very useful tool....thanks again
Very true. It really is a powerful function that is often overlooked.
Who says there is no such thing as free lunch........ knowledge i always have had from u The Leila is tremendous.....I have no words to express my thanks....... Video is wowwwwwwwwwwwwwweee....
I'm glad you like it. Many thanks for the kind feedback.
Hello!! This is an amazing channel! I used Sumifs, index match mainly but not Sum product. I knew more than most in both organisations over the past decade but, this is a game changer! Thank you so much!
Glad it's helpful for you. Sumproduct really can be quite useful.
Trust me, your style of teaching and logic is so simple yet powerful
Thank you!
Hi Leila, you have made life so easy for all of us. The only thing one has to do is turn on TH-cam and watch your channel. You have so precisely explained use of comma and aster sign while using SUMPRODUCT.
Thank you so much Sachin for your continuous support. It means a lot!
@@LeilaGharani Thanks for your lovely words :). Taking this SUMPRODUCT a step further, request you to upload video on using SUMPRODUCT to add up values containing specific whole number in range of cells :)
This just became my favourite explanation of the SUMPRODUCT function!
All of the blog posts about SUMPRODUCT that I had previously bookmarked are now redundant.
Great job Leila!
Thank you! I'm glad to hear that snicho :)
Thanks, didn't know why some of my formulas worked with a coma, but not with a *. Now I do, thanks (understanding what Excel is doing with those true/falso and 1/0 made the difference).
Leila, thanks for sharing this exquisite function. Usually we tend to use countif/s, sumif/s for they are quite a simpler than sumproduct. The slight rigidity of sumproduct is in understanding use of "*" ,"+" and "=". This will take a person little while to get hang on to. But still surely useful. Thanks again...
Yes, true - we have to be careful with the brackets too when using SUMPRODUCT. But the great thing about it, is it can simply do OR conditions which the SUMIFS can't do easily - (unless we use two or more SUMIFS functions or wrap the SUMIFS inside a SUMPRODUCT function :) )
Wow..... Just wow! This helps a lot with my excel problems.
Still watching a lot of your contents and they are all very helpful since you're so good at explaining the concept really well.
You have an exceptional/genius skills in excel! I'll watch them all and proceed with your VBA next. 😉
I wish I could give this video 1000 thumbs-up. I finally understand SUMPRODUCT well enough to use it on my own. Thank you Leila Gharani!
I'm already happy with the one thumbs up :) I'm glad the video is helpful Thomas.
Super clear and simple. Wow.....
@Leila is the Goddess of Excel...this video had answers to lot of my queries...thank you..u are the best
superb explanations i found 2nd best tutorial ever on youtube that makes u matchless!!!!!!!!!!!!!!!!! mam could u please make a video on lookupformulas beginner to advance
Hi Jacky. That is so flattering!! Thank you! I have a video on VLOOKUP & HLOOKUP. I'll try to get it loaded before the weekend.
Is the 1st best tutorial also about Excel? If so, would appreciate if you let me know what it is.
the easiest and clearest explanation, many thanks, wish you always the best. please keep it up
you are amazing. thank you. such a clear explanation. hot tip of true value as 1 and false value as 0 is brilliant
Excellent. I was little bit tensed. How and where I will use sumproduct. You make me clear. Thanks.
each time I see your video I know I'm going to be surprised. This one is not an exception. Thank you for sharing.
This revealed the secrets of the almighty and powerful sumproduct for me. Seriously, great examples and explanations. Thank you!
Glad to help Morgan. Hope it'll come in handy for you.
Good information here and clearly explained as always. You need to be very careful using + as an OR operator though... It's perfectly fine in this scenario where only one of the conditions can be TRUE (ie. a company value cannot be both Company A and Company C). In more complex boolean operations where multiple conditions of the OR statement can be TRUE, this method will not work because the term will be evaluated as a count of the number of TRUE conditions.
For example, if (for whatever reason) you wanted to return [Company = Company A] OR [Month = Feb]. In this scenario, it would return a revenue of (2 x 60000) + (1 x 10000) + (1 x 18000) + (1 x 38500) + (1 x 22200) + (2 x 36000) + (1 x 16000). This is an incorrect result because it is counting the 60000 and the 36000 twice.
I amazed with your presentation, explanation and giving understanding. I never ever come across like this teaching, like you your math’s skills are superb. Please help me for giving 1st rank, you or your teachings.
Thanks for the very kind words. Very glad to hear the explanation & content is clear :)
your teaching methods is very easy and effective. thank you so much for that
Easy way of teaching complex formulas. Appreciate your hard work❤.
Your explanation of excel formula's are outstanding.
@
Leila Gharani, your channel is amazing. Every time I watch a video, I gain specific useful knowledge to put in good use. Thank you for the great videos.
You're very welcome. I'm glad the tutorials are helpful.
@@LeilaGharani , the content you provide is outstanding. I've had a personal project for several years now. I've been improving it using the knowledge from your videos. Due to the episode explaining INDEX and MATCH, and their combination, I was able to get rid of the clunky VLOOKUPs. I was in the process of implementing new features and automation to the project (struggling for several days, stacking IFs, ANDs, ORs, NOWs and INTs on top of one another) when I stumbled on this video, I could quite easily understand how the SUMPRODUCT function works and how powerful it really is. Then, in a matter of less than an hour, I managed to solve my problems with a concise and neat expanded SUMPRODUCT function, or as it was later called in my notes "The Magic Formula". Once again, your content is really helpful, comprehensive and easy to understand and implement. *THUMBS UP*
It's so great to hear that you could apply knowledge learned from my videos to your projects. Makes me happy :)
How fantastic your interdiction for SUMPRODUCT formula. It is useful for me, Thank you Leila.
I'm happy to hear you find it useful. Thank you for the feedback.
Textbooks never go in to the why or the practical use of functions. Thank you for making this ❤️
You're so welcome!
Great explanation. It helped me in creating very useful calculations. Thanks.
really awesome tutorial, I can not tell you how many problems this video has solved for me..... 10000000 likes
Best instructor! Bar none! You make it so comprehensive!
Wow, thank you Darcy!
Very well done. Thank you. The -- in front of a True/False string transform it in a 1/0 string so we may use for math operations.
Hi liela, first of all I want to say many many thanks for sumproduct formula you solve my big confusion question. This video help full for me 👍👍👍👍
You're very welcome. I'm glad the video is useful!
Many new functions in Excel, but this video is like about a new star too. Very inspiring, thank you!
i stumbled into your videos while bored at work. i love your explanations, great work! now i have to watch all your videos and pick up all the cool tricks!
Thank you! I'm glad to hear that :)
You can use OR in sumifs and countifs by providing your criteria as an array {"C1", "C2", "C3"...} instead of one criteria per range
First of all I would like to say that your tutorials are amazing.
I'm having a hard time overcoming a problem and I really appreciate your support.
I have a holiday form that receives the following information in a spreadsheet:
email, start date of the holidays, end date of the holiday
I need that when a new order is entered, compare it with all previous ones to verify that the same person is not duplicating orders or overlapping days already ordered.
I am using the sumproduct function but I am not achieving the goals
Glad you like the tutorials. With regard to your question - not sure without seeing the problem....At the moment though I have a lot of projects that need to get done...best would to post your specific question either here: www.mrexcel.com/forum or here: www.excelforum.com/ - you can post a link to your question here too and if I get a chance I can take a look, otherwise you will get answers from others...
Thanks Leila for showing us the + and * trick when doing OR and AND!
It is really amaizing that, this video is free !!. Excellent work Leila. Sumproduct is really an amaizing and extreemly usefull function
This is an amazing video, even though English is a foreign language for me but the way you explained the sum-product function, very easily learned it.
Great to hear!
Great......Leila..,really helpful and extraordinary explanations......very very thanks.
Brilliant teaching style, Leila. Your work ethic and the quality of your presentations are inspiring. Thank you for posting these tutorials.
Thank you Bianca! I'm glad you find the tutorials useful.
Wow, with your teaching I have worked out where I was going wrong with sumproduct. Thanks!
Glad to help Irene.
I am very grateful to you Leila, you really opened my eyes to learn something truly nice and useful and absolutely helpful. You are more than amazing. I like your videos so much.
I'm really glad it is helpful!
Best Explanation Videos ....Mam,u r the best and a naturally gifted teacher.
Thank you very much Sanjeev for the kind words. Glad to hear you like the videos.
Thanks again, Leila!
Wow!, I am an advanced excel user and never knew that we can do so much using Sumproduct. Thanka Leila :)
I'm glad the video is helpful!
FINALLY, someone who explains this in a way that makes sense! Thank you.
You're very welcome. I'm glad it makes sense :)
Another great video. This sort of formula is really elegant. It makes multi condition statements so much easier and takes very few helper cells.
Great explination of how Excel interprets the information.
That's how Excel (and everything) should be taught. Thank you
Thank you very much Leila for teaching us Excel functions. Can you kindly do a session on how to use Excel cubes?
Excellent explanation..!! Hats OFF..! thank you so much for a wonderful video . you are really a Genius ..!
You are most welcome!
I had been watching your videos for a while, but this somehow slipped me. What you can do with Sumproduct is just another level!!
It really is an underrated function!
@@LeilaGharani Agree, totally!
@@LeilaGharani there are other similar ones, unknown and under-rated. DGET for example is an older function to VLOOKUP, but much more versatile. Maybe you should do a video on such not so popular functions
great function. thank you for this video to know how we can use it. it's easy to learn with you and good example.
This was a wonderful tutorial. Had been doing vlookup with multiple "ifs" till now. This was amazing.
Thanks for the video, I've had sumproduct on a test for the job today and I never used it before (only used sumif/s) and couldn't figure out it, guess the +, *, = and brackets is what I should have known about, but now I'm ready for the next time :)
Exactly! Always good to be prepared :)
SUMPRODUCT should be used wisely. I was admired of this powerfull formula and started to use SUMPRODUCT everywhere instead of SUMIFS and COUNTIFS. But eventually I felt slow down of calculations :-) So I ran a simple test of both formulas on 10k rows. SUMIFS calculated them in 12,8 seconds, and SUMPRODUCT did the same in 140 seconds.
Leila Gharani, I found your videos great and helpful. You are doing a great work. Your mode of delivering information and your presentation is best of best. Slowly and steadily you focus on each and every point and make lecture complete. May God reward you for this kind work. Wish you success. Thanks
Thank you so much for your comment! Makes me very happy to hear you find the videos helpful.
Just found this video and it's very helpful. This is a relatively unknown but elegant and powerful function.
Glad you like it!
Merci. Avec vous on est sûr s’apprendre quelque chose à la fin de la vidéo. Amicalement.
Priceless illustration! It`s hard to find words to express my appreciation
Thank you for the kind feedback!
EXCELLENT explanation. You do a marvelous job explaining a complex function. Thank you!
You're welcome Robert. Glad you like the explanation.
Your videos are so clear and concise. Thank you so much for all the help you have provided me.
Thank you for the kind feedback, Mark!
Awesome video. Now I got to know about the real use & value of SumProduct Function
Actually - Excel has always been able to do all of these things. The keys were knowing that 1). Excel treats ranges as math arrays, 2) that Excel understands Boolean logic and math, and 3). how to use those to do the things Leila described. The things Leila describes in this video are all about Boolean logic. Once you have a Boolean test result inside parentheses these can then be multiplied by something or added, subtracted or divided, the type changes from logical true false to 1 and 0 respectively. This is actually quite easy to understand and use. Now you can leverage that to use it in formulas.
This same process is used and forms a basis of ladder logic programming used in industrial process controllers. Ladder logic is a radically different and often vastly more efficient form of computer programming. It strips away all of the language and uses logic to drive programming. For the problems Leila described using sumproduct, almost all work with sum(), sumif(). Etc. Provided the logic is properly structured. Also, you can mix these Boolean expressions and logic used in Excel formulas. Is extremely powerful. You just have to understand a couple key concepts to use them.
This can be used to simplify many nested IF statements. If all of the IF statements in a compound IF formula resolve the same way, you can combine them by using logical tests together.
Let’s say you have three IF conditions A, B and C. If you want to test X (a cell or range) for the case where any one of these is true, then use IF( (X=“A”) + (X=“B”) + (X=“C”) , “TRUE”, “”FALSE”). Addition results in an answer where the sum is 1 or more if any of the conditions is true, and that resolves as true in the IF formula.
If you only want results where ALL three cases are true, substitute multiplication for addition. If any one of the tests is false it resolves to 0 and multiplying by the other two also resolves to 0 hence false.
You can create much more complex logical tests than that for different and more complex cases. These are far easier to understand when they are written in Boolean than they are in complex nested IF statements.
You can also return results (as Leila did here) which are the result of array multiplication.
Be careful though, when Excel tables are involved things can get tricky. You can easily get #SPILL! and other errors when you use or mix array math and tables. You may also get a result that spills when you expected a single result. In many cases the answer is to use the non-array versions in tables, then sum the column.
Very clearly explained! Thank you Leila, you are a good teacher!
I'm glad you like it!
OMG, Thank you! I never understood why I was using the * in a sumproduct with condition/exceptions!
You are so welcome!
WOW! It's a much better formula than countif/ sumif. Learned it last year from your video. But went back to old habit without even realizing. Good to rediscover this gold nugget.
Glad it was helpful!
You are great at explaining. I learned much of this already but you explain how and why it works superbly!
Thank you! I'm glad you find the tutorials easy to follow :)
I think you can use the "N" (number) function to force the Boolean values ("TRUE"/"FALSE") to numbers, rather than using double negation ("--") or a number operation (e.g. "1*"). Advantage is that it a bit clearer what you are doing IMHO ...
Great series BTW!
very nice explanation ........... your teaching method is very easy to learn ...... Thanks!!!!! .....wow.....
You are most welcome
Wow just awestruck by your materials and explanations of concepts. Thanks a ton.
You're very welcome. Glad you find the tutorials helpful.
These tips made my life much easier. Thanks Leila
Wow......... Today i have learnt new thing.......... Thank You Leila
That's always good :)
This is wonderful and very helpful, I was able to solve my query after I saw your video, thanks.
Leila Thank you so much and God bless you for these wonderful tutorials that have transformed me.
My pleasure Charles. I'm glad you find the tutorials helpful.
Wow Leila This saves me so much time. Thanks Heaps!!
Thank you. I always thought we must use array formulas for such AND/OR applications.
I’m impressed with your knowledge
This is very helpful and important formula I know sumproduct but I didn't know all its uses l learn so much from yr youtube excel videos and I improve my excel grade
Yes - SumProduct is an amazing formula :)
Excellent presentation Ma'm, I also faced lot of problems due to brackets, keep up good work
Thank you soooo much. You are a great teacher. Your explanations are so clear and concise. Really exceptional. 😊❤
Thank you! 😃
The best part of SUMPRODUCT is that it works on closed external links whereas SUMIFS & COUNTIFS gives a #VALUE error when referenced to a closed external workbook.
Wow... Superb ... !!! New learn things about excel... Thanks!