Barchetta99
New Member
- Joined
- Apr 8, 2020
- Messages
- 3
- Office Version
- 365
- Platform
- Windows
Hi Folks,
Thanks for taking the time to look at my issue.
I have a field,
e.g. this hat is red
Named Range List - contains words in priority order and
1 red
2 hat
3 this
4 test
5 animal
6 word
Named Range Comment - is used by vlookup to pull out the comments i want to make.
1 red - Ruby Red
2 hat - hat on head
3 this - this old house
4
5
6 word - a word by no deed
I am looking for about 40 words.
I'm using this formula
VLOOKUP(INDEX(List,SUMPRODUCT(ISNUMBER(SEARCH(List,I47))*ROW($1:$41))),Comment,2,FALSE)
Answer Returned = value 6 - A Word by no deed.
In using this formula I can find the words and if my list had unique words only it would work.
Instead what is happening is where multiple words are found in a field the sum products add the values together and come up with a new value which is incorrect based on the logic of a priority ordered list.
I'd like the list to stop looking as soon as it finds a word, I'm thinking i probably need to use a vba case statement for each word to get it stop rather than progress?
I am looking at circa 32,000 rows to then create a pivot on the most frequent words based on this hierarchy. I then need to repeat it monthly.
Any thoughts gratefully received.
Thanks for taking the time to look at my issue.
I have a field,
e.g. this hat is red
Named Range List - contains words in priority order and
1 red
2 hat
3 this
4 test
5 animal
6 word
Named Range Comment - is used by vlookup to pull out the comments i want to make.
1 red - Ruby Red
2 hat - hat on head
3 this - this old house
4
5
6 word - a word by no deed
I am looking for about 40 words.
I'm using this formula
VLOOKUP(INDEX(List,SUMPRODUCT(ISNUMBER(SEARCH(List,I47))*ROW($1:$41))),Comment,2,FALSE)
Answer Returned = value 6 - A Word by no deed.
In using this formula I can find the words and if my list had unique words only it would work.
Instead what is happening is where multiple words are found in a field the sum products add the values together and come up with a new value which is incorrect based on the logic of a priority ordered list.
I'd like the list to stop looking as soon as it finds a word, I'm thinking i probably need to use a vba case statement for each word to get it stop rather than progress?
I am looking at circa 32,000 rows to then create a pivot on the most frequent words based on this hierarchy. I then need to repeat it monthly.
Any thoughts gratefully received.