+ Reply to Thread
Results 1 to 2 of 2

IF Statement

  1. #1
    Registered User
    Join Date
    10-18-2005
    Posts
    1

    Exclamation IF Statement

    I am trying to make a formula to make a number positive if it is negative and negative if it is positive. There are only a few documents i need to change; they are documents with a document code of 2 or 3 and it is in column D; The numbers i want to change are in columns G,H,I, & J;
    This is what I had come up with:

    =IF($D7=2, ($G7=$G7*-1; $H7=$H7*-1; $I7=$I7*-1; $J7=$J7*-1), IF($D7=3, ($G7=$G7*-1; $H7=$H7*-1; $I7=$I7*-1; $J7=$J7*-1), $D7="Null"))

    I put it in Column D which I am not sure that it should be the column to put it in.
    If someone could please help me figure this problem out; it would be greatly appreciated.

    Thank You
    Jeremy Himmelreich

  2. #2
    Ron Rosenfeld
    Guest

    Re: IF Statement

    On Tue, 18 Oct 2005 14:22:39 -0500, JeremyH1982
    <[email protected]> wrote:

    >
    >I am trying to make a formula to make a number positive if it is
    >negative and negative if it is positive. There are only a few documents
    >i need to change; they are documents with a document code of 2 or 3 and
    >it is in column D; The numbers i want to change are in columns G,H,I, &
    >J;
    >This is what I had come up with:
    >
    >=IF($D7=2, ($G7=$G7*-1; $H7=$H7*-1; $I7=$I7*-1; $J7=$J7*-1), IF($D7=3,
    >($G7=$G7*-1; $H7=$H7*-1; $I7=$I7*-1; $J7=$J7*-1), $D7="Null"))
    >
    >I put it in Column D which I am not sure that it should be the column
    >to put it in.
    >If someone could please help me figure this problem out; it would be
    >greatly appreciated.
    >
    >Thank You
    >Jeremy Himmelreich


    Please see answer to your previous post; which you posted 37 min before this
    post, and which was answered 10 minutes after this post.


    --ron

+ 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