Use Like in Vlookup

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---
 
D

Dave Peterson

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(....
 
T

T. Valko

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
 
R

ryguy7272

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top