index searching non-value/text

hwkeyser

Board Regular
Joined
Jun 7, 2011
Messages
116
I have a very long function i'm trying to develop. it has two parts, but i only need help on the first:

I am trying to index search a column based on matching a row. However, i'm trying to match a non-value item. i am trying to match a word.

for example:
i want to return a value from column A by finding the first instance of a word in column D.

Initially, i was trying index/match searches, but because my 'lookup-value' is a not a value, it does not allow this function.

(original formula)

=INDEX('S11'!D:D,MATCH(F4,'S11'!H:H,0))

sections in red are words


Is there a vlookup/index style function which allows the use of non-value cells?

this spreadsheet has 7000 rows and hundreds of word variables i'm searching for, additionally, i'm trying to apply this function to lookup all cells with no exact words placed in quotes within the function so i can duplicate it down 600 instances.


any help would be great, thanks!

-HK
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
It always returns the basic #N/A


I have about 50 documents i use index/match on, but this is the first i couldn't figure out.
 
Upvote 0
I have a very long function i'm trying to develop. it has two parts, but i only need help on the first:

I am trying to index search a column based on matching a row. However, i'm trying to match a non-value item. i am trying to match a word.

for example:
i want to return a value from column A by finding the first instance of a word in column D.

Initially, i was trying index/match searches, but because my 'lookup-value' is a not a value, it does not allow this function.

(original formula)

=INDEX('S11'!D:D,MATCH(F4,'S11'!H:H,0))

sections in red are words


Is there a vlookup/index style function which allows the use of non-value cells?

this spreadsheet has 7000 rows and hundreds of word variables i'm searching for, additionally, i'm trying to apply this function to lookup all cells with no exact words placed in quotes within the function so i can duplicate it down 600 instances.


any help would be great, thanks!

-HK
That formula works just as well with text.

Book1
DHIJK
21Tom_Biff4
32Sue___
43Lisa___
54Biff___
65Joe___
Sheet1

This formula entered in K2:

=INDEX(D2:D6,MATCH(J2,H2:H6,0))

If your formula isn't working then one possibility is that the lookup values don't "exactly" match the string(s) you're looking for.

See this for common data problems:

http://contextures.com/xlFunctions02.html#Trouble
 
Upvote 0
for some reason when i change the match from exact to greater-than, it returns the correct value from the final instance of the word.

any explanation for such a peculiar circumstance?
 
Upvote 0
for some reason when i change the match from exact to greater-than, it returns the correct value from the final instance of the word.

any explanation for such a peculiar circumstance?
I'm sure there's a valid explanation but it would require being able to see the file data to figure it out.

Or, it may be just "dumb luck". That happens every now and then!
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,297
Members
452,903
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top