+ Reply to Thread
Results 1 to 4 of 4

simplify equation

  1. #1
    EBronco67
    Guest

    simplify equation

    =IF(F5="X",+(J5),-(J5))+IF(F6="X",+(J6),-(J6))+IF(F7="X",+(J7),-(J7))+IF(F8="X",+(J8),-(J8))...

    all i want is if i put an "X" in a the cell i want it to either add the
    number in the other cell. if i don't i want it to subtract the number in the
    other cell. but i don't want to have to do the busy work of typing it over
    and over only changing what row its in.

  2. #2
    Forum Contributor
    Join Date
    03-21-2006
    Posts
    205
    =sumproduct(--(f5:f100="x"),j5:j100)-sumproduct(--(f5:f100<>"x"),j5:j100)

  3. #3
    Biff
    Guest

    Re: simplify equation

    Hi!

    Try this:

    =SUMIF(F5:F8,"x",J5:J8)-SUMIF(F5:F8,"",J5:J8)

    Biff

    "EBronco67" <[email protected]> wrote in message
    news:[email protected]...
    > =IF(F5="X",+(J5),-(J5))+IF(F6="X",+(J6),-(J6))+IF(F7="X",+(J7),-(J7))+IF(F8="X",+(J8),-(J8))...
    >
    > all i want is if i put an "X" in a the cell i want it to either add the
    > number in the other cell. if i don't i want it to subtract the number in
    > the
    > other cell. but i don't want to have to do the busy work of typing it over
    > and over only changing what row its in.




  4. #4
    EBronco67
    Guest

    RE: simplify equation

    Thank You! Both of your equations worked. I sat here for 45 mins. trying to
    figure it out before i tried this site. I guess I'll chalk that one up to a
    long lesson.

    "EBronco67" wrote:

    > =IF(F5="X",+(J5),-(J5))+IF(F6="X",+(J6),-(J6))+IF(F7="X",+(J7),-(J7))+IF(F8="X",+(J8),-(J8))...
    >
    > all i want is if i put an "X" in a the cell i want it to either add the
    > number in the other cell. if i don't i want it to subtract the number in the
    > other cell. but i don't want to have to do the busy work of typing it over
    > and over only changing what row its in.


+ 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