+ Reply to Thread
Results 1 to 5 of 5

IF statement subtraction help.

  1. #1
    Registered User
    Join Date
    07-22-2012
    Location
    Berkeley, CA, USA
    MS-Off Ver
    Excel 2003/2010
    Posts
    3

    IF statement subtraction help.

    Hello All,
    I am currently making a wish list on excel 2003 or 2010. I have access to both versions. In column A I have the product name, Column B I have the link, Column C I have the price of each item, Column D I have an "X" if bought, Column E2 I have the total cost of Column C. In G2 I am trying to put an IF statement that if anything in cell D has an "X" then take from the same row from cell C and subtract from E2 and display the remaining total in G2.

    Example: IF E2 =100, C2= 10, C3=15, C4=50, C5=25, With "X" in D2 and D3, G2=75

    Any help would be appreciated.

    Thank You,
    Liem

  2. #2
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: IF statement subtraction help.

    Hi Liem,

    Is this what you mean? See attachment.
    Attached Files Attached Files
    If I've been of help, please hit the star

  3. #3
    Registered User
    Join Date
    07-22-2012
    Location
    Berkeley, CA, USA
    MS-Off Ver
    Excel 2003/2010
    Posts
    3

    Re: IF statement subtraction help.

    Quote Originally Posted by Spencer101 View Post
    Hi Liem,

    Is this what you mean? See attachment.
    YES! Thank you so much. The first line works perfectly

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

    Re: IF statement subtraction help.

    Hello Ltruong110, and welcome to the forum.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  5. #5
    Registered User
    Join Date
    07-22-2012
    Location
    Berkeley, CA, USA
    MS-Off Ver
    Excel 2003/2010
    Posts
    3

    Re: IF statement subtraction help.

    Thanks Cutter. Thread now marked as solved

+ 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