+ Reply to Thread
Results 1 to 10 of 10

Trouble with proper syntax for SUMIFS

  1. #1
    Registered User
    Join Date
    08-16-2012
    Location
    Boston, Massachusetts
    MS-Off Ver
    Excel 2010
    Posts
    17

    Trouble with proper syntax for SUMIFS

    Alright so I've already gotten some help but I'm a little stuck again.

    Here is my current forumula:
    =IF($A9<$AU$2," ",SUMIFS(GDS!$AA:$AA,GDS!$E:$E,$A9,GDS!$P:$P,AI$5))

    Column AA are prices but occasionally the value of the cell is "CLOSED".
    I need that to pull over but instead it pulls a $O since it's "summing".
    It was recommended I use SUMIFS instead of a VLOOKUP since there was duplicate data in the lookup column.
    Other than not pulling the text I need it's working perfectly.
    I'm thinking I need to add an addtional IF statement but couldn't get it to work.
    The values in the cells I'm looking up are always either a dollar amount or the word CLOSED.

  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: Help with SUMIFS

    it might be easier to help if we could see what you are working with? please upload 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
    08-16-2012
    Location
    Boston, Massachusetts
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Help with SUMIFS

    excelhelp.xlsx

    Please see attchd example.
    Columns refernce are the same.

    Current equation is:
    =IF($A25<$AU$2," ",SUMIFS(GDS!$AA:$AA,GDS!$E:$E,$A25,GDS!$P:$P,AI$5))

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Help with SUMIFS

    In what cell does this formula go?

    Are you looking up the price by product and date from the main sheet and passing it to the GDS sheet?

    How does the word "closed" end up in the cell?
    HTH
    Regards, Jeff

  5. #5
    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: Trouble with proper syntax for SUMIFS

    I added a helper column on sheet2 AB with this...=E2&P2
    then used this in your table on sheet1...
    =INDEX(GDS!$E$1:$AB$10,MATCH(MAIN!$A2&MAIN!AI$1,GDS!$AB$1:$AB$10,0),MATCH("Price",GDS!$E$1:$AB$1,0))

    in your example, it looked like you were taking the 1st instance if there were duplicates

  6. #6
    Registered User
    Join Date
    08-16-2012
    Location
    Boston, Massachusetts
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Help with SUMIFS

    Jeff,

    I'm tryin to get the data to do to the MAIN tab from GDS.
    My formula would be in cell AI2 of MAIN and in the other cells around it as well.
    CLOSED in on the GDS tab which is a CSV file that is emailed to me periodically.
    The MAIN tab is pulling in from about 10-12 other CSV and excel files.
    The attachment is just an example.

  7. #7
    Registered User
    Join Date
    08-16-2012
    Location
    Boston, Massachusetts
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Trouble with proper syntax for SUMIFS

    I can't modify the GDS tab.
    It's something that i have set up to just paste in the data from a CSV file to pull over to the MAIN tab.
    If I have to modify my supporting tabs it kind of defeats the purpose.

  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: Trouble with proper syntax for SUMIFS

    just because you have to copy data from a CVS file onto that sheet, doesnt mean you cant still have that formula off to the side out of the way somewhere?

  9. #9
    Registered User
    Join Date
    08-16-2012
    Location
    Boston, Massachusetts
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Trouble with proper syntax for SUMIFS

    Would the formula be on the MAIN tab?
    I must have missed it in your last response.
    I've only used the forum a few times and don't fully understand the attachment part of things.

  10. #10
    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: Trouble with proper syntax for SUMIFS

    no, it would still be on the 2nd sheet, but im thinking that this would be a "blank" sheet, so you could put the formulas wayyy off to the side and just leave them there?

    i was also playing around with a pivot table which will give you what you want. however, it will only work if ALL of your data columns have a heading, so not sure if this is an option either

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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