+ Reply to Thread
Results 1 to 2 of 2

If a cell has a certain reference it will add 2 other columns or subtract them

  1. #1
    Registered User
    Join Date
    04-21-2009
    Location
    england
    MS-Off Ver
    Excel 2003
    Posts
    21

    If a cell has a certain reference it will add 2 other columns or subtract them

    is there a formula for: If column A has a "Y" it will add columns B&C. If column A has a "N" it will subtract columns B&C? I thought about SUMIF, but can't seem to get it to work.

    Col A
    Y
    N

    Col B
    10
    5

    Col C
    5
    10
    Last edited by preddy1110; 02-07-2011 at 08:00 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: If a cell has a certain reference it will add 2 other columns or subtract them

    Maybe this:

    =B1+IF(A1="Y", 1, -1)*C1

    Of course, this formula don't care if you put N or anything else.. Just look is it Y.

+ 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