+ Reply to Thread
Results 1 to 5 of 5

Sum cells in a row meeting criteria

Hybrid View

  1. #1
    Registered User
    Join Date
    10-16-2012
    Location
    Perth WA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Sum cells in a row meeting criteria

    Hi All

    I want add cells in a row based on if a range of cells in the row are blank another range of cells in the same row will sum.
    Hopefully my example is a bit clearer than my description.
    Example forecast.xlsx

    Thanks for your help in advance

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Sum cells in a row meeting criteria

    hi Murrayk, welcome to the forum. how about:
    =SUMPRODUCT((C2:W2="F")*(C4:W4)*(D4:X4=""))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    10-02-2012
    Location
    Baku
    MS-Off Ver
    Excel 2010
    Posts
    273

    Re: Sum cells in a row meeting criteria

    An array formula
    =SUM(IF((D2:W2="Costed")*ISBLANK(D4:W4)=1,C4:V4,0))

  4. #4
    Registered User
    Join Date
    10-16-2012
    Location
    Perth WA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Sum cells in a row meeting criteria

    Many thanks for your promt replies , it's easy when you know how

  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: Sum cells in a row meeting criteria

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
    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

+ 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