+ Reply to Thread
Results 1 to 6 of 6

Outputting number of times if a number is equal to or greater than

  1. #1
    Registered User
    Join Date
    09-11-2014
    Location
    Dallas, TX
    MS-Off Ver
    2007
    Posts
    3

    Outputting number of times if a number is equal to or greater than

    Hello all,

    I apologize that this probably has been discussed before, but I've searched through the forums and I don't think I'm using the correct terms.

    I'll try my best to explain what I'm trying to do

    Part 1.

    If A2-A10 >= 0.0004, then output number of times(X) it is >= 0.0004 in Cell A11

    Part 2.

    Color numbers Green that are number of times >=0.0004
    Also Color numbers red that are < 0.0004

    Part 1 is what I'm most worried about.

    Thank you

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Outputting number of times if a number is equal to or greater than

    Hi, welcome to the forum

    For the 1st part, try this...
    =countif(A2:A10,>=0.0004)

    For the 2nd part..
    1. highlight the range you want to apply the conditional formatting to (A2:A10)
    2. on the home tab, styles, select CF
    3. select new rule, select use formula
    4. enter =A2>=0.0004 format fill GREEN

    Repeat 3 and 4 with =A2<0.0004 Format fill RED
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    09-11-2014
    Location
    Dallas, TX
    MS-Off Ver
    2007
    Posts
    3

    Re: Outputting number of times if a number is equal to or greater than

    Thank you FDibbins, however I now get a "formula contains an error" message

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Outputting number of times if a number is equal to or greater than

    oops sorry...
    =countif(A2:A10,">="&0.0004)

  5. #5
    Registered User
    Join Date
    09-11-2014
    Location
    Dallas, TX
    MS-Off Ver
    2007
    Posts
    3

    Re: Outputting number of times if a number is equal to or greater than

    Thank you so much!

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Outputting number of times if a number is equal to or greater than

    Happy to help and thanks for the feedback

+ 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. Delete rows with cell values equal to or greater than current week number
    By Pradeep M B in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-22-2013, 09:39 AM
  2. [SOLVED] How to get the number of times exactly 4 consecutive cells have a number greater than 6?
    By llane5150 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-29-2013, 11:23 PM
  3. COUNTIF until the result is greater than or equal to a specified number.
    By JSB_2011 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-06-2012, 11:58 PM
  4. Replies: 7
    Last Post: 07-08-2011, 10:16 AM
  5. [SOLVED] counting number of times value is greater than previous week
    By tereasajw in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-19-2005, 10:55 AM

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