+ Reply to Thread
Results 1 to 8 of 8

Sumifs formula, indirect tab, and coloumn header

  1. #1
    Registered User
    Join Date
    09-27-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Question Sumifs formula, indirect tab, and coloumn header

    I have formula here

    =SUM(SUMIFS(INDIRECT("'"&$A$2&"'!X:X"),INDIRECT("'"&$A$2&"'!B:B"),"FS PAPER",INDIRECT("'"&$A$2&"'!N:N"),{"GA PACIFIC COMMERCIAL BUS","GEORGIA PACIFIC CONSUMER PRODUCTS,"},........................))


    but the last part of the formula I need it to calculate look on the indirect tab if BE1 = "Deviated" (this is the column name) then sum where BE:BE = Y. Otherwise it won't sum.

    Any help would be much appreciated!

    Thanks!

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Sumifs formula, indirect tab, and coloumn header

    hard to offer a suggestion without seeing what you are working with? suggest uploading a sample workbook

    To Attach a File:

    1. Click on Go Advanced
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    09-27-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Sumifs formula, indirect tab, and coloumn header

    Attahced is a visual look at what I am trying to accomplish. If you go to the costworksheet page I want to Sumifs Column D if column B= FS PAPER, and Column C = GA PACIFIC COMMERCIAL BUS, and where cell E1= Deviated sum the Y's but if cell E1 does not = dont look in column E. Also check if cell G1= Deviated then sum the Y's but if cell G1 does not equal Deviated then dont look in column G.

    So I want the total in cell E6 to equal 200.

    I don not want to use sumproducts either becasue it is too slow. Any suggestions?

    Thank you!
    Attached Files Attached Files

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Sumifs formula, indirect tab, and coloumn header

    ok, not sure if this is what you want, i cleaned up your formula a bit and then basically doubles up on it for the 2nd Y...

    =SUMIFS(INDIRECT("'"&$A$2&"'!D:D"),INDIRECT("'"&$A$2&"'!B:B"),"FS PAPER",INDIRECT("'"&$A$2&"'!C:C"),"GA PACIFIC COMMERCIAL BUS",INDIRECT("'"&$A$2&"'!E:E"),"Y")+SUMIFS(INDIRECT("'"&$A$2&"'!D:D"),INDIRECT("'"&$A$2&"'!B:B"),"FS PAPER",INDIRECT("'"&$A$2&"'!C:C"),"GA PACIFIC COMMERCIAL BUS",INDIRECT("'"&$A$2&"'!g:g"),"Y")

    let me know if this works for you?

  5. #5
    Registered User
    Join Date
    09-27-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Sumifs formula, indirect tab, and coloumn header

    Great! Thanks for your help!

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Sumifs formula, indirect tab, and coloumn header

    ok, not sure if you are still following this, but here is a better version for you...

    =SUMPRODUCT(INDIRECT("'"&$A$2&"'!D3:D100"),(INDIRECT("'"&$A$2&"'!B3:B100")="FS PAPER")*(INDIRECT("'"&$A$2&"'!C3:C100")="GA PACIFIC COMMERCIAL BUS")*(SIGN((E3:E100="Y")+(G3:G100="Y"))))

  7. #7
    Registered User
    Join Date
    09-27-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Sumifs formula, indirect tab, and coloumn header

    Ok well I choose not to use SUMPRODUCT becasue it is alot slower.

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Sumifs formula, indirect tab, and coloumn header

    sumproduct is only slow if you use large ranges, or as in your case, entire columns or rows. thats why i restrcted it to 100 rows. buit the correct way of doing something in excel is...whichever way works best for you

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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