+ Reply to Thread
Results 1 to 11 of 11

How to exclude 2 choices from being subtracted.

  1. #1
    Valued Forum Contributor
    Join Date
    12-22-2010
    Location
    Texas
    MS-Off Ver
    Excel 2003 & Excel/Access 2007
    Posts
    438

    How to exclude 2 choices from being subtracted.

    Thought I was done with this spreadsheet but I noticed that on the cells : K18, L18, M18 & N18 are not adding like I would like them to...

    When I select "Maybe" on column F3:F11 it deducts it from the cells indicated above... the only time it should deduct is if we select "YES" if the answer is "NO" or "MAYBE" then the amounts on column "E" should be added... I tried the SUMIF function but didn't work.
    Attached Files Attached Files
    Last edited by jgomez; 01-28-2011 at 05:37 PM.

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

    Re: How to exclude 2 choices from being subtracted.

    As I said in your other post

    Perhaps: =SUMIF(F3:F11,"<>Yes", E3:E11)
    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
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: How to exclude 2 choices from being subtracted.

    You can use the formula you have but change this: ="no" to: <>"Yes"

    You would need SUMIFS() otherwise and it is not available in Excel 2003

  4. #4
    Valued Forum Contributor
    Join Date
    12-22-2010
    Location
    Texas
    MS-Off Ver
    Excel 2003 & Excel/Access 2007
    Posts
    438

    Re: How to exclude 2 choices from being subtracted.

    NBVC that works but then it excludes the breakdown of the cities past dues...

    Thanks cutter, I will have to wait for 2007 version, should get it next week. I changed my formula like you said and it doesn't work like I would like it to.

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: How to exclude 2 choices from being subtracted.

    @jgomez, Cutter's suggestion:

    Quote Originally Posted by Cutter
    change this: ="no" to: <>"Yes"
    does exactly as requested, eg:

    Please Login or Register  to view this content.
    the only values that would be excluded for the given city would be where Loan Drop = Yes.

  6. #6
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: How to exclude 2 choices from being subtracted.

    In what way does it not work the way you'd like it to.
    By making the changes I suggested to each of those formulas in K18:N18 you'll get 4 results that, when summed, equal the result given by the SUMIF() given by NBVC.

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

    Re: How to exclude 2 choices from being subtracted.

    sorry, I was looking at the formula in E13

  8. #8
    Valued Forum Contributor
    Join Date
    12-22-2010
    Location
    Texas
    MS-Off Ver
    Excel 2003 & Excel/Access 2007
    Posts
    438

    Re: How to exclude 2 choices from being subtracted.

    well I tried all of your suggestions and anytime I change it and choose "maybe" it still adds the numbers when it shouldn't. the only time the numbers should change if is "yes" is selected... I'm still messing with it.

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

    Re: How to exclude 2 choices from being subtracted.

    Check the attached and play with it.

    Is it still not working as expected?
    Attached Files Attached Files

  10. #10
    Valued Forum Contributor
    Join Date
    12-22-2010
    Location
    Texas
    MS-Off Ver
    Excel 2003 & Excel/Access 2007
    Posts
    438

    Lightbulb Re: How to exclude 2 choices from being subtracted.

    Yes, Thank you so much.

    How did you get it to distinguish the city???? I see your formula but I thought you would have to include the name of the city... you didn't..

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

    Re: How to exclude 2 choices from being subtracted.

    I just replaced the city name with the cell reference containing the city name

    this part:

    SEARCH(K17,$G$3:$G$11))

    K17 is the cell containing the city McAllen

    and I also added the $ signs, so that you copy the formula across the 4 columns and not have to re-type it in each time.

+ 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