Kilgore_elder
New Member
- Joined
- Apr 14, 2017
- Messages
- 26
Dear Forum,
I have a frustrating problem and need help. I have a worksheet where it identifies the number of times keywords appear in a list in Column A. The worksheet then identifies the keywords and lists them in Column F. each separate instance of the words has a corresponding number in Column B. Each instance of the word's number appears in a row in Columns H to AK. This allows for up to 30 instances of a word/number. The available numbers are then totalled in Column AL and this number is then divided by the number of instances the word appears in the list, which is listed in Column G. The word from Column F is copied to Column AN.
Column F is an array that uses a UDF (ListOfWords) and Columns H to AK also use an array.
The Column F array is: {=ListOfWords($A$1:$A$5000, FALSE)}
Column G formula is: =COUNTIF($A$1:$A$5000,$F1) (this increments down the column)
Columns H to AK array is: {=INDEX($B$1:$B$5000, SMALL(IF(ISNUMBER(SEARCH($F$1, $A$1:$A$5000)), MATCH(ROW($A$1:$A$5000), ROW($A$1:$A$5000))), ROW($A$1)))} This array increments along the columns and down the rows.
What I have found is that it is counting instances where the word, i.e. 'Requirement', is also including the count of words such as require. This means that columns H to AK are including the numbers associated with instances of the word 'require' as well as 'requirement'. What I need is the ability to count whole words only and not substrings of words.
It would be better to provide a sample worksheet, but I can't work out how I post it.
Any assistance would be greatly appreciated.
Thanks in anticipation,
Kilgore_elder
I have a frustrating problem and need help. I have a worksheet where it identifies the number of times keywords appear in a list in Column A. The worksheet then identifies the keywords and lists them in Column F. each separate instance of the words has a corresponding number in Column B. Each instance of the word's number appears in a row in Columns H to AK. This allows for up to 30 instances of a word/number. The available numbers are then totalled in Column AL and this number is then divided by the number of instances the word appears in the list, which is listed in Column G. The word from Column F is copied to Column AN.
Column F is an array that uses a UDF (ListOfWords) and Columns H to AK also use an array.
The Column F array is: {=ListOfWords($A$1:$A$5000, FALSE)}
Column G formula is: =COUNTIF($A$1:$A$5000,$F1) (this increments down the column)
Columns H to AK array is: {=INDEX($B$1:$B$5000, SMALL(IF(ISNUMBER(SEARCH($F$1, $A$1:$A$5000)), MATCH(ROW($A$1:$A$5000), ROW($A$1:$A$5000))), ROW($A$1)))} This array increments along the columns and down the rows.
What I have found is that it is counting instances where the word, i.e. 'Requirement', is also including the count of words such as require. This means that columns H to AK are including the numbers associated with instances of the word 'require' as well as 'requirement'. What I need is the ability to count whole words only and not substrings of words.
It would be better to provide a sample worksheet, but I can't work out how I post it.
Any assistance would be greatly appreciated.
Thanks in anticipation,
Kilgore_elder