+ Reply to Thread
Results 1 to 5 of 5

How to "Add multiple cells from other collumn, if statement is true"

  1. #1
    Registered User
    Join Date
    05-23-2016
    Location
    Copenhagen
    MS-Off Ver
    2010
    Posts
    3

    How to "Add multiple cells from other collumn, if statement is true"

    Hi,
    I cannot figure out something that i would consider really simple.
    I would like the sheet to calculate, how many hours i work pr week!

    Udklip.PNG

    Collumn A= is the different weeknumbers
    Collumn B is the hours that i work for each day.

    Cell E2 should contain(??):
    =SUM(B:B(IF (D1=A:A)))


    I tried:
    =IF(ISERROR(MATCH(D1,A:A, 0)), "No Match", (B:B))
    This way I only get the first 8,5 hours, and not a total of the 16.5 hours that i work in week 18

    HOW DO I DAY THE MATCHING CELLS, that are true in the other collumn

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to "Add multiple cells from other collumn, if statement is true"

    I am not able to read PNG, so add a small excel file, without confidential information.

    Please also add the expected result manualy in your file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: How to "Add multiple cells from other collumn, if statement is true"

    Try in E2
    =sumif($A$2:$a$8,D2,$b$2:$b$8)

    And drag down
    Happy with my advice? Click on the * reputation button below

  4. #4
    Registered User
    Join Date
    05-23-2016
    Location
    Copenhagen
    MS-Off Ver
    2010
    Posts
    3

    Red face Re: How to "Add multiple cells from other collumn, if statement is true"

    Thank you =sumif($A$2:$A$8,D4,$B$2:$B$8) worked perfectly!

    Thank you so much

  5. #5
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: How to "Add multiple cells from other collumn, if statement is true"

    Great. Glad it worked

+ 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. [SOLVED] IF Statement Evaluates as "TRUE" but Returns "FALSE" Value (Excel 2007)
    By Simcik in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-11-2014, 12:43 PM
  2. [SOLVED] Formula with multiple "IF", and multiple "true values"
    By jrlafrance in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-28-2013, 02:58 PM
  3. Replies: 5
    Last Post: 10-12-2010, 06:46 AM
  4. Replies: 3
    Last Post: 12-14-2006, 01:36 PM
  5. Return blank for true "if" statement when charting, not 0
    By Jay F in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-21-2006, 11:20 AM
  6. Replies: 7
    Last Post: 05-13-2006, 05:02 PM
  7. [SOLVED] IF(VLOOKUP("MYDATA", MYNAME, 4) = 0, "TRUE", "FALSE")
    By Souris in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-17-2005, 01:05 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