+ Reply to Thread
Results 1 to 5 of 5

Simple Logic question

  1. #1
    Registered User
    Join Date
    08-17-2018
    Location
    usa
    MS-Off Ver
    not sure
    Posts
    2

    Simple Logic question

    =IF(E7>=1,1,E7(E7<0,0,E7))

    So on the back end of this I want the cell to fill 0 if e7 is a negative number. what am I doing wrong?

    The goal is if cell e7 comes back between 0 and 1 I want it to display the number. If it comes back greater that 1 I want it to display as 1, if it comes back as a negative number I want it to display 0. HELP!

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,110

    Re: Simple Logic question

    how about
    =IF(E7>=1,1,IF(E7<0,0,E7))

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Simple Logic question

    Or

    =median(0, e7, 1)
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    08-17-2018
    Location
    usa
    MS-Off Ver
    not sure
    Posts
    2

    Re: Simple Logic question

    Thank you so much, Fixed!!

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,421

    Re: Simple Logic question

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. Sorting pivot data based on simple IF logic
    By Andrew4119 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-08-2018, 08:27 AM
  2. Removing unwanted elements - Automation/Simple logic
    By KNBMichael in forum Excel General
    Replies: 4
    Last Post: 12-18-2017, 04:34 AM
  3. [SOLVED] Simple Formula, cant get logic to work
    By cdotyii in forum Excel General
    Replies: 3
    Last Post: 07-31-2015, 09:32 AM
  4. Simple copy pest data with logic
    By arindamsenaxa in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-12-2015, 02:29 AM
  5. Need help transferring this logic to simple excel formula
    By yougandhar1 in forum Excel General
    Replies: 4
    Last Post: 09-22-2014, 05:24 PM
  6. [SOLVED] Simple multiple logic test help
    By rexy69 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2014, 11:31 AM
  7. Simple Copy-Paste logic not working
    By Brian in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-29-2005, 02:40 PM

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