Results 1 to 3 of 3

negative numbers from a formula

This is a discussion on negative numbers from a formula within the Excel Questions forums, part of the Question Forums category; Hi Is it possible to write a formula to enter a negative value from another cell ie Col A = ...

  1. #1
    Board Regular
    Join Date
    Jul 2002
    Location
    London
    Posts
    341

    Default

    Hi

    Is it possible to write a formula to enter a negative value from another cell ie

    Col A = yes or no
    Col B = assorted numbers
    Col C formula
    =if(A1=yes,negative value of B1,0)

    Thanks

    colin

  2. #2
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    61,998

    Default

    On 2002-08-18 08:31, colinharwood wrote:
    Hi

    Is it possible to write a formula to enter a negative value from another cell ie

    Col A = yes or no
    Col B = assorted numbers
    Col C formula
    =if(A1=yes,negative value of B1,0)

    Thanks

    colin
    =IF(A1="Yes",-B1,0)

    or just:

    =(A1="Yes")*-B1


  3. #3
    Board Regular
    Join Date
    Jul 2002
    Location
    London
    Posts
    341

    Default

    Hi Aladin

    Thanks for that

    Colin

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


DMCA.com