Excel SUMIFS: Sum Alternate Columns based on Criteria and Header

Join 400,000+ professionals in our courses here 👉 link.xelplus.com/yt-d-all-cou...
Unlock the power of Excel in handling data and creating dynamic sums based on user selection. Learn to build an intuitive dashboard report that updates automatically with every change in parameters. Perfect for corporate professionals, data analysts, and anyone looking to enhance their Excel skills.
⬇️ Download the workbook here: pages.xelplus.com/sumproduct-...
Learn how to sum columns based on column header and on criteria.
To solve this with SUMPRODUCT: • Excel SUMPRODUCT with ...
What You'll Discover:
▪️ Dynamic Sum Creation: Learn how to sum varying columns based on user-selected parameters.
▪️ Data Validation: Implement data validation for refined user input.
▪️ Interactive Dashboard Reports: Construct a dashboard-type report for effective data representation.
▪️ Practical HR Data Application: Apply these techniques to real HR data scenarios.
This example shows you a set of HR data. The aim is to create a report where the user inputs the cost center and selects which information they want to see for the cost center - for example the total salary, benefits or bonus information. The challenge is to SUM based on criteria (cost center) AND based on column header selection.
The solution shown in the video uses SUMIFS together with INDEX MATCH to provide a moving sum. The 2nd argument of the INDEX function using area numbers is also used to show an alternate solution.
To learn more about the SUMIFS function, check out this video:
• How to Use SUMIFS, COU...
➡️ Join this channel to get access to perks: / @leilagharani
👕☕ Get the Official XelPlus MERCH: xelplus.creator-spring.com/
🎓 Not sure which of my Excel courses fits best for you? Take the quiz: www.xelplus.com/course-quiz/
🎥 RESOURCES I recommend: www.xelplus.com/resources/
🚩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

Пікірлер: 396

  • @LeilaGharani
    @LeilaGharani6 ай бұрын

    Grab the file I used in the video from here 👉 pages.xelplus.com/sumproduct-alternate-file

  • @raghuv7114
    @raghuv71144 жыл бұрын

    This video never gets old. Such a beautiful explanation on index and match along with sumifs for different columns.

  • @1gopalakrishnarao
    @1gopalakrishnarao7 жыл бұрын

    Just one thing which I want to write"" Excellent". You are doing a great job for the Excel users/lovers/addicts. Waiting eagerly for your every video, your trick, your explanation, your logic. Hats Off!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • @LeilaGharani

    @LeilaGharani

    7 жыл бұрын

    Thank you so much Gopala. Very glad to hear you enjoy the videos :)

  • @euniceesinam2573
    @euniceesinam25733 жыл бұрын

    Hi, Leila, as always, thanks for simplifying my work. Just to add, I use Indirect to dynamically change the sum range, but given that it's volatile, I always sought a better way; yours is better.

  • @ColinKinsella
    @ColinKinsella4 жыл бұрын

    Great work. Your step by step approach is so logcal. I had this working on my own spredsheet in nearly real time following your steps.

  • @irislee7999
    @irislee79993 жыл бұрын

    I have learnt a lot from excel videos, not simply usage of excel functions but also a lot of workaround solutions. Thank you so much for great efforts!

  • @sachinrv1
    @sachinrv17 жыл бұрын

    Hi Leila, this is again one of the fantastic example of integrated functions. In excel, I feel a function really has a limited usefulness when used by itself, but when used in combination of other related functions, it produces amazing results. Always love to watch your videos on excel. Keep sharing..

  • @LeilaGharani

    @LeilaGharani

    7 жыл бұрын

    Fully agree Sachin. As a team the formulas can achieve amazing results :)

  • @mohammadraiesh4648
    @mohammadraiesh46485 жыл бұрын

    Mind blowing techniques used to dynamic sum. Thanks a lot.

  • @reidsexton2869
    @reidsexton28694 жыл бұрын

    This is great stuff! So glad I stumbled upon your page. The way you clearly explain not only the "How" but the "Why" is a real value add. You have a new subscriber!

  • @LeilaGharani

    @LeilaGharani

    4 жыл бұрын

    That's great! Good to have you here.

  • @bigman55434
    @bigman554343 жыл бұрын

    Excellent explanation of this application of SUMIFS with Index/Match to determine the sum column. Much appreciated.

  • @maherahmad6982
    @maherahmad69827 жыл бұрын

    Brilliant video and I like the way of giving the lecture clear and slow, the result is easy to understand and remember :)

  • @LeilaGharani

    @LeilaGharani

    7 жыл бұрын

    Thanks Maher. Glad you like it :)

  • @deba8296
    @deba82966 жыл бұрын

    thanks!!!! for posting such brilliant tutorials, I have applied most of these in our day to day business decision models using excel and been immensely benefited, keep it up, cheers!!!!

  • @LeilaGharani

    @LeilaGharani

    6 жыл бұрын

    I'm very happy to hear that! Thanks for the encouraging comment and the support!

  • @jonathanrobinson688
    @jonathanrobinson6885 жыл бұрын

    Thanks! This helped me a lot to find out how to sumifs with dynamic columns!

  • @ericsaldana5375
    @ericsaldana53754 жыл бұрын

    best teacher! Thanks for sharing this with us.

  • @user-oc5ko6gs5t
    @user-oc5ko6gs5t5 жыл бұрын

    Mem seeing your video has made me a good knowledge of Excel

  • @mackenmd
    @mackenmd4 жыл бұрын

    So very happy I stumbled upon this video. Your explanation abilities are exceptional. I’m an instant subscriber - thank you!

  • @LeilaGharani

    @LeilaGharani

    4 жыл бұрын

    Glad you like it. It's great to have you here.

  • @Poopshoot88
    @Poopshoot88 Жыл бұрын

    Leila, you're brilliant!! Thank you!!

  • @peterwadsworth4607
    @peterwadsworth46077 жыл бұрын

    Hi Leila I've worked with Excel for many years but learn something new every time I watch one of your vids. Just one quibble. The singular of "criteria" is "criterion". Keep up the good work. Peter

  • @LeilaGharani

    @LeilaGharani

    7 жыл бұрын

    Hi Peter - Glad you like the videos and find the content useful. As for criterion - That's good to know - I always went with criteria for singular and plural :)

  • @PMsPoints
    @PMsPoints5 жыл бұрын

    Many thanks for your valuable information.

  • @prasannaganesh3824
    @prasannaganesh38246 жыл бұрын

    Hi Leila, Really your videos are very useful for me!! I am looking forward More videos from you.

  • @mtariqraheem1
    @mtariqraheem117 күн бұрын

    Thank you Dear, your videos are really helpful.

  • @MIRZA1515
    @MIRZA15155 жыл бұрын

    What a wonderful tutorial with a very clear explanations, thank you so much.

  • @LeilaGharani

    @LeilaGharani

    5 жыл бұрын

    You're very welcome! I am glad you like the video.

  • @ismailismaili0071
    @ismailismaili00716 жыл бұрын

    the between bracket idea inside the Index function is new thing for me thank you so much Ms. Leila.

  • @LeilaGharani

    @LeilaGharani

    6 жыл бұрын

    You're very welcome Ismail - yes that can come in handy... :)

  • @kevintrump6594
    @kevintrump65942 жыл бұрын

    thanks so much Leila am enjoying your simplicity

  • @wiliwiliful
    @wiliwiliful6 жыл бұрын

    Thanks for this video it's so helpful

  • @bobtheauditor08
    @bobtheauditor085 жыл бұрын

    This is awesome. This is just what I needed to conditionally sum on variable columns. I will have to check out more of your videos. Great Job!

  • @LeilaGharani

    @LeilaGharani

    5 жыл бұрын

    I'm glad to hear that! Thank you for your comment.

  • @smilgu
    @smilgu3 жыл бұрын

    Super useful, as always. Thanks a lot!

  • @praafullckashelkar3795
    @praafullckashelkar37956 жыл бұрын

    Hi Leila, It's really good tutorial and I have used this for my future use in office calculation.

  • @LeilaGharani

    @LeilaGharani

    6 жыл бұрын

    You're welcome Prafull. Glad to hear that :)

  • @elinakulashkina5034
    @elinakulashkina50346 жыл бұрын

    You are great at explaining complex things, thank you!

  • @LeilaGharani

    @LeilaGharani

    6 жыл бұрын

    I'm glad you find it easy to follow. Thank you for your support.

  • @hasanahmed-ls9lb
    @hasanahmed-ls9lb5 жыл бұрын

    still some good person exits who help people for nothing.. thanks madam. i am watching your video from far away....

  • @galporgy
    @galporgy11 ай бұрын

    Awesome video: clever, clear, concise, and useful.

  • @JRVariety
    @JRVariety3 жыл бұрын

    it's really hard to find the best video like this, thanks for your good tips

  • @SanjayKumar-yx6gc
    @SanjayKumar-yx6gc7 жыл бұрын

    Most welcome , we are waiting your next video. Thank you so much.

  • @LeilaGharani

    @LeilaGharani

    7 жыл бұрын

    Just uploaded it :)

  • @walek2001
    @walek20016 жыл бұрын

    GREAT JOB! THANK YOU!

  • @santoshgnaga8540
    @santoshgnaga85405 жыл бұрын

    Very informative ....simple .....Clear .....good job leila madam

  • @resrussia
    @resrussia7 жыл бұрын

    Thanks for another interesting video. As trainer, I appreciate your taking the time to work through the reasoning behind the formula. I am trying a new strategy with your videos. Instead of just watching the videos (and taking notes), I watch the introduction and see if I can derive your solution on my own. Sometimes I able to arrive at the same solution, sometimes I find a different solution and most of time I cannot figure out a solution. I took a slight different strategy solve the problem. I defined names for each of fields/columns containing values being summed and used the INDIRECT function to decide which field to use based on the name of ranges. Thanks again for a wonderful video and a good intellectual challenge.

  • @LeilaGharani

    @LeilaGharani

    7 жыл бұрын

    That's a great learning approach and also a great answer you came up with! It's great to hear your ways of getting to the answers for me and others too because it provides all of us different perspectives and methods to getting to the same place. Thank you so much for sharing....

  • @tedsterrett7204
    @tedsterrett72043 жыл бұрын

    Miss it's great that you are able to help so many people in their jobs and businesses, very inspirational to business people and others, Thank you.

  • @LeilaGharani

    @LeilaGharani

    3 жыл бұрын

    It's my pleasure Ted.

  • @followthetruth3283
    @followthetruth32835 жыл бұрын

    Thank you so so much... I was looking for this way from a long time....

  • @followthetruth3283

    @followthetruth3283

    5 жыл бұрын

    Thanks you so much for love my comment....... I tired this formula but its work only on same sheet. As long as I tried to get the result from one sheet to another. I got N/A.... is there any solution plzz? Can u help me?

  • @mrsingh5224
    @mrsingh5224 Жыл бұрын

    Super helpful for me... Thank you Leila..

  • @christoperwijaya15
    @christoperwijaya153 жыл бұрын

    So much helpful! Thanks for the idea!

  • @allo801
    @allo8014 ай бұрын

    brilliant video, many thanks!

  • @riteshgangwani115
    @riteshgangwani1154 жыл бұрын

    YOU KNOWLEDGE IS VERY HELPFULL, THANKS

  • @nazilahajizadeh6932
    @nazilahajizadeh69325 жыл бұрын

    Thank you Leila . You are GREAT teacher .

  • @LeilaGharani

    @LeilaGharani

    5 жыл бұрын

    You're very welcome Nazila. I'm glad you like the tutorial :)

  • @anasleco
    @anasleco4 жыл бұрын

    MY GOOOOOOD, you just answered my excel nightmares question, I lost sleep to find it. You are great, thank you so much.

  • @LeilaGharani

    @LeilaGharani

    4 жыл бұрын

    Happy to help! Now get some rest 😊

  • @Dev_Bartwal
    @Dev_Bartwal7 жыл бұрын

    I love your way of teaching .. your teaching technique can give me bettr job I really thankful to you.. Regards, Dev Bartwal

  • @LeilaGharani

    @LeilaGharani

    7 жыл бұрын

    You're welcome Dev! Very glad to hear you find the content useful.

  • @automationguide3498
    @automationguide34987 жыл бұрын

    Never knew about that trick using index with sumif's to change sum range dynamically. Thank You !!

  • @LeilaGharani

    @LeilaGharani

    7 жыл бұрын

    You're welcome Harsha.

  • @sachinrv1
    @sachinrv15 жыл бұрын

    Nice video Leila, cheers 👍

  • @TH3LMITA
    @TH3LMITA6 жыл бұрын

    Thank you very much for sharing all your knowledge, I really appreciate it, I have learned a lot from you, and I would like to share this other option, using the titles of the columns in the table and obtaining the same result =SUMIF(Table1[Cost center],J6,INDIRECT(CONCATENATE("Table1[",K6,"]")))

  • @suryachitra8895
    @suryachitra88956 жыл бұрын

    Thank you so much, finding you on you tube is my luck. Your videos are very much helpful.

  • @LeilaGharani

    @LeilaGharani

    6 жыл бұрын

    I'm very happy to hear that Surya! Glad you find the content useful.

  • @caakashtanwar8627
    @caakashtanwar86274 жыл бұрын

    Some fools dislikes the video... strange...Great video ma"am ...always enhance knowledge

  • @khawarameer
    @khawarameer6 жыл бұрын

    Thanks Leila for sharing this useful video. The reference section of index formula was a new thing to learn.👍👍👍

  • @LeilaGharani

    @LeilaGharani

    6 жыл бұрын

    Glad you like it :)

  • @yvonneyu6688
    @yvonneyu668810 ай бұрын

    This is super great and helpful! Finally found it! Thank you so much for the sharing~❤️

  • @jasminedo7891
    @jasminedo78914 жыл бұрын

    Thanks you!!!!! It's so helpful for me.

  • @ShaanviKiDuniya
    @ShaanviKiDuniya6 жыл бұрын

    Your videos are really helpful in my work. Thank you (from India)

  • @LeilaGharani

    @LeilaGharani

    6 жыл бұрын

    I'm glad to hear that! You're very welcome.

  • @devadevendran7028
    @devadevendran70286 жыл бұрын

    Hi Leila, ultimate teaching, even excel beginners can understand the dynamic rules.... Keep posting more dynamic video's

  • @LeilaGharani

    @LeilaGharani

    6 жыл бұрын

    Thanks Deva. Glad you like it.

  • @RaviSingh-wm4gm
    @RaviSingh-wm4gm4 жыл бұрын

    Wow, thankyou ma'am for amazing trick.

  • @LotfyKozman
    @LotfyKozman7 жыл бұрын

    Great job Leila, you offered a very healthy plate contains a lot of vitamins: Data Validation, Sumifs, Index (Array & Reference), and Match. This plate might be richer than the delicate Pivot Table plate. Thanks for your efforts.

  • @LeilaGharani

    @LeilaGharani

    7 жыл бұрын

    Many thanks Lotfy - that's a very nice way of putting it :)

  • @shailendrakumar08
    @shailendrakumar085 жыл бұрын

    Great way to explain!

  • @kolagilbert1215
    @kolagilbert12154 жыл бұрын

    Excellent. Thanks for sharing,

  • @rajupatel5311
    @rajupatel53116 жыл бұрын

    thanks mam....this video is very helpful for me ........

  • @TheAhmedsaqr
    @TheAhmedsaqr7 жыл бұрын

    Many Thanks, really great video

  • @LeilaGharani

    @LeilaGharani

    6 жыл бұрын

    You're very welcome Ahmed. Glad you like it.

  • @KamranMumtazAhmed
    @KamranMumtazAhmed5 жыл бұрын

    Simply amazing

  • @wiliwiliful
    @wiliwiliful6 жыл бұрын

    Thanks for this video it's helpful

  • @JSmith-xq3uw
    @JSmith-xq3uw2 жыл бұрын

    Life saver! Thanks so much

  • @backendadmin1217
    @backendadmin12175 жыл бұрын

    Leila, you are awesome.

  • @lemyandreev2019
    @lemyandreev20194 жыл бұрын

    Thank you so much! My level in excel is only intermediate and this video has helped me a lot in solving one of my excel tasks! You got another subscriber! :-)

  • @LeilaGharani

    @LeilaGharani

    4 жыл бұрын

    Glad it was helpful. Great to have you here!

  • @ankursingh35
    @ankursingh356 жыл бұрын

    All your videos are really very informative and educational. I like Excel and have learned a lot from you. Thank you so much for giving us such opportunity to learn from you.

  • @LeilaGharani

    @LeilaGharani

    6 жыл бұрын

    Thank you Ankur for your nice comment and for your support. I am really glad you find the videos useful.

  • @ankursingh35

    @ankursingh35

    6 жыл бұрын

    Again thank you ma’am.

  • @VenkiDas
    @VenkiDas2 жыл бұрын

    This is awesome, thanks for a great tute.

  • @dominickmilano
    @dominickmilano2 жыл бұрын

    Outstanding, thank you!

  • @viniciuslimasantos7034
    @viniciuslimasantos7034 Жыл бұрын

    I need to test it but you may have changed my life at work :)

  • @mando388
    @mando3883 жыл бұрын

    very great information, its help me too much in my work

  • @teoxengineer
    @teoxengineer4 жыл бұрын

    Hi Leila, Also, we can use for range selection with appling CHOOSE&MATCH functions instead of index. =SUMIFS(choose(match(K6;Table1[[#Header];[Base salary]:[Bonus]];0);Table1[Base salary];Table1[Benefits];Table1[Bonus]);Table1[Cost center];J6) That's all 😊 Thanks for your presentation

  • @dattachavan7088
    @dattachavan70885 жыл бұрын

    Leila I am your fan ...u are too good 😘😘

  • @rahuljha7708
    @rahuljha77083 жыл бұрын

    Thanks for your help It's a really helpful 🙏

  • @alfarhangroup505
    @alfarhangroup5054 жыл бұрын

    Ur a nice teacher dear go on with success

  • @ponraja9452
    @ponraja94525 жыл бұрын

    Much appreciated !!! Really good !!

  • @LeilaGharani

    @LeilaGharani

    5 жыл бұрын

    Glad you like the video.

  • @excelisfun
    @excelisfun7 жыл бұрын

    I agree with Lotfy Kozman: thanks for the plate of vitamins!!!

  • @LotfyKozman

    @LotfyKozman

    7 жыл бұрын

    Mike the master of fat plates caught me here :)

  • @LeilaGharani

    @LeilaGharani

    7 жыл бұрын

    You're welcome Mike. It was snowing here yesterday so vitamins are always good :)

  • @excelisfun

    @excelisfun

    7 жыл бұрын

    Wow - snowing is fun, but mostly because we don't get much snow in Seattle.

  • @LeilaGharani

    @LeilaGharani

    7 жыл бұрын

    Here we just can't wait to get some sun. It was a very cold winter this year...

  • @michaeldiamond2726

    @michaeldiamond2726

    7 жыл бұрын

    You may not get much snow in Seattle, Michael, but you get lots of rain, eh? It's been cold in San Francisco Bay Area this year we've had lots of rain. The rain actually took out some of mountain roads - they just washed down the mountain side

  • @sabirrehman2706
    @sabirrehman27064 жыл бұрын

    Amazing Explanation and i had learned maximum tricks from your videos. thanks and Good wishes for your health,

  • @LeilaGharani

    @LeilaGharani

    4 жыл бұрын

    Thanks! Glad the videos are helpful.

  • @salilpattanayak7726
    @salilpattanayak77264 ай бұрын

    Excellent Logic Mam, it help

  • @AweshBhornya-ExcelforNewbies
    @AweshBhornya-ExcelforNewbies6 жыл бұрын

    Thanks for your videos I have been watching some of your videos and find your channel a great place to learn new tricks. I would suggest using named ranges and the indirect function to reference the dynamic sum range in the formula. I have tried it many times and it works just fine

  • @LeilaGharani

    @LeilaGharani

    6 жыл бұрын

    That's a great tip too. Thank you for sharing.

  • @alaaabdelrahim4074
    @alaaabdelrahim40744 жыл бұрын

    You saved me, Thank you....

  • @ollysoares
    @ollysoares4 жыл бұрын

    Ur a life saver ! Simply awesome

  • @LeilaGharani

    @LeilaGharani

    4 жыл бұрын

    Glad it helped!

  • @yousuflalani6469
    @yousuflalani6469 Жыл бұрын

    Mam thx for sharing knowledge

  • @nishadshivprakash
    @nishadshivprakash5 жыл бұрын

    Thank you so much for this great video. You r great

  • @LeilaGharani

    @LeilaGharani

    5 жыл бұрын

    You're very welcome!

  • @aamirmasood4655
    @aamirmasood46552 жыл бұрын

    Excellent video,

  • @bharatchaudhary2013
    @bharatchaudhary20133 жыл бұрын

    Awesome trick 👌👍

  • @mora_5
    @mora_5 Жыл бұрын

    i love that shortcuts tips like de CTRL + 1 thank!!! excelente video

  • @ahmedfadali4064
    @ahmedfadali40645 жыл бұрын

    Thank you very much

  • @natalieharrison5202
    @natalieharrison5202 Жыл бұрын

    Gonna use this to build a brilliant budget sheet

  • @vijaysahal4556
    @vijaysahal45564 жыл бұрын

    yours teaching projects nd your teaching way is both are superb I'm enjoying your teaching class 👍

  • @LeilaGharani

    @LeilaGharani

    4 жыл бұрын

    That's so great to hear. Thanks for the kind feedback.

  • @vijaysahal4556

    @vijaysahal4556

    4 жыл бұрын

    @@LeilaGharani hi madam I m going to request thats plz make a video as a like original data I mean official work data..after thats use data base nd make a revenue % donet bar chart bcz its very useful my official presentation 👍

  • @samuelkodjoe1645
    @samuelkodjoe16455 жыл бұрын

    insightful!

  • @emmanuelthierryuwihanganye9975
    @emmanuelthierryuwihanganye99752 жыл бұрын

    Thank you very and much appreciate

  • @shankarvaigankar8116
    @shankarvaigankar811611 күн бұрын

    Very useful

  • @alishvasani6953
    @alishvasani69532 жыл бұрын

    You're God sent

  • @alexandonian1273
    @alexandonian12737 жыл бұрын

    Excellent!

  • @LeilaGharani

    @LeilaGharani

    7 жыл бұрын

    Thank Alex.

  • @ArtsMoneyTalk
    @ArtsMoneyTalk3 жыл бұрын

    Amazing, thank you!!!

  • @LeilaGharani

    @LeilaGharani

    3 жыл бұрын

    You're so welcome!

  • @sushantsourav1259
    @sushantsourav12592 жыл бұрын

    Very Helpful, appreciate if you have next video with dynamic selection with Horizontal Sumifs..

  • @nilanthaheendeniya1692
    @nilanthaheendeniya16923 жыл бұрын

    Yes , I got learn which is amazing with my work. Thanks lila gharani

  • @sophanasorn6218
    @sophanasorn62184 жыл бұрын

    Hope you post new more vdo. I like your work😍

  • @Christyjess
    @Christyjess7 жыл бұрын

    Thank you .

  • @LeilaGharani

    @LeilaGharani

    7 жыл бұрын

    You're welcome Praveen