+ Reply to Thread
Results 1 to 6 of 6

A Conditional formula that adds values in column but ignores other values

  1. #1
    Registered User
    Join Date
    05-20-2014
    Posts
    4

    A Conditional formula that adds values in column but ignores other values

    I have a spreadsheet that lists the power consumption of various electrical devices.

    Column A has the name of the device, Column B lists the energy in Watts and Column C has a Yes/No note on whether the item is on 24/7 or not.
    eg: Modem, TV (stand-by mode), printer, clock would all be on 24/7, whilst the kettle, TV (watching TV), dishwasher, cooker would only be on occasionally.

    I want to be able to add up all those values in Column B that are on 24/7 so I know the base energy usage. So if Cell C1 is YES, then the value in Cell B1 is added. If Cell C2 is NO (or blank) then the value in Cell B2 is ignored.

    The intention is that the answer at the bottom of column B only includes those items which are on 24/7.

    Hope I’ve explained myself clearly.

    I can send a mock-up if this helps.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: A Conditional formula that adds values in column but ignores other values

    Welcome to the forum

    You can use SUMIF

    =SUMIF(C1:C100,"Yes",B1:B100)

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,737

    Re: A Conditional formula that adds values in column but ignores other values

    use a SUMIF()

    =SUMIF(C:C,"YES",B:B)
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Registered User
    Join Date
    05-20-2014
    Posts
    4

    Re: A Conditional formula that adds values in column but ignores other values

    Thanks Jonmo1 & Wayne. Not only for your answers but the incredible quick response.

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: A Conditional formula that adds values in column but ignores other values

    You're welcome.

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,737

    Re: A Conditional formula that adds values in column but ignores other values

    your welcome and thanks for the rep

+ 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] Need a formula that adds a set of values that are associated with a unique set of values
    By trevorgoulet in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-17-2013, 12:58 AM
  2. Replies: 0
    Last Post: 12-22-2011, 03:42 PM
  3. find unknown values which adds up to some values
    By aravindhan_31 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-16-2009, 12:36 AM
  4. Replies: 4
    Last Post: 01-29-2008, 08:40 AM
  5. [SOLVED] Autosum ignores cell values
    By D in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-16-2005, 09:07 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