+ Reply to Thread
Results 1 to 7 of 7

SUMIFs on one tab taking data from 4 tabs

  1. #1
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    SUMIFs on one tab taking data from 4 tabs

    Hi all,

    Can someone please assist me with a formula on my Calculations tab..

    In cell B2, i`m trying to calculate the number of client projects which is to be taken from 4 'team tabs' (all identical) on my spreadsheet, but I am trying to figure out the number of client projects for each month/


    For example on the calculations tab.cell B2 i have started this formula:

    =(SUMIFS('Team Samuel'!B5:B39,"Client Project"&'Team Samuel'!2:2, "Jan"))+(SUMIFS('Team Rob'!B5:B39,"Client Project"&'Team Samuel'!2:2,"Jan"))

    I am trying to say sumif where column B on team samuel + team rob + team team smeg etc has 'client project' in column B AND it has 'Jan' in row 2 on each of those tabs too.......... but I`m struggling. Any advice please?

    Thank you!
    Attached Files Attached Files
    Last edited by rayted; 11-05-2021 at 08:46 AM.
    Thanks,

    R.



  2. #2
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,901

    Re: SUMIFs on one tab taking data from 4 tabs

    Your formula makes no sense, I'm afraid. SUMIFS needs the sum range first (unlike SUMIF) and you can't concatenate an entire row to a bit of text.

    My best guess, absent a workbook, would be something like:

    =SUMIF('Team Samuel'!B5:B39,"Client Project",INDEX('Team Samuel'!5:39,0,MATCH("Jan",'Team Samuel'!2:2,0)))

    although if "Client project" only appears once in column B you wouldn't really need SUMIF at all.
    Rory

  3. #3
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    Re: SUMIFs on one tab taking data from 4 tabs

    Hi Rory,

    SOrry i had issues uploading my workbook which I have done now - maybe I need a countif? I am unsure. Client projecvt will appear multiple times in column B on different rows, but always the same column.

    Thank you

  4. #4
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,901

    Re: SUMIFs on one tab taking data from 4 tabs

    It looks like you added a workbook while I was writing, so based on that, I'd use SUMPRODUCT:

    =SUMPRODUCT(('Team Samuel'!$B$5:$B$39="Client Project")*(MONTH('Team Samuel'!$I$3:$NI$3)=1)*('Team Samuel'!$I$5:$NI$39))

    and repeat for the other teams.

  5. #5
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    Re: SUMIFs on one tab taking data from 4 tabs

    Hi Rory,

    Thank you this seems to be brilliant/


    Just to clarify.. as I anticipate more rows.. how can I amend the formula to widen the range:

    =SUMPRODUCT(('Team Samuel'!$B$5:$B$39="Client Project")*(MONTH('Team Samuel'!$I$3:$NI$3)=1)*('Team Samuel'!$I$5:$NI$39))+SUMPRODUCT(('Team Rob'!$B$5:$B$39="Client Project")*(MONTH('Team Rob'!$I$3:$NI$3)=1)*('Team Rob'!$I$5:$NI$39))+SUMPRODUCT(('Team Smeg'!$B$5:$B$39="Client Project")*(MONTH('Team Smeg'!$I$3:$NI$3)=1)*('Team Smeg'!$I$5:$NI$39))+SUMPRODUCT(('Team Michael'!$B$5:$B$39="Client Project")*(MONTH('Team Michael'!$I$3:$NI$3)=1)*('Team Michael'!$I$5:$NI$39))

    I might even want to go to 10000 just to be safe..

    And also.. if I want to change the formula for each month to be counted, do I need to change the =1 to =2 (1 is for jan, 2 for feb) and so on?

    Thank you

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,144

    Re: SUMIFs on one tab taking data from 4 tabs

    Try

    =SUMPRODUCT(('Team Samuel'!$B$5:$B$1000="Client Project")*(MONTH('Team Samuel'!$I$3:$NI$3)=MONTH(A3&0))*('Team Samuel'!$I$5:$NI$1000))+SUMPRODUCT(('Team Rob'!$B$5:$B$1000="Client Project")*(MONTH('Team Rob'!$I$3:$NI$3)=MONTH(A3&0))*('Team Rob'!$I$5:$NI$1000))+SUMPRODUCT(('Team Smeg'!$B$5:$B$1000="Client Project")*(MONTH('Team Smeg'!$I$3:$NI$3)=MONTH(A3&0))*('Team Smeg'!$I$5:$NI$1000))+SUMPRODUCT(('Team Michael'!$B$5:$B$1000="Client Project")*(MONTH('Team Michael'!$I$3:$NI$3)=MONTH(A3&0))*('Team Michael'!$I$5:$NI$1000))


    and change 39 to 1000 or 10000
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  7. #7
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    Re: SUMIFs on one tab taking data from 4 tabs

    Great thanks John, think this works! :D

+ 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. SUMIFS taking a significant time to render (250,000 rows)
    By ausable7400 in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 04-26-2020, 11:06 AM
  2. Calculating Sumifs Across Multiple Tabs; allowing Tabs to change or be added/deleted
    By Charles A. Othon in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-12-2019, 04:49 PM
  3. [Please Help Me] Solving =SUMIFS or INDEX or MATCH Formula for Data Across (2) Tabs
    By ChrisNeedsHelp in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-10-2017, 05:40 PM
  4. Replies: 2
    Last Post: 11-10-2017, 03:12 PM
  5. Macro to Automate sheet by taking values from different tabs
    By kierra_kk in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-18-2017, 02:33 AM
  6. Error in SUMIFS across multiple tabs
    By mavericky10 in forum Excel General
    Replies: 1
    Last Post: 01-07-2015, 09:19 AM
  7. [SOLVED] Macro only taking data from first tab, needs to be all tabs in workbook
    By BillDoor in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-13-2014, 02:55 PM

Tags for this Thread

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