+ Reply to Thread
Results 1 to 3 of 3

Formula Question - Please Help

  1. #1
    Registered User
    Join Date
    10-24-2009
    Location
    Ocean, New Jersey
    MS-Off Ver
    Excel 2003
    Posts
    2

    Formula Question - Please Help

    Hey, I was just wondering if anyone could help me with a function that I'm trying to put into a spreadsheet.

    This is what I'm trying to do:

    I want Column E to add the value from Column C IF column D reads "win" and if column D reads "loss" I want column E to subtract the value from Column A.

    Id appreciate if anyone could help me out.

    thanks in advance.

  2. #2
    Valued Forum Contributor khamilton's Avatar
    Join Date
    10-08-2009
    Location
    IL
    MS-Off Ver
    Excel 2007
    Posts
    345

    Re: Formula Question - Please Help

    assuming D is either going to be win or loss you could use =if(D?="Win",sum(A?,C?),sum(A?-C?)

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Formula Question - Please Help

    Maybe this in E1, then copied down:

    =IF(D1="Win", A1+C1, A1-C1)

    EDIT:
    Tip of the hat to KHamilton, same basic idea.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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