+ Reply to Thread
Results 1 to 10 of 10

Check for Number in one column - then count specific numbers in a range.

Hybrid View

  1. #1
    Registered User
    Join Date
    10-28-2014
    Location
    FL
    MS-Off Ver
    2010
    Posts
    5

    Post Check for Number in one column - then count specific numbers in a range.

    Guys I would appreciate any help you could offer me on this
    (I spent 3 days searching about everyplace I can think of for a solution)

    Column "B" has 75 items. Of those items 1 to 25 are numbered the rest are blank.
    (All are needed, but only the newest 25 are relative).

    Column "D" through "J" have numbers (75 per column).
    I need to use the numbers in column "B" Only to "Authorize" searching D1:J75 for the number of occurrences of a specific number.
    (The number in "B" is else-wise semi irrelevant)

    The Numbers in column "B" will be re-ordered when "New" data is appended to future rows.

    I have tried COUNTIF, COUNTIFS, SUMPRODUCT, IF-Then with no luck.
    I am new(ish) to the more advanced features of Excel, but I am familiar with the program itself (So its possible that I made a newbie error somewhere).

    Thanks - I Really appreciate it...

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Check for Number in one column - then count specific numbers in a range.

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    10-28-2014
    Location
    FL
    MS-Off Ver
    2010
    Posts
    5

    Re: Check for Number in one column - then count specific numbers in a range.

    Thanks -
    Here's the idea:

    example.xlsx

  4. #4
    Forum Contributor
    Join Date
    09-17-2014
    Location
    UK
    MS-Off Ver
    2007
    Posts
    117

    Re: Check for Number in one column - then count specific numbers in a range.

    Hi Carlos

    So for the value of 1 in B7, you want to count the instances where the value of 17 (d7) occurs in range D7:D81?

  5. #5
    Registered User
    Join Date
    10-28-2014
    Location
    FL
    MS-Off Ver
    2010
    Posts
    5

    Re: Check for Number in one column - then count specific numbers in a range.

    So for the value of 1 in B7, you want to count the instances where the value of 17 (d7) occurs in range D7:D81?
    Close, I do want to be able to count the number of times a number repeats/occurs in the range D7:H51
    But B7 (the "B" Column) isn't a "Value" - More like an on/off switch - if there is a number there include that row in the search of the range. (And to number the 25 most recent entries)

  6. #6
    Forum Contributor
    Join Date
    09-17-2014
    Location
    UK
    MS-Off Ver
    2007
    Posts
    117

    Re: Check for Number in one column - then count specific numbers in a range.

    So........

    The criteria is that column B has a value >0 and when this is met, then a calculation is performed.

    In your example, for B7 (as 1>0 so criteria met) what's the calculation you want to happen?

    I need to use the numbers in column "B" Only to "Authorize" searching D1:J75 for the number of occurrences of a specific number.
    What is the specific number (in your example) that you want to count the instances of?

    Multitasking badly so apologies if you clearly stated this earlier

  7. #7
    Registered User
    Join Date
    10-28-2014
    Location
    FL
    MS-Off Ver
    2010
    Posts
    5

    Re: Check for Number in one column - then count specific numbers in a range.

    YES!!! That's the Key!

    I want to see how many times a specific number is in the range D7:J75.
    (I'll put the formula adjacent to the number I'm looking for and edit the formula accordingly (I.E. Q + R columns)

    Say I'm looking for #1 in the range the formula would go into R7, If Looking for #2 it would go into R8 - etc.

    No need to apologize, Multitasking myself.

  8. #8
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Check for Number in one column - then count specific numbers in a range.


  9. #9
    Registered User
    Join Date
    10-28-2014
    Location
    FL
    MS-Off Ver
    2010
    Posts
    5

    Re: Check for Number in one column - then count specific numbers in a range.

    Sure Did!

    - Good Catch and thanks for linking in the other forum.
    (Personally I consider it bad manners to promote another forum on a forums site - but if that's what they want - so be it).

    This issue is still unresolved - Still looking for answers!

  10. #10
    Forum Contributor
    Join Date
    09-17-2014
    Location
    UK
    MS-Off Ver
    2007
    Posts
    117

    Re: Check for Number in one column - then count specific numbers in a range.

    I'm still not completely clear, from your example, as to which number(s) you are wanting a count of if column B >0.

    I have a range (D7:H31 (marked yellow in your example)) and a criteria (>0) however I need the specific number you need a count of to progress...

    I want to see how many times a specific number is in the range D7:J75.
    (I'll put the formula adjacent to the number I'm looking for and edit the formula accordingly (I.E. Q + R columns)

    Say I'm looking for #1 in the range the formula would go into R7, If Looking for #2 it would go into R8 - etc.
    1) So as B7 is 1, what number am I needing to count the instances of in your highlighted range?

    2) What's the relevance of the range D7:J75 in the example provided as your last highlighted row is 31?

    3) Based on your example provided, what's your expected result in R7 and what number was counted to give that result?

+ 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. Replies: 3
    Last Post: 09-23-2014, 02:48 PM
  2. count numbers in specific range
    By mubashar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-20-2014, 02:05 AM
  3. Replies: 2
    Last Post: 12-17-2013, 06:30 AM
  4. [SOLVED] Formula to count number of times specific word used in column range
    By flammer4 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-07-2012, 01:42 PM
  5. Count the number between specific Range of numbers
    By lavan_joy in forum Excel General
    Replies: 3
    Last Post: 01-19-2012, 11:00 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