Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Wildcard - help I'm stuck

How do I insert a wildcard in the following query?

=IF(VLOOKUP(G5,Calendar!$A:$G,7) = "*Q*",blah blah,blah blah)

Thanks
Nathan
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 111
Default Wildcard - help I'm stuck

Hi,
try this

=IF(ISERROR(FIND("Q",VLOOKUP(G4,$A$1:$E$8,5,0)))," Q is NOT present","Q
Is Present")

replace FIND with SEARCH if you want case insensitive...

Hth,
OJ

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 111
Default Wildcard - help I'm stuck

Hi,
I forgot to mention that this will return "Q is NOT present" if the
vlookup produces an error....is that an issue? If so, try this...

=IF(ISERROR(VLOOKUP(G5,Calendar!$A:$G,*7)),"VLOOKU P
FAILED",IF(ISERROR(FIND("Q",VLOOKUP(G5,Calendar!$A :$G,*7))),"Q is NOT
present","Q
Is Present"))

Regards,
OJ

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Wildcard - help I'm stuck

Thanks OJ,

Worked a treat.

Cheers,
Nathan

"OJ" wrote in message oups.com...
Hi,
I forgot to mention that this will return "Q is NOT present" if the
vlookup produces an error....is that an issue? If so, try this...

=3DIF(ISERROR(VLOOKUP(G5,Calendar!$A:$G,=AD7)),"VL OOKUP
FAILED",IF(ISERROR(FIND("Q",VLOOKUP(G5,Calendar!$A :$G,=AD7))),"Q is NOT
present","Q=20
Is Present"))

Regards,
OJ

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
This ones got me stuck DB Excel Worksheet Functions 4 April 4th 07 09:25 PM
stuck darkbearpooh1 Excel Worksheet Functions 7 February 10th 06 10:21 PM
Stuck with an =IF Mark R... Excel Worksheet Functions 2 January 25th 06 04:41 PM
Stuck! John[_78_] Excel Programming 7 February 25th 04 01:52 PM
I am new to VBA and am stuck djsmithuk123 Excel Programming 2 December 12th 03 02:13 PM


All times are GMT +1. The time now is 11:35 AM.

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

About Us

"It's about Microsoft Excel"