+ Reply to Thread
Results 1 to 4 of 4

If B1=Yes then add A1 to C1. B2=Yes the add A2 to C1 (And so on)

  1. #1
    Registered User
    Join Date
    09-29-2019
    Location
    Alabama
    MS-Off Ver
    Office 365
    Posts
    13

    If B1=Yes then add A1 to C1. B2=Yes the add A2 to C1 (And so on)

    I am looking for a formula that I can take the "Payment" amount from A column, and add them to a single cell on, for example, C1. But the amount from each cell on A1 can only be added to C1 if the corresponding cell in column B says Yes. if it says No, then the amount in the corresponding A column is not added to C1.

  2. #2
    Valued Forum Contributor
    Join Date
    03-24-2020
    Location
    Thailand
    MS-Off Ver
    Office 2016
    Posts
    897

    Re: If B1=Yes then add A1 to C1. B2=Yes the add A2 to C1 (And so on)

    Try in cell D1 (then pull down):
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If your Question is answered; please mark it SOLVED. If you are happy with a member's solution, say 'Thanks' and click the 'Star' to Add Reputation.

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,602

    Re: If B1=Yes then add A1 to C1. B2=Yes the add A2 to C1 (And so on)

    #2 modified:
    Please Login or Register  to view this content.
    Ben Van Johnson

  4. #4
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: If B1=Yes then add A1 to C1. B2=Yes the add A2 to C1 (And so on)

    Hi, C1 =SUMIFS($A$1:A1,$B$1:B1,"Yes") and drag it down..
    Click just below left if it helps, Boo?ath?

+ 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