SUMIF with INDIRECT Function for Dynamic Sheet and Table References

Поділитися
Вставка
  • Опубліковано 12 вер 2024
  • In this video, we look at using the SUMIF function with the INDIRECT function for dynamic worksheet and table references.
    Learn it all with the Ultimate Excel Course - bit.ly/Ultimat...
    Two amazing functions used together to sum values from a sheet specified as a cell value. We then use them to reference a table from cell value.
    This technique can easily be adapted for any formula - VLOOKUP, COUNTIF, INDEX - the options are endless.
    Find more great free tutorials at;
    www.computerga...
    ** Online Excel Courses **
    Excel VBA for Beginners ► bit.ly/2JvnnRv
    Advanced Excel Tricks ► bit.ly/3CGCm3M
    Excel Formulas Made Easy ► bit.ly/2t3netw
    The Ultimate Excel Course - Learn Everything ► bit.ly/Ultimat...
    Creating Sports League Tables and Tournaments in Excel ► bit.ly/2viGg3J
    Connect with us!
    LinkedIn ► / 18737946
    Instagram ► / computergaga1
    Twitter ► / computergaga1

КОМЕНТАРІ • 57

  • @juanitaburt5281
    @juanitaburt5281 3 роки тому +1

    You explained it so clearly. Things that seemed so complicated looked so easy. Your tutorials are my go to if I am stuck. Thank You so much Alan.

    • @Computergaga
      @Computergaga  3 роки тому

      My pleasure, Juanita. That is great to hear. Thank you.

  • @JosephGabriel
    @JosephGabriel 5 років тому +2

    Again, brilliant demonstration! I like that you get right to it, rather than explain a lot beforehand like many others do. I also like that you show how the Indirect function works with both Sheet and Table references. Great job!

    • @Computergaga
      @Computergaga  5 років тому

      Thank you for your kind words Joseph.

  • @wayneedmondson1065
    @wayneedmondson1065 5 років тому +2

    Hey Alan.. great video on technique using SUMIF and INDIRECT together. I re-created your sheets for practice and it worked like a charm. Also, did the same using SUMIFS which takes the arguments in a different order. An excellent tutorial and great tips. Thumbs up!

  • @teesrajahaan7450
    @teesrajahaan7450 Місяць тому

    great way of explaining, thanks

  • @LotfyKozman
    @LotfyKozman 5 років тому +2

    This will be very useful in case of payable and receivable accounts. Thanks for your efforts.

  • @barttitulaerexcelbart9400
    @barttitulaerexcelbart9400 5 років тому +2

    Thanks Allan! You could even make a pivot like table with all the results. Actually referring and copying to Excel tables sometimes face difficulties, but not with INDIRECT. I will try this.

    • @Computergaga
      @Computergaga  5 років тому

      Thanks Bart. Good to hear from you buddy.

  • @the_dadbod_god
    @the_dadbod_god 6 місяців тому

    You have no idea how long I’ve been trying to find how to do this😂 thank you!!

  • @ca.lokenderchauhan2605
    @ca.lokenderchauhan2605 4 роки тому

    Your videos are one of the best excel videos in youtube. Too good 👍

    • @Computergaga
      @Computergaga  4 роки тому

      Thank you very much. Your comments are appreciated.

  • @sasavienne
    @sasavienne 5 років тому

    Great and excellent as usual. Many thanks to you Alan. I like your videos so much.. 🌟 🌟 🌟 🌟

    • @Computergaga
      @Computergaga  5 років тому +1

      Thank you Salim. Much appreciated.

  • @slowmover7078
    @slowmover7078 10 місяців тому

    Hey! This vid was helpful to understand the basics, so thank you. I am trying to get a total for a collection of 'stores', that will then be accumulated together to make a 'region' total. Each 'region' has different 'stores' which do not duplicate. The current structure of the report is description of costs running in the first column and periods across the top - like a forecast sheet. Do you think a formula will be possible? I want to avoid using VBA if possible - many thanks!

  • @valerieroberts6175
    @valerieroberts6175 2 місяці тому

    Hi, this is extremely helpful. I need a dynamic sum and criteria range, so that when I copy the formula over, the sum range and criteria range will change. Is there a way to do that in this example? It would reference a cell for the A:A and B:B.

    • @Computergaga
      @Computergaga  Місяць тому

      Thanks!
      Absolutely. Yoh can combine an XLOOKUP to find the necessary sum and criteria ranges.
      I have a video on it on the channel. Search for XLOOKUP on the channel.

  • @slmnibras89
    @slmnibras89 4 роки тому

    thanks allan, very useful , fantastic demonstration

  • @sreytouchkong8838
    @sreytouchkong8838 Місяць тому

    Thank you for this video. I have a lot of sheets and I want to sum the same category from each sheet
    in summary. So, how can I do or by this formula? Thanks

    • @Computergaga
      @Computergaga  Місяць тому

      You're welcome. If the category column is the same, for example D:D, you could sum a range of sheets.
      Insert a sheet at beginning and end of all sheets as bookends, or place holders. Name the start and end.
      Use SUM('Start:End!'D:D)

  • @anv.4614
    @anv.4614 Рік тому

    Thank you. well explained.

  • @glennlangford5897
    @glennlangford5897 5 років тому +1

    Fantastic, thanks Allan

  • @ihgaming8885
    @ihgaming8885 Рік тому

    thank you for this. very useful

  • @Murthyams
    @Murthyams 5 років тому +1

    Very useful .. thanks

    • @Computergaga
      @Computergaga  5 років тому

      You're very welcome Murthy. Thank you.

  • @carlilafond5943
    @carlilafond5943 4 роки тому

    Thank you for this helpful video.

    • @Computergaga
      @Computergaga  4 роки тому

      You're very welcome, Carli 👍 Thank you

  • @sasavienne
    @sasavienne 5 років тому +1

    Awesome. Thanks.

    • @Computergaga
      @Computergaga  5 років тому +1

      You're welcome Salim. Thank you.

  • @amankhandelwal8341
    @amankhandelwal8341 3 роки тому

    Very useful. Can you tell why the sheet reference does not work for sheet names with two words?

    • @Computergaga
      @Computergaga  3 роки тому +1

      Thank you. Sure. When a sheet name has spaces it is enclosed in single quotes. So for South Africa it would be 'South Africa'!D2 for example.
      So the INDIRECT would be as such INDIRECT("'"&A3&"'!D2")

    • @amankhandelwal8341
      @amankhandelwal8341 3 роки тому

      @@Computergaga thanks a lot

  • @gw6667
    @gw6667 Рік тому

    This doesn't seem to work if there's a space in the tab name. Any thoughts on how to address that?

  • @simfinso858
    @simfinso858 5 років тому +1

    Nice.I can use it for Daily sale purchase Records.

    • @Computergaga
      @Computergaga  5 років тому

      Excellent.

    • @simfinso858
      @simfinso858 5 років тому

      Computergaga I will Edit " Region as Transactions Type Drop Down sale or purchase,category as items name & I will add 1 more Colom for date & then Total my model will ready for small shopkeepers.

  • @SimonKristensen3
    @SimonKristensen3 5 років тому

    Hi Alan, I'm trying to use this function, as it fits perfectly to my needs. However, I get a #REF!, and when i try to isolate the error step-by-step, it makes no sense. The indirect function finds the sheet, but fails to SUM. I have tried mimicking you work, but it's still failing. The only problem i can think of is either cell formatting or how the list (Yours have Toronto, Paris etc.) is created.
    Do you have any idea how to solve this?
    Great video by the way, easy to understand.

    • @SimonKristensen3
      @SimonKristensen3 5 років тому

      Well, i figured it out. My sheets we're called January 2019, February 2019. If i call them 2019January instead, it works.

    • @Computergaga
      @Computergaga  5 років тому

      Sounds like the issue was with the space in the sheet name. When sheet names have spaces they must be enclosed in single quotes such as 'January 2019'!

  • @ken2k33
    @ken2k33 Рік тому

    how do i do a sum range using the indirect function say from A1:D1 etc?
    e.g. =INDIRECT(A1:D1) something like this

    • @Computergaga
      @Computergaga  Рік тому

      I'm not sure what you're asking. You can sum that range simply with SUM(A1:D1)
      INDIRECT is used if you have a reference in a cell as text that needs converting to a reference. So, if you had A1:D1 written in cell F2, you could use SUM(INDIRECT(F2))
      This is a strange scenario though.

  • @kipicman3352
    @kipicman3352 2 роки тому

    please i need the sheet could do you share it

    • @Computergaga
      @Computergaga  2 роки тому

      I don't have this sheet available anymore.

  • @vinayakpotadar4093
    @vinayakpotadar4093 2 роки тому

    Super

  • @i-am-covfefe
    @i-am-covfefe 4 роки тому

    anyone know how to replicate this but with 3 criteria??? I add the third in the formula and it tell me that i have added too many arguments :(

    • @Computergaga
      @Computergaga  4 роки тому +1

      Sure, you can use the SUMIFS function instead of SUMIF.

  • @marlolitgonzales5188
    @marlolitgonzales5188 5 років тому

    hi how to put a table name?

    • @Computergaga
      @Computergaga  5 років тому

      Click in the range of cells that you want to make a table, click Home > Format as Table and confirm the range and then the name box is on the far left of the design tab.

  • @SuperMexx96
    @SuperMexx96 4 роки тому

    maybe you could help me with a question regarding the indirect function:
    I have a document for keeping track of depreciations.
    Every fixed asset gets a sheet with its own depreciation table. On the first sheet of the workbook I want to sum up the depreciation over all objects for a given year.
    Because the number of objects is quite large I tried working with INDIRECT.
    The code looks like this:
    =SUMPRODUCT(SUMIF(INDIRECT(A1:A3&"!A:A");$F$1;INDIRECT(A1:A3&"!B:B")))
    A1:A3 holds the names of the sheets in this case, in F1 you can enter the year you want to sum.
    Now the number of sheets isn't fixed. I want to expand the column INDIRECT is checking to - for example - A100 in both formulas and have a list of sheets generated per VBA macro in column A. But as soon as one empty cell is "referenced" I get a #REF error. I understand why, don't get me wrong, I just need to know if there is a way to prevent that and use my fomula without changing the matrix manually everytime.
    If there is a more elegant solution to my problem I am not seeing here, feel free to point me to them. Gladly appreciate that.
    Thanks in advance for reading through.