+ Reply to Thread
Results 1 to 7 of 7

Entering a letter or blank if a cell is within a range

  1. #1
    Registered User
    Join Date
    11-16-2015
    Location
    Rugby England
    MS-Off Ver
    2016
    Posts
    17

    Entering a letter or blank if a cell is within a range

    Hi

    I have a cell which shows the percentage of a score,

    i have 3 further cells which are based on the the percentage score.

    the first cell is the range 75% - 100%. if the score is within this range it should return P
    the second cell is the range 40% - 75%. if the score is within this range it should return M
    the third cell is the range 0% - 40%. if the score is less than 40% it should return S


    this works fine with the IF formula, however if any of the cells are out of this range then i want to return a blank "" cell. However because the the first part of the formula is within the range it returns the P and M. Because the 3rd cell is very simple there is no issue and remains blank until the criteria is met.

    =IF(J$48<100,"P",IF(J$48<75,""))MHE Assessment Sheet.xlsx
    =IF(J$48<75,"M",IF(J$48<40," "))
    =IF(J$48<40,"S") This formula works fine
    Last edited by Phillip Walters; 03-19-2024 at 03:43 AM.

  2. #2
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Entering a letter or blank if a cell is within a range

    You need to use a range:

    =IF(AND(J$48<100,J$48>=75),"P","")
    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.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Entering a letter or blank if a cell is within a range

    Try:

    =IF(AND(J48>=40,J48<75),I50,"")
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Registered User
    Join Date
    11-16-2015
    Location
    Rugby England
    MS-Off Ver
    2016
    Posts
    17

    Re: Entering a letter or blank if a cell is within a range

    Thank you both for this.

    works perfectly

  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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Entering a letter or blank if a cell is within a range

    Thanks for the rep. Glad to have helped.

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

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Entering a letter or blank if a cell is within a range

    or do it all in one cell:

    =IF(J48="","",LOOKUP(J48,{0,40,75},{"S","M","P"}))

  7. #7
    Registered User
    Join Date
    11-16-2015
    Location
    Rugby England
    MS-Off Ver
    2016
    Posts
    17

    Re: Entering a letter or blank if a cell is within a range

    wow

    awesome thanks

+ 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. Entering accented letter in Mac Excel
    By Gungaabayar in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 10-22-2016, 07:19 PM
  2. Entering data in in 1st blank cell in specific row
    By andyman1 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-05-2014, 01:03 PM
  3. Skipping blank cells & entering next cell with text
    By Phily915 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-18-2014, 03:58 PM
  4. [SOLVED] If the specific letter exists insert blank cell to the right
    By djfscouse in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-29-2012, 05:56 PM
  5. [SOLVED] Entering a blank if there is missing data in another cell
    By Beazle in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-29-2012, 12:28 PM
  6. Entering Value in Blank Cell
    By radzian in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-30-2008, 02:03 AM
  7. [SOLVED] change a cell colour when entering a letter
    By paul42770 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 06-27-2005, 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