+ Reply to Thread
Results 1 to 13 of 13

SUMIFS based on two criteria, dependant on result of IFERROR formula

  1. #1
    Registered User
    Join Date
    11-08-2019
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    10

    SUMIFS based on two criteria, dependant on result of IFERROR formula

    Hi there

    I have a workbook with two sheets. Sheet 1 contains data - Sheet 2 is summarising the findings of the data.

    I've got an IFERROR formula in Sheet 2, column B, row 3 onward that's picking up sub-contractors based on two criteria from sheet 1 - this is working fine.

    What I now want to do is calculate the total contract value in Sheet 1, column F for the sub-contractor named in Sheet 2, column B that's been added based on the above. This needs to include the same criteria as I will be adding further locations to Sheet 1 and whilst the sub-contractor's will vary they may also be listed in Sheet 1 for more than 1 location.

    Any suggestions on how I can do this will be most welcome. I've highlighted in yellow on the second sheet the columns where I intend to add the formulas, B is already done. The contract value needs to populate in Sheet 2, column C - next to the contractor in column B that's been named as a result of the IFERROR formula.

    Thanks!
    Attached Files Attached Files
    Last edited by Lola19; 11-11-2019 at 10:28 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Sumifs

    Administrative Note:

    We would very much like to help you with your query, however the thread title does not really convey what your request is about.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: SUMIFS based on two criteria, dependant on result of IFERROR formula

    Thank you for updating the title.

    Please attach your workbook here - the duplicate thread (which is not allowed) has been closed.

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: SUMIFS based on two criteria, dependant on result of IFERROR formula

    How about
    =IF(B3="","",SUMIFS('Table 1'!$F$2:$F$23,'Table 1'!$A$2:$A$23,$B$1,'Table 1'!$B$2:$B$23,"Awarded",'Table 1'!$G$2:$G$23,B3))

  5. #5
    Registered User
    Join Date
    11-08-2019
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    10

    Re: SUMIFS based on two criteria, dependant on result of IFERROR formula

    Hi Fluff13! Hope you had a good weekend. Thanks again for help last week.

    The above isn't working but I've just attached an example workbook which might help illustrate what I'm trying to achieve!

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: SUMIFS based on two criteria, dependant on result of IFERROR formula

    Two questions, If it doesn't work
    1) why have you marked the thread as solved?
    2) in what way "Doesn't it work"?

  7. #7
    Registered User
    Join Date
    11-08-2019
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    10

    Re: SUMIFS based on two criteria, dependant on result of IFERROR formula

    Long story - got asked to make changes by admin which I got confused on, had two threads.. new to the forum and have clearly messed it all up. It's not working as in - it's just returning '#VALUE!'

    The document I'm working on is the same as the attachment I've shared.

  8. #8
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: SUMIFS based on two criteria, dependant on result of IFERROR formula

    It works for me
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    11-08-2019
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    10

    Re: SUMIFS based on two criteria, dependant on result of IFERROR formula

    Thanks - I think it's not working for me as it's not recognising 'Table 1' in the non-redacted version of the spreadsheet. When I copy and paste into the cell it's bringing up the #VALUE! error. Appreciate you taking the time to try and resolve this though.

  10. #10
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: SUMIFS based on two criteria, dependant on result of IFERROR formula

    Do you have a sheet called "Table 1"?

  11. #11
    Registered User
    Join Date
    11-08-2019
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    10

    Re: SUMIFS based on two criteria, dependant on result of IFERROR formula

    I have but, having read your response, I just checked it and it had an underscore that was preventing it from being recognised - rookie error on my part.

    I have now amended this and the formula is working perfectly. All sorted now so will close the thread. Thank you very much for your help

  12. #12
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: SUMIFS based on two criteria, dependant on result of IFERROR formula

    Glad you sorted it & thanks for the feedback

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: SUMIFS based on two criteria, dependant on result of IFERROR formula

    Moved to the formulas section as requested by the OP via PM.

+ 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: 0
    Last Post: 08-22-2017, 03:49 PM
  2. [SOLVED] Sumifs formula without using sumifs....
    By blockbyblock in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-10-2017, 10:45 AM
  3. [SOLVED] If no SUMIFS matches, 1, otherwise the SUMIFS result...
    By JYTS in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-04-2016, 07:39 PM
  4. sumifs vs. Application.WorksheetFunction.SumIfs
    By flooyd in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-01-2016, 11:22 AM
  5. [SOLVED] Looking for something simpler than SUMIFS - SUMIFS
    By YAbdelaal in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-27-2014, 10:38 AM
  6. SUMIFS Puzzle - Trying to avoid adding multiple SUMIFS to get valid result
    By haldavid in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-09-2013, 03:42 PM
  7. [SOLVED] Sumifs, problem with the formula: =sumifs(c10:c200,<=today(),0)
    By Faustocruz in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-08-2012, 04:26 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