+ Reply to Thread
Results 1 to 2 of 2

If statement based on positive and negative numbers.

  1. #1
    Registered User
    Join Date
    05-29-2017
    Location
    Charleston, SC
    MS-Off Ver
    365
    Posts
    4

    If statement based on positive and negative numbers.

    I am trying to build an IF statement that will display specific data from a particular cell (letter grade) based on a percentage increase or decrease which will be either a positive or negative number. Just can't get the negative numbers to show the correct cell data. I've tried using less than and greater than with the negative numbers but not working. Below is what I started with. Example: negative .1 through negative 1 should point to the cell that populates a grade of C and negative 1.1 through negative 2 should point to cell that populates a grade of D etc...

    =IF(X19=0,"N/A",IF(W9>=5%,$A$24,IF(W9>=4%,$A$25,IF(W9>=3%,$A$26,IF(W9>=2%,$A$27,IF(W9>=1%,$A$28,IF(W9>=0%,$A$29,IF(W9<0%,$A$31,IF(W9<=-1%,$A$32,IF(W9<=-2%,$A$33,IF(W9<-3%,$A$35)))))))))))

    Thanks!

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Business (Win 10 - Work) & MS 365 Subscription Insider (Win 10 - Home)
    Posts
    40,398

    Re: If statement based on positive and negative numbers.

    Probably better done with a lookup table. Can you provide a small sample workbook with some dummy data for testing? Are you a teacher?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!

    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.
    Don't forget to say "thank you" to those who have helped you in your thread. If you wish, you can also reward them by clicking on their reputation star bottom left.

+ 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. [SOLVED] Format cell colors based on another cell values with positive and negative numbers
    By rlowry in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-30-2017, 12:10 PM
  2. Replies: 2
    Last Post: 08-04-2014, 08:57 AM
  3. [SOLVED] SUMIF positive and negative numbers - take double a negative number?
    By Zordrail in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-16-2014, 08:34 AM
  4. [SOLVED] Deleting Correlating Positive and Negative Numbers based on Criteria
    By amaan.khowaja in forum Excel Formulas & Functions
    Replies: 24
    Last Post: 09-02-2013, 06:49 AM
  5. Convert negative to positive in sheet containing both positive/negative numbers
    By sa02000 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-29-2010, 07:52 PM
  6. adding positive and negative numbers all as positive
    By tomvh444 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-18-2009, 04:08 PM
  7. Replies: 1
    Last Post: 11-20-2008, 01:52 AM

Tags for this Thread

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