+ Reply to Thread
Results 1 to 5 of 5

IF function help?

  1. #1
    Registered User
    Join Date
    05-28-2010
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2003
    Posts
    33

    IF function help?

    Can anyone explain why this wont work or if its possible? I want to tell excel if one cell is a "W" then multiply another cell by 1, if it is not a "W", then multiply it by negative one. Here is what I tried to do:

    =IF(G16=W, E16*1, E16*-1)

    Help?

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: IF function help?

    you need quotes around the W

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: IF function help?

    Try

    =IF(G16="W", E16*1, E16*-1)
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Registered User
    Join Date
    05-28-2010
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2003
    Posts
    33

    Re: IF function help?

    Duh. Sorry to waste your time. Thanks for the help!

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: IF function help?

    You're welcome...

    You didn't waste our time...
    We're reading the forum whether you post this thread or not..

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. index function error using match function to get data from a cell in an array
    By mabildgaard in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-17-2013, 02:21 AM
  2. [SOLVED] Using Offset function as the array in the PercentRank function is giving wrong result
    By Bobneil in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-06-2013, 09:29 PM
  3. Replies: 1
    Last Post: 03-21-2012, 11:22 AM
  4. Replies: 2
    Last Post: 03-20-2009, 01:29 PM
  5. Excel - User Defined Function Error: This function takes no argume
    By BruceInCalgary in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-18-2006, 04:05 PM

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