+ Reply to Thread
Results 1 to 3 of 3

example:If Statement

  1. #1
    Registered User
    Join Date
    02-08-2010
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    2

    example:If Statement

    Hello

    I have an if statement for example. if a number equals a -1 than make this cell 0.

    =IF(E31=-1, 0)

    The other cells that do not have a negative number are just multiplying two cells like this

    =Sum(E32*G32)

    Bascialy what i want is to combine these two statements together. For example if that IF statement is False than i want it to Equal the =Sum statement.

    Also i have another question. instead of typing -1 or -2 is there a way to make it where if it equals ANY negative number?

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: If Statement Help

    How about

    =E32*G32*(E31>=0)

    Or... in IF terms

    =IF(E31>=0,E32*G32,0)

  3. #3
    Registered User
    Join Date
    02-08-2010
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: If Statement Help

    well it worked for sure! lol. Thanks.

    I don't know why i did not think of using greater than less than. That makes complete sense.

    Thank you very much.

+ 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