+ Reply to Thread
Results 1 to 7 of 7

Sumif with Indirect

  1. #1
    Registered User
    Join Date
    04-18-2012
    Location
    Copenhagen
    MS-Off Ver
    Microsoft 365 Apps for Enterprise
    Posts
    90

    Sumif with Indirect

    Hi,

    I am using sumif function with indirect to get data from multiple sheets which works fine but what I dont understand is how to nest so that it sums from every month instead of changing it manually for each month.

    This is the function i am using:
    =SUMPRODUCT(SUMIFS(INDIRECT("'"&$A$9:$A$14&"'!"&"C:C");INDIRECT("'"&$A$9:$A$14&"'!"&"$A:$A");$B$9))

    I need a function in order for column "C:C" to change as i drag the cell for coming month.

    Attached worksheet (marked roes in red)!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,009

    Re: Sumif with Indirect

    One way in C10

    Please Login or Register  to view this content.
    copied across.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,099

    Re: Sumif with Indirect

    r... avoiding INDIRECT entirely:

    =LET(A,VSTACK('1:6'!$A$4:$N$100),MAP($B9,LAMBDA(x,SUM(IF(INDEX(A,,1)=x,INDEX(A,,COLUMNS($A:C)),0)))))

    copied across and down. Adjust the bit in RED if needed.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Registered User
    Join Date
    04-18-2012
    Location
    Copenhagen
    MS-Off Ver
    Microsoft 365 Apps for Enterprise
    Posts
    90

    Re: Sumif with Indirect

    Thanks a lot both but i think i will go with @windknife's way since the other one is too advanced for me

  5. #5
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,009

    Re: Sumif with Indirect

    You are welcome.
    --------------------------------------
    If that takes care of your original question, please click on "Thread Tools" from the menu link above and mark this thread as SOLVED.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,099

    Re: Sumif with Indirect

    Your choice, of course.

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please click on "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

  7. #7
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,461

    Re: Sumif with Indirect

    Here is another solution without OFFSET and LAMBDA

    Please try and copy to the right and down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 06-21-2017, 06:32 PM
  2. Sumif with Indirect
    By barrsm0 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-31-2015, 04:20 PM
  3. [SOLVED] INDIRECT Function with multiple sheets - SUMIF, INDIRECT & MATCH
    By DJDRU in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-07-2014, 08:42 AM
  4. How to use Indirect with SumIF
    By aj34321 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-15-2013, 07:27 AM
  5. SUMIF & INDIRECT Help
    By chelseagardens in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-19-2013, 04:47 PM
  6. Replies: 0
    Last Post: 08-17-2012, 02:02 PM
  7. SUMIF with INDIRECT
    By Big_Tater in forum Excel General
    Replies: 5
    Last Post: 03-30-2010, 11:32 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1