+ Reply to Thread
Results 1 to 3 of 3

How do I set up formulas with 'if'?

  1. #1
    How to use 'IF' in a formula.
    Guest

    How do I set up formulas with 'if'?

    I am creating a chart that calculates. However, when a calculation comes to
    a negative amount, I want that amount automatically placed in another cell.
    How do I do this? I know I should type something that includes an 'IF', I
    just don't know how to word it exactly.

  2. #2
    Gord Dibben
    Guest

    Re: How do I set up formulas with 'if'?

    Formulas cannot place data in another cell.

    They can return results only to the cell in which they are written.

    The "other" cell must have a formula to check the first cell's value and if
    negative, reurn a result.

    A1 has a formula that returns a positive or negative result.

    In B1 enter =IF(A1<0,A1,"positive") which says if A1 is negative show
    result, if A1 is 0 or positive show "positive".


    Gord Dibben Excel MVP

    On Fri, 11 Feb 2005 13:09:05 -0800, "How to use 'IF' in a formula." <How to
    use 'IF' in a [email protected]> wrote:

    >I am creating a chart that calculates. However, when a calculation comes to
    >a negative amount, I want that amount automatically placed in another cell.
    >How do I do this? I know I should type something that includes an 'IF', I
    >just don't know how to word it exactly.



  3. #3
    Ken Wright
    Guest

    Re: How do I set up formulas with 'if'?

    In the cell that currently contains your formula, put:-

    =MAX(0,your_formula)

    In the cell you want the negative value to go to:-

    =MIN(0,your_formula)

    --
    Regards
    Ken....................... Microsoft MVP - Excel
    Sys Spec - Win XP Pro / XL 97/00/02/03

    ----------------------------------------------------------------------------
    It's easier to beg forgiveness than ask permission :-)
    ----------------------------------------------------------------------------

    "How to use 'IF' in a formula." <How to use 'IF' in a
    [email protected]> wrote in message
    news:[email protected]...
    > I am creating a chart that calculates. However, when a calculation comes

    to
    > a negative amount, I want that amount automatically placed in another

    cell.
    > How do I do this? I know I should type something that includes an 'IF', I
    > just don't know how to word it exactly.




+ 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