SUMIF with INDIRECT Function for Dynamic Sheet and Table References

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ม.ค. 2025

ความคิดเห็น • 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 6 ปีที่แล้ว +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  6 ปีที่แล้ว

      Thank you for your kind words Joseph.

  • @wayneedmondson1065
    @wayneedmondson1065 6 ปีที่แล้ว +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!

  • @LotfyKozman
    @LotfyKozman 6 ปีที่แล้ว +2

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

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

  • @teesrajahaan7450
    @teesrajahaan7450 5 หลายเดือนก่อน

    great way of explaining, thanks

  • @CrittercalKills
    @CrittercalKills 10 หลายเดือนก่อน

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

    • @Computergaga
      @Computergaga  10 หลายเดือนก่อน

      You're very welcome.

  • @slowmover7078
    @slowmover7078 ปีที่แล้ว +1

    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!

  • @glennlangford5897
    @glennlangford5897 6 ปีที่แล้ว +1

    Fantastic, thanks Allan

  • @anv.4614
    @anv.4614 ปีที่แล้ว

    Thank you. well explained.

  • @ihgaming8885
    @ihgaming8885 ปีที่แล้ว

    thank you for this. very useful

  • @barttitulaerexcelbart9400
    @barttitulaerexcelbart9400 6 ปีที่แล้ว +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  6 ปีที่แล้ว

      Thanks Bart. Good to hear from you buddy.

  • @slmnibras89
    @slmnibras89 4 ปีที่แล้ว

    thanks allan, very useful , fantastic demonstration

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

  • @Murthyams
    @Murthyams 6 ปีที่แล้ว +1

    Very useful .. thanks

    • @Computergaga
      @Computergaga  6 ปีที่แล้ว

      You're very welcome Murthy. Thank you.

  • @valerieroberts6175
    @valerieroberts6175 6 หลายเดือนก่อน

    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  5 หลายเดือนก่อน

      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.

  • @carlilafond5943
    @carlilafond5943 4 ปีที่แล้ว

    Thank you for this helpful video.

    • @Computergaga
      @Computergaga  4 ปีที่แล้ว

      You're very welcome, Carli 👍 Thank you

  • @sasavienne
    @sasavienne 6 ปีที่แล้ว +1

    Awesome. Thanks.

    • @Computergaga
      @Computergaga  6 ปีที่แล้ว +1

      You're welcome Salim. Thank you.

  • @sreytouchkong8838
    @sreytouchkong8838 5 หลายเดือนก่อน

    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  5 หลายเดือนก่อน

      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)

  • @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 6 ปีที่แล้ว +1

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

    • @Computergaga
      @Computergaga  6 ปีที่แล้ว

      Excellent.

    • @simfinso858
      @simfinso858 6 ปีที่แล้ว

      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 2 ปีที่แล้ว

    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  2 ปีที่แล้ว

      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 3 ปีที่แล้ว

    please i need the sheet could do you share it

    • @Computergaga
      @Computergaga  3 ปีที่แล้ว

      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.