+ Reply to Thread
Results 1 to 20 of 20

How can I figure out which cells are less than a given value in excel ?

  1. #1
    Registered User
    Join Date
    12-24-2016
    Location
    Balurghat, West Bengal, India.
    MS-Off Ver
    2019
    Posts
    56

    How can I figure out which cells are less than a given value in excel ?

    I have a range of cells A1 to A10 with different values. Now I want to figure out those cells which contain numbers less than 25. I do not want to highlight them but rather want to know which particular cells matches the criteria. Say it will point out that A1, A6, A7 contain values less than 25.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: How can I figure out which cells are less than a given value in excel ?

    And how do you want them pointed out other than highlighting or changing formatting?

  3. #3
    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
    81,162

    Re: How can I figure out which cells are less than a given value in excel ?

    Try this:

    =IF(COUNTIF($G$2:$G$8,"<"&25)>=3,"Fail",IF(COUNTIF($G$2:$G$8,"<"&25)=COUNT($G$2:$G$8),"Pass","Retest"))

    Your duplicate thread has been closed. Please do NOT open duplicates in future.
    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.

  4. #4
    Registered User
    Join Date
    12-24-2016
    Location
    Balurghat, West Bengal, India.
    MS-Off Ver
    2019
    Posts
    56

    Re: How can I figure out which cells are less than a given value in excel ?

    I'm very sorry for the duplicate thread. Actually it was posted accidentally during some network problems. Please let me know the way to delete that thread. I shall do it immediately. Once again I apologise.

  5. #5
    Registered User
    Join Date
    12-24-2016
    Location
    Balurghat, West Bengal, India.
    MS-Off Ver
    2019
    Posts
    56

    Re: How can I figure out which cells are less than a given value in excel ?

    Thanks a lot Ali ! Your formula is correct. But I want to know if the result is "Retest" then for which subjects. It should mark out subjects. Like "Retest English, Mathematics" or "Retest Mathematics, Science".

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,591

    Re: How can I figure out which cells are less than a given value in excel ?

    Please attach the file from post #1 in the closed thread to this one.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  7. #7
    Registered User
    Join Date
    12-24-2016
    Location
    Balurghat, West Bengal, India.
    MS-Off Ver
    2019
    Posts
    56

    Re: How can I figure out which cells are less than a given value in excel ?

    I have subjects in column 'E', full marks i column 'F' and marks obtained by a student in column G. Column 'I' has a formula suggested by AliGW which determines when a student Passes, Fails or goes for retest. If a student gets less than 25 marks in not more than two subjects, he is sent for retest. AliGw's formula does the work fine. But I want the subjects to be mentioned for which a student is sent for retest. Say, 'Retest Eng., Maths' or 'Retest Eng., Science' etc. Is this possible ?
    Attached Files Attached Files

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,591

    Re: How can I figure out which cells are less than a given value in excel ?

    Perhaps the following will help:
    1. Select cell I2
    2. Paste the following array entered formula* into the formula bar:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    3. *Press and hold the Ctrl and Shift keys while pressing the Enter key.
    4. Drag the fill handle down to I8.
    Note that an option would be to put the number 25 in a cell, say J1, and reference that cell as in:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.

  9. #9
    Registered User
    Join Date
    12-24-2016
    Location
    Balurghat, West Bengal, India.
    MS-Off Ver
    2019
    Posts
    56

    Re: How can I figure out which cells are less than a given value in excel ?

    This is not working. You didn't get me. Actually I was saying that if a student gets less than 25 in any subject (not more than two), he is sent for retest. The formula should point out for which subject he is sent for retest. Suppose a student gets 20 marks in Mathematics but gets above 25 in all other subjects. Obviously he is sent for retest in Mathematics. So the formula should mention the subject also for which he is sent for retest.

  10. #10
    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
    81,162

    Re: How can I figure out which cells are less than a given value in excel ?

    Are you expecting this all in one cell or in a column adjacent to his results?

  11. #11
    Registered User
    Join Date
    12-24-2016
    Location
    Balurghat, West Bengal, India.
    MS-Off Ver
    2019
    Posts
    56

    Re: How can I figure out which cells are less than a given value in excel ?

    Yes, that's it. In cell I1.

  12. #12
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,591

    Re: How can I figure out which cells are less than a given value in excel ?

    Here is the formula applied to the file that you sent. Math and Geo. both have marks of 12 so I would assume that those are the ones that you want to see in the list in column I.
    Let us know if you have any questions.
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    12-24-2016
    Location
    Balurghat, West Bengal, India.
    MS-Off Ver
    2019
    Posts
    56

    Re: How can I figure out which cells are less than a given value in excel ?

    Thanks a lot JeteMc ! Your solution is working fine but is it possible without the reference cell 'J1' and the total thing in one cell 'I1' separated by commas. Say " Retest English, Mathematics" or "Retest Bengali, Geo."

  14. #14
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,591

    Re: How can I figure out which cells are less than a given value in excel ?

    Yes, use the first formula given in post #8 for cells I2:I3 (you could format the text to match the fill as modeled) then modify Ali's formula to read:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    12-24-2016
    Location
    Balurghat, West Bengal, India.
    MS-Off Ver
    2019
    Posts
    56

    Re: How can I figure out which cells are less than a given value in excel ?

    Thank you so much JeteMc ! You solved my problem. This would help me a lot in my School administrative work. Hope to get more help from you in near future ! Good luck and stay healthy !

  16. #16
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,591

    Re: How can I figure out which cells are less than a given value in excel ?

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

  17. #17
    Registered User
    Join Date
    12-24-2016
    Location
    Balurghat, West Bengal, India.
    MS-Off Ver
    2019
    Posts
    56

    Re: How can I figure out which cells are less than a given value in excel ?

    Hi JeteMc ! I am writing this because I was unable to put your solution in my original score sheet. Please put the formula you suggested in this attachment. Conditions are same. Consider the 'total marks' for each subject. Put the formula in AF7 with your modifications. Conditions are same as post # 14.
    Attached Files Attached Files

  18. #18
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,591

    Re: How can I figure out which cells are less than a given value in excel ?

    Those formulas will not work for this setup, however here are two that will:
    For cell AF7:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    For cells AG7:AH7*:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    *Array entered formula.
    Let us know if you have any questions.
    Attached Files Attached Files

  19. #19
    Registered User
    Join Date
    12-24-2016
    Location
    Balurghat, West Bengal, India.
    MS-Off Ver
    2019
    Posts
    56

    Re: How can I figure out which cells are less than a given value in excel ?

    Hi JeteMC ! You see when subject 'Beng.' score is below 25, it's returning 'O' in AG7. Please tell me the formula if condition is " Beng.<50 and other subjects should be <25 ie, M7<50 & (P7,S7,V7,Y7,AB7,AE7)<25.
    Attached Files Attached Files

  20. #20
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,591

    Re: How can I figure out which cells are less than a given value in excel ?

    Paste the following array entered formula* into cell AG7: =IF(M7<50,J4,IFERROR(INDEX($N$4:$AC$4,SMALL(IF(($P7:$AE7<25)*($P$5:$AE$5="TOT"),COLUMN($N$1:$AC$1)-COLUMN($M$1)),1)),""))
    Paste the following array entered formula* into cell AH7: =IFERROR(INDEX($N$4:$AC$4,SMALL(IF(($P7:$AE7<25)*($P$5:$AE$5="TOT"),COLUMN($N$1:$AC$1)-COLUMN($M$1)),IF(AG7="Beng.",1,2))),"")
    *Remember to active each formula by holding the Ctrl and Shift keys while pressing the Enter key.
    Let us know if you have any questions.

+ 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. VBA: Show Subtracted Figure In Cell When Cumulative Figure Is Entered
    By hrayani in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-28-2018, 11:29 AM
  2. [SOLVED] Using Linear Regression to predict a future event / performance figure / speed figure
    By Doofus1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-22-2017, 11:51 AM
  3. Replies: 1
    Last Post: 06-22-2017, 02:58 AM
  4. Replies: 4
    Last Post: 02-03-2014, 08:05 AM
  5. Sum formula to exclude monthly budget figure when actual figure is entered
    By rocketmail in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-02-2013, 04:22 AM
  6. Calculating monthly sales figure required to make annual turnover figure
    By CatIsoSio Sky in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-27-2010, 04:42 PM
  7. can't figure how to count # of cells minus red cells VBA
    By curbster in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-18-2009, 05:21 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