+ Reply to Thread
Results 1 to 6 of 6

Using countif on a range where numbers in that range have to be altered

  1. #1
    Forum Contributor
    Join Date
    02-08-2006
    Location
    UK
    MS-Off Ver
    2013
    Posts
    204

    Using countif on a range where numbers in that range have to be altered

    Afternoon, I have a range of cells (L1:T1) each of which contains a number (a gross value). The net value is the gross value minus a number in A3, but the net value itself is not stored anywhere - only the gross value.

    What I'd like to do is to count how many values in the range L1:T1 which, when A3 is deducted, would be less than the value in A1.

    Is that possible? I'd rather not have to do another range with the net values as it would be *a lot* of changes. I could easily do this in VB but I've been banned from it.....

    Thanks in advance.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,795

    Re: Using countif on a range where numbers in that range have to be altered

    Still using Excel 2013?

    There are instructions at the top of the page explaining how to attach your sample workbook (yellow banner: HOW TO ATTACH YOUR SAMPLE WORKBOOK). Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,463

    Re: Using countif on a range where numbers in that range have to be altered

    Please attach a sample Excel workbook - details of how to do this are given in the yellow banner at the top of the screen.

    Pete

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,056

    Re: Using countif on a range where numbers in that range have to be altered

    Quote Originally Posted by wonderdunder View Post
    What I'd like to do is to count how many values in the range L1:T1 which, when A3 is deducted, would be less than the value in A1.
    Assuming A3 is a number, not a percentage to deduct from each, would that not simply be:

    =COUNTIF(L1:T1,"<="&A1+A3)
    Everyone who confuses correlation and causation ends up dead.

  5. #5
    Forum Contributor
    Join Date
    02-08-2006
    Location
    UK
    MS-Off Ver
    2013
    Posts
    204

    Re: Using countif on a range where numbers in that range have to be altered

    Thank you! That worked a treat.

    Apologies that I didn't attach a sample sheet - I thought it was a simple enough query and have only just got round to revisiting this to post one but the question is answered now.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,795

    Re: Using countif on a range where numbers in that range have to be altered

    And are you still using Excel 2013?

+ 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] Using COUNTIF when a range contains certain numbers.
    By Brian.Aerojet in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-23-2018, 01:36 AM
  2. Replies: 4
    Last Post: 02-24-2017, 02:06 AM
  3. Replies: 1
    Last Post: 12-17-2015, 11:22 AM
  4. Countif within a range of numbers
    By discgolfer_1999 in forum Excel General
    Replies: 3
    Last Post: 06-08-2009, 09:50 AM
  5. COUNTIF for range of numbers
    By bimseun in forum Excel General
    Replies: 3
    Last Post: 01-24-2006, 10:45 AM
  6. How do I use CountIf formula to count a within a range of numbers
    By petevang in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-08-2005, 11:35 AM
  7. Using COUNTIF to find numbers within a range greater than the mean
    By Lowkey in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-17-2005, 02:06 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