Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
JMB
 
Posts: n/a
Default Using wildcards in lookup?

One way to return the last incident in the list using Search, assuming A1:A5
is the table to be searched, D1 contains the substring to find in A1:A5.

=INDEX(A1:A5,MAX(IF(--(ISNUMBER(SEARCH(D1,A1:A7,1)))=0,"",((ISNUMBER(SEA RCH(D1,A1:A7,1)))*ROW(INDIRECT("1:"&ROWS(A1:A7)))) )))

Must confirm with Control+Shift+Enter after keying it in.

"Michael at Thin Air" wrote:

Is there a way to use LOOKUP with wildcards?

Or is there something that does the similar operation on strings that can
use wild cards but also return the last incident in the list?

I am doing a lookup on columns that have similar grouped named items in it
and would like the last found item to be placed in another row.

=IF($M13=1,LOOKUP("A Upgrade of Service - 2
Year",O$6:O12),IF(ISNUMBER(SEARCH("Upgrade",$L13)) ,$L13,0))

This is my current search which if M13 = 1 indicating this is the service
plan, I want the type of service to be placed in o13 which is the last item
found in the lookup. So similar to SEARCH is what I'm looking for but because
I'm trying to ultimately make one row of compiled data from about 20 rows of
information, I run out of "IF's" in a big hurry.

It would be awesome if:

=IF($M13=1,LOOKUP("*Service*",O$6:O12),IF(ISNUMBER (SEARCH("Upgrade",$L13)),$L13,0))

Worked but it doesn't.

My next thought was:

=IF($M13=1,LOOKUP("Service",O$6:O12),IF(ISNUMBER(S EARCH("Upgrade",$L13)),$L13,0))

But since I can't change LOOKUP to find anything close or greater than, it's
not working for me without an exact match.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Another way to lookup data David Vollmer Excel Worksheet Functions 1 September 23rd 05 05:16 AM
Lookup Vector > Lookup Value Alec Kolundzic Excel Worksheet Functions 6 June 10th 05 02:14 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Lookup function w/Text and Year Josh O. Excel Worksheet Functions 1 February 12th 05 11:27 PM
double lookup, nest, or macro? Josef.angel Excel Worksheet Functions 1 October 29th 04 09:50 AM


All times are GMT +1. The time now is 12:14 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"