+ Reply to Thread
Results 1 to 5 of 5

Sum based on an IF (Possibly SUMIF)

  1. #1
    Registered User
    Join Date
    12-11-2012
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    18

    Sum based on an IF (Possibly SUMIF)

    Hi,

    Basically, I have a 'Gift Ideas' worksheet, 4 columns, 'x' amount of rows. (Please see worksheet attached)

    What I need is quite simple really, but I can't figure out the formula.

    Column D (Bought) can either be 'Yes' or 'No', this is entered via a dropdown box.
    Column C (Price) is manually entered, and at the bottom of that column I want a 'Total' field.
    However, I want that total field to do the following,

    IF a cell in Column D contains 'Yes', then subtract the corresponding price from the total.

    If that doesn't make sense please let me know.

    Thanks
    Archie.

    Gift Ideas.xlsb

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,408

    Re: Sum based on an IF (Possibly SUMIF)

    There is no data in your sample workbook for us to play about with.

    Pete

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Sum based on an IF (Possibly SUMIF)

    Do you mean?

    =SUMIF(D2:D18,"No",C2:C18)
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Registered User
    Join Date
    12-11-2012
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Sum based on an IF (Possibly SUMIF)

    Hi Fotis1991,

    Thanks, that worked. No idea why I couldn't think of that.

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Sum based on an IF (Possibly SUMIF)

    You are welcome and thanks for the feed back.

    As that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thank you.

+ 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. Replies: 1
    Last Post: 07-16-2012, 12:22 PM
  2. IF or SUMIF possibly?
    By brianlowry in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-18-2007, 04:28 PM
  3. SUMIF query, possibly...?
    By Joey123 in forum Excel General
    Replies: 7
    Last Post: 08-20-2007, 08:17 PM
  4. HLookup, Possibly...
    By samprince in forum Excel General
    Replies: 3
    Last Post: 09-26-2006, 09:04 AM
  5. [SOLVED] Formula help - sumif (possibly)
    By Betsey in forum Excel General
    Replies: 1
    Last Post: 09-06-2005, 05:05 PM

Tags for this Thread

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