Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Excel 2010
Whe Data1 is a named range of nine cells. The values in each cell of Data1 will always be 1 to 9 or a combination of numbers 1 to 9 and each cell will have no duplicates. And each cell could have just 1 number or perhaps three or all 9. P1 is a cell with a Data Validation drop down list of numbers 1 to 9. In a separate cell I have used =COUNTIF(Data1,P1) to count the number times the P1 value occurs in Data1. It does not work. Can you suggest a formula to do this? Thanks. Regards, Howard |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() |
#4
![]() |
|||
|
|||
![]() Quote:
I cannot take credit for the formula. I pinched it from another forum and adapted it to your needs. Worth pointing out that in your example above, there are not 5 instances of 4, but rather 6 :) |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Howard
Well that paints a different picture in that you are wanting to count specifically, the matching numerals within a group of numbers. This would require the combination use of possibly MID, LEN, MATCH, INDIRECT, essentially a fairly complex formula of which is beyond my level of expertise I'm afraid. Good luck Mick. |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() |
#7
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Howard,
Am Sat, 18 Aug 2012 21:17:42 -0700 (PDT) schrieb : Here is a sample of entries for Data1. With 4 in the drop down cell P1 I would expect to return the value 5. =COUNTIF(Data1,P1) returns 0 (zero). 123456789 456 234 123 4 479 5 149 289 try: =COUNT(SEARCH(P1,Data)) and enter the array formula with CTRL+Shift+Enter In your example I see 6 times the 4 Regards Claus Busch -- Win XP PRof SP2 / Vista Ultimate SP2 Office 2003 SP2 /2007 Ultimate SP2 |
#8
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
On Saturday, August 18, 2012 5:36:59 PM UTC-7, (unknown) wrote:
Excel 2010 Whe Data1 is a named range of nine cells. The values in each cell of Data1 will always be 1 to 9 or a combination of numbers 1 to 9 and each cell will have no duplicates. And each cell could have just 1 number or perhaps three or all 9. P1 is a cell with a Data Validation drop down list of numbers 1 to 9. In a separate cell I have used =COUNTIF(Data1,P1) to count the number times the P1 value occurs in Data1. It does not work. Can you suggest a formula to do this? Thanks. Regards, Howard On Saturday, August 18, 2012 5:36:59 PM UTC-7, (unknown) wrote: Excel 2010 Whe Data1 is a named range of nine cells. The values in each cell of Data1 will always be 1 to 9 or a combination of numbers 1 to 9 and each cell will have no duplicates. And each cell could have just 1 number or perhaps three or all 9. P1 is a cell with a Data Validation drop down list of numbers 1 to 9. In a separate cell I have used =COUNTIF(Data1,P1) to count the number times the P1 value occurs in Data1. It does not work. Can you suggest a formula to do this? Thanks. Regards, Howard Whoops, six is the correct numbrer, I missed one! Thanks everyone, I'll give it a go. Regards, Howard |
#9
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
On Saturday, August 18, 2012 5:36:59 PM UTC-7, (unknown) wrote:
Excel 2010 Whe Data1 is a named range of nine cells. The values in each cell of Data1 will always be 1 to 9 or a combination of numbers 1 to 9 and each cell will have no duplicates. And each cell could have just 1 number or perhaps three or all 9. P1 is a cell with a Data Validation drop down list of numbers 1 to 9. In a separate cell I have used =COUNTIF(Data1,P1) to count the number times the P1 value occurs in Data1. It does not work. Can you suggest a formula to do this? Thanks. Regards, Howard Thanks to all!!! Every suggestion offered worked. Rgards, Howard |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
COUNTIF FORMULA ISSUES - NEED FORMULA CORRECTED | Excel Worksheet Functions | |||
help in countif formula. | Excel Discussion (Misc queries) | |||
countif formula | Excel Discussion (Misc queries) | |||
CountIf formula results in the formula itself being displayed. | Excel Worksheet Functions | |||
Countif formula and then some... | Excel Worksheet Functions |