+ Reply to Thread
Results 1 to 4 of 4

Formula to return count of value entered

  1. #1
    Registered User
    Join Date
    12-12-2018
    Location
    Minneapolis
    MS-Off Ver
    2016
    Posts
    36

    Formula to return count of value entered

    I want a formula that will return a count value for the number of occurances when a variable is typed in to the cell adjacent.
    I have attached an spreadsheet as an example. If I enter a combination of numbers in cell H4 from cloumn H (always first) and column I the formula in cell I4 will tell me how many times that combination appears between the 2 columns.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    02-11-2018
    Location
    Ohio
    MS-Off Ver
    2016
    Posts
    16

    Re: Formula to return count of value entered

    In I4:

    in your example, if you want a count of the 13's in column H and a count of 2's in column I, use this formula. returns 7-33
    =COUNTIF($H$8:$H$100000,LEFT(H4,FIND("-",H4)-1))&"-"&COUNTIF($I$8:$I$100000,RIGHT(H4,LEN(H4)-FIND("-",H4)))

    If you want a count of 13's in BOTH columns, and a count of 2's in BOTH columns, use this formula: returns 7-45
    =COUNTIF($H$8:$I$99999,LEFT(H4,FIND("-",H4)-1))&"-"&COUNTIF($H$8:$I$100000,RIGHT(H4,LEN(H4)-FIND("-",H4)))

    or, did you want a count of how many times 13 appears in H AND next to it in column I there is a 2?

    it wasn't clear which one u wanted...

    does this help?

  3. #3
    Registered User
    Join Date
    12-12-2018
    Location
    Minneapolis
    MS-Off Ver
    2016
    Posts
    36

    Re: Formula to return count of value entered

    I want the last answer. If I enter 13-2 how many times doesa that combination appear btween H & I. If I enter 6-4... how many times etc.

  4. #4
    Registered User
    Join Date
    02-11-2018
    Location
    Ohio
    MS-Off Ver
    2016
    Posts
    16

    Re: Formula to return count of value entered

    Quote Originally Posted by eberns65 View Post
    I want the last answer. If I enter 13-2 how many times doesa that combination appear btween H & I. If I enter 6-4... how many times etc.
    sorry, i dint understand this from your original post. here is the correct one:

    =COUNTIFS($H$8:$H$100000,LEFT(H4,FIND("-",H4)-1),$I$8:$I$100000,RIGHT(H4,LEN(H4)-FIND("-",H4)))

+ 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] Formula to select last number '1' entered and count '0' that follow
    By Mark-UK in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-12-2018, 10:20 AM
  2. [SOLVED] Formula to count number of cells containing entered numbers but NOT a cell with =SUM()
    By peculiar101 in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 11-21-2018, 05:54 PM
  3. [SOLVED] Formula needed to only count total cells entered and not count adjacent text entered cells
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-07-2013, 06:22 PM
  4. Need a formula to return the last (i.e. lowest row) value entered into a table
    By ianpwilliams in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-26-2013, 04:39 AM
  5. [SOLVED] Count/No Count for year entered---formula help
    By awest181 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-26-2012, 02:07 PM
  6. Need formula to count how many times a specific name is entered in a column
    By JoeBlakkk in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-04-2012, 01:36 PM
  7. Replies: 5
    Last Post: 06-03-2011, 03:52 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