+ Reply to Thread
Results 1 to 6 of 6

Subtract If

  1. #1
    Registered User
    Join Date
    02-22-2007
    Posts
    24

    Subtract If

    I'm familiar with SUMIF but actually need a SUBTRACTIF. I've attached a sample. What I need to do is look at Column A and if the same account number appears in consecutive cells, say A1 and A2, then calcualte the difference in sales in Column C. The result could appear in Column E.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor mdbct's Avatar
    Join Date
    11-11-2005
    Location
    CT
    MS-Off Ver
    2003 & 2007
    Posts
    848

    Re: Subtract If

    starting in E3 then copy down.
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-15-2010
    Location
    India
    MS-Off Ver
    Excel 2003, Excel 2007, Excel 2010 and Excel 2013
    Posts
    22

    Re: Subtract If

    Hi NFJim,

    Getting the answer in column C will result in a circular reference and hence would not work. I have added a formula in Column E to get the answer you want. Please check and confirm if it helps.

    Cheers!!!
    Excel-o-ratoR
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    02-22-2007
    Posts
    24

    Re: Subtract If

    That almost seems to simple.....THANKS!

  5. #5
    Valued Forum Contributor mdbct's Avatar
    Join Date
    11-11-2005
    Location
    CT
    MS-Off Ver
    2003 & 2007
    Posts
    848

    Re: Subtract If

    Excel-o-ratoR,
    The OP, who was not me (mdbct), states "calcualte the difference in sales in Column C. The result could appear in Column E.".

    No need to worry about the circular reference.

  6. #6
    Registered User
    Join Date
    04-15-2010
    Location
    India
    MS-Off Ver
    Excel 2003, Excel 2007, Excel 2010 and Excel 2013
    Posts
    22

    Re: Subtract If

    Apologies to you.... I have already made the change to the name I addessed to.

    Cheers!!

+ 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