Excel SUMIFS: Sum Alternate Columns based on Criteria and Header

Поделиться
HTML-код
  • Опубликовано: 30 июл 2024
  • 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

Комментарии • 397

  • @LeilaGharani
    @LeilaGharani  6 месяцев назад

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

  • @raghuv7114
    @raghuv7114 4 года назад +1

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

  • @1gopalakrishnarao
    @1gopalakrishnarao 7 лет назад +6

    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
    @euniceesinam2573 3 года назад +1

    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.

  • @irislee7999
    @irislee7999 3 года назад

    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!

  • @ColinKinsella
    @ColinKinsella 4 года назад

    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.

  • @sachinrv1
    @sachinrv1 7 лет назад +4

    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 :)

  • @reidsexton2869
    @reidsexton2869 4 года назад +1

    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.

  • @maherahmad6982
    @maherahmad6982 7 лет назад +2

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

  • @bigman55434
    @bigman55434 3 года назад

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

  • @deba8296
    @deba8296 6 лет назад

    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!

  • @user-oc5ko6gs5t
    @user-oc5ko6gs5t 5 лет назад +1

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

  • @mackenmd
    @mackenmd 4 года назад +1

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

    • @LeilaGharani
      @LeilaGharani  4 года назад +1

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

  • @mohammadraiesh4648
    @mohammadraiesh4648 5 лет назад

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

  • @jonathanrobinson688
    @jonathanrobinson688 5 лет назад

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

  • @tedsterrett7204
    @tedsterrett7204 3 года назад

    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.

  • @hasanahmed-ls9lb
    @hasanahmed-ls9lb 5 лет назад

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

  • @peterwadsworth4607
    @peterwadsworth4607 7 лет назад +1

    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 :)

  • @prasannaganesh3824
    @prasannaganesh3824 6 лет назад

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

  • @ericsaldana5375
    @ericsaldana5375 4 года назад

    best teacher! Thanks for sharing this with us.

  • @bobtheauditor08
    @bobtheauditor08 5 лет назад

    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.

  • @resrussia
    @resrussia 7 лет назад +1

    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....

  • @ismailismaili0071
    @ismailismaili0071 6 лет назад

    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... :)

  • @JRVariety
    @JRVariety 3 года назад

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

  • @MIRZA1515
    @MIRZA1515 5 лет назад

    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.

  • @santoshgnaga8540
    @santoshgnaga8540 5 лет назад

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

  • @Dev_Bartwal
    @Dev_Bartwal 7 лет назад +1

    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.

  • @praafullckashelkar3795
    @praafullckashelkar3795 6 лет назад +1

    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 :)

  • @anasleco
    @anasleco 4 года назад +1

    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 года назад +1

      Happy to help! Now get some rest 😊

  • @wiliwiliful
    @wiliwiliful 6 лет назад +1

    Thanks for this video it's so helpful

  • @followthetruth3283
    @followthetruth3283 5 лет назад +5

    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?

  • @PMsPoints
    @PMsPoints 5 лет назад +1

    Many thanks for your valuable information.

  • @caakashtanwar8627
    @caakashtanwar8627 4 года назад

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

  • @Poopshoot88
    @Poopshoot88 Год назад

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

  • @TH3LMITA
    @TH3LMITA 6 лет назад

    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,"]")))

  • @elinakulashkina5034
    @elinakulashkina5034 6 лет назад

    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.

  • @smilgu
    @smilgu 3 года назад

    Super useful, as always. Thanks a lot!

  • @suryachitra8895
    @suryachitra8895 6 лет назад

    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.

  • @kevintrump6594
    @kevintrump6594 2 года назад

    thanks so much Leila am enjoying your simplicity

  • @galporgy
    @galporgy 11 месяцев назад

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

  • @walek2001
    @walek2001 6 лет назад

    GREAT JOB! THANK YOU!

  • @mrsingh5224
    @mrsingh5224 Год назад

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

  • @lemyandreev2019
    @lemyandreev2019 4 года назад

    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 года назад +1

      Glad it was helpful. Great to have you here!

  • @SanjayKumar-yx6gc
    @SanjayKumar-yx6gc 7 лет назад +1

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

  • @yvonneyu6688
    @yvonneyu6688 10 месяцев назад

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

  • @christoperwijaya15
    @christoperwijaya15 3 года назад

    So much helpful! Thanks for the idea!

  • @automationguide3498
    @automationguide3498 7 лет назад +1

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

  • @khawarameer
    @khawarameer 6 лет назад

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

  • @devadevendran7028
    @devadevendran7028 6 лет назад

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

  • @LotfyKozman
    @LotfyKozman 7 лет назад

    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 лет назад +1

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

  • @mtariqraheem1
    @mtariqraheem1 21 день назад

    Thank you Dear, your videos are really helpful.

  • @allo801
    @allo801 4 месяца назад

    brilliant video, many thanks!

  • @riteshgangwani115
    @riteshgangwani115 4 года назад

    YOU KNOWLEDGE IS VERY HELPFULL, THANKS

  • @viniciuslimasantos7034
    @viniciuslimasantos7034 Год назад

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

  • @ShaanviKiDuniya
    @ShaanviKiDuniya 6 лет назад

    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.

  • @RaviSingh-wm4gm
    @RaviSingh-wm4gm 4 года назад

    Wow, thankyou ma'am for amazing trick.

  • @rajupatel5311
    @rajupatel5311 6 лет назад +1

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

  • @jasminedo7891
    @jasminedo7891 4 года назад

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

  • @teoxengineer
    @teoxengineer 4 года назад

    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

  • @nazilahajizadeh6932
    @nazilahajizadeh6932 5 лет назад

    Thank you Leila . You are GREAT teacher .

    • @LeilaGharani
      @LeilaGharani  5 лет назад

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

  • @ankursingh35
    @ankursingh35 6 лет назад

    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.

  • @excelisfun
    @excelisfun 7 лет назад +6

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

    • @LotfyKozman
      @LotfyKozman 7 лет назад +1

      Mike the master of fat plates caught me here :)

    • @LeilaGharani
      @LeilaGharani  7 лет назад +1

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

    • @excelisfun
      @excelisfun 7 лет назад +1

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

    • @LeilaGharani
      @LeilaGharani  7 лет назад +1

      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

  • @KamranMumtazAhmed
    @KamranMumtazAhmed 5 лет назад

    Simply amazing

  • @mando388
    @mando388 3 года назад

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

  • @AweshBhornya-ExcelforNewbies
    @AweshBhornya-ExcelforNewbies 6 лет назад

    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 лет назад +1

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

  • @rahuljha7708
    @rahuljha7708 3 года назад

    Thanks for your help
    It's a really helpful 🙏

  • @JSmith-xq3uw
    @JSmith-xq3uw 2 года назад

    Life saver! Thanks so much

  • @kolagilbert1215
    @kolagilbert1215 4 года назад

    Excellent. Thanks for sharing,

  • @wiliwiliful
    @wiliwiliful 6 лет назад

    Thanks for this video it's helpful

  • @VenkiDas
    @VenkiDas 2 года назад

    This is awesome, thanks for a great tute.

  • @dattachavan7088
    @dattachavan7088 5 лет назад

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

  • @sachinrv1
    @sachinrv1 5 лет назад

    Nice video Leila, cheers 👍

  • @sabirrehman2706
    @sabirrehman2706 4 года назад

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

    • @LeilaGharani
      @LeilaGharani  4 года назад +1

      Thanks! Glad the videos are helpful.

  • @shailendrakumar08
    @shailendrakumar08 5 лет назад

    Great way to explain!

  • @dominickmilano
    @dominickmilano 2 года назад

    Outstanding, thank you!

  • @mora_5
    @mora_5 Год назад

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

  • @skpolok5174
    @skpolok5174 5 лет назад +1

    Thank u to help us a lot, may we know how to calculate random columns in same formula & same table like( E,G,H OR F,H)

  • @TheAhmedsaqr
    @TheAhmedsaqr 7 лет назад +1

    Many Thanks, really great
    video

    • @LeilaGharani
      @LeilaGharani  7 лет назад +1

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

  • @backendadmin1217
    @backendadmin1217 5 лет назад

    Leila, you are awesome.

  • @luce6d
    @luce6d 5 лет назад

    Hi, I recently discovered your channel and am absolutely in love with your videos. I have a question I'm hoping you can help with. Is it possible to switch between getting a cumulative or stand alone sum? e.g. Could I get a sumif of the only benefits for a particular cost centre or a sum of benefits and base salary for a cost centre?

  • @salilpattanayak7726
    @salilpattanayak7726 4 месяца назад

    Excellent Logic Mam, it help

  • @ponraja9452
    @ponraja9452 5 лет назад

    Much appreciated !!! Really good !!

  • @alfarhangroup505
    @alfarhangroup505 4 года назад

    Ur a nice teacher dear go on with success

  • @stewartketsuwan7792
    @stewartketsuwan7792 4 года назад +1

    Hi Leila,
    Thank you so much! This is so helpful. I do have a question. How do I account for the situation when the column header repeats? For example, let's say in your example we have 2 columns for Base Salary. When I use this formula it only sums up the 1st instance (or 1st column) for Base Salary and it ignores the 2nd column. I'd love for it sum up both.

  • @yousuflalani6469
    @yousuflalani6469 Год назад

    Mam thx for sharing knowledge

  • @nilanthaheendeniya1692
    @nilanthaheendeniya1692 3 года назад

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

  • @alaaabdelrahim4074
    @alaaabdelrahim4074 4 года назад

    You saved me, Thank you....

  • @nishadshivprakash
    @nishadshivprakash 5 лет назад

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

  • @ahmedfadali4064
    @ahmedfadali4064 5 лет назад

    Thank you very much

  • @ollysoares
    @ollysoares 4 года назад

    Ur a life saver ! Simply awesome

  • @alishvasani6953
    @alishvasani6953 2 года назад

    You're God sent

  • @rashnoi
    @rashnoi 2 года назад

    Hi Leila- this is indeed a great learning for me, I was writing a long formula with If+sumifs but this seems to be very efficient. I have one question, in my case I have some other dataset (%calculation) in between the base salary benefits and Bonus, I tried the second approach of your formula but I am unable to get the result on the third selection. Could you please help

  • @sushantsourav1259
    @sushantsourav1259 2 года назад

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

  • @VISHNU-rz1io
    @VISHNU-rz1io 3 года назад

    Leila, love ❤️ you for sharing this information.. I'm looking for exact excel formula for dynamic header selection in sumifs.

  • @bharatchaudhary2013
    @bharatchaudhary2013 3 года назад

    Awesome trick 👌👍

  • @letlhogonolompetsane165
    @letlhogonolompetsane165 4 года назад

    Hi, this video is very useful. I have a quick question though. Does SUMIFS also work if you're trying to sum rows and not the columns, and what would the syntax modification be then?
    E.g if you have your data set up with dates as the columns and cost centres as the rows.

  • @0tysons
    @0tysons 4 года назад

    Thank you Leila,have learnt a lot from your lessons,but I have trouble creating a formula for instance Cells column A= Items list cells column B= Unit of measure''kgs,pcs,etc,which formula can i use if i just type items in cell column C to correspond it in cells column D with the same unit of measure in B

  • @aamirmasood4655
    @aamirmasood4655 2 года назад

    Excellent video,

  • @SanjayKumar-yx6gc
    @SanjayKumar-yx6gc 7 лет назад

    Thank you so much Lelia . This was good example of sumifs, based on row & column criteria. I would like to share , we can also do same thing by sumproduct function. Right.

  • @samuelkodjoe1645
    @samuelkodjoe1645 5 лет назад

    insightful!