Use Like in Vlookup

  • Thread starter Thread starter ryguy7272
  • Start date Start date
R

ryguy7272

Here is my function:
=IF(ISNA(VLOOKUP(H12,'booked pivot'!G:H,2,FALSE)),0,VLOOKUP(H12,'booked
pivot'!G:H,2,FALSE))

I am trying to get Excel to evaluate this string in cell H12:
"US-MD"

The data looks like this:
Medscape - US-HCP - Cardiology - 728x90 - Top, 03/01/2009
Medscape - US-MD - Cardiology - 120x600 - LR, 03/01/2009

Any ideas on how to do this?


Thanks,
Ryan---
 
Just to add to Ashish's response...

You may want to make sure that H12 is non-empty--otherwise "**" will match the
first entry.

=if(h12="","",vlookup(....
 
Are you wanting to return the date?

This is all in one cell in column G ?

Medscape - US-MD - Cardiology - 120x600 - LR

And the date is in column H ?

As long as there is only one instance of US-MD you can use a SUMIF formula:

=SUMIF('booked pivot'!G:G,"*"&H12&"*",'booked pivot'!H:H)

Format as Date
 
Thanks everyone!!
Ryan--

--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


T. Valko said:
Are you wanting to return the date?

This is all in one cell in column G ?

Medscape - US-MD - Cardiology - 120x600 - LR

And the date is in column H ?

As long as there is only one instance of US-MD you can use a SUMIF formula:

=SUMIF('booked pivot'!G:G,"*"&H12&"*",'booked pivot'!H:H)

Format as Date
 
Back
Top