+ Reply to Thread
Results 1 to 4 of 4

Conditional Addition

  1. #1
    Registered User
    Join Date
    01-15-2010
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    2

    Conditional Addition

    Hey all,

    I'm having some difficulties formulating an IF statement. Here's what I'd like to do


    If any cell in Column B = 1, then add the Column H# of that row. I hope that makes sense.

    =IF(B:B=1,+H:H,0)

    It worked for the first cell (B4 and H4), but when I tried to add the #1 to B5 and put a value into H5, it won't sum it up.

    I'm sure this question is elementary, but I'm very new to using functions in excel. Any help would be greatly appreciated!
    Last edited by DonkeyOte; 01-16-2010 at 05:44 AM. Reason: title inadequate

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Problem with IF Statement

    Try

    =Sumif(B:B,1,H:H)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    01-15-2010
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Problem with IF Statement

    THANKS!!!!!!!!!!!!!!!!!!

    Solved

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Problem with IF Statement

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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