Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default See if a range of cells contains certain text to return the value

I am trying to cross reference several sheets of data to be sure that the
proper numbers are pulled back to my main sheet. The only common column that
exists is name, however, some have the name as "Smith, John" and some as
"Smith, John;Smith, Mary" My current if(isna(vlookup) attempt seems to work
for rows where there is only 1 person (no ;Smith, Mary) it does not find
data if there are 2 names. I can't figure out how to match up on the second
name. Any suggestions?

Currently my formula looks like this
=if(isna(vlookup(Mainsheetcolumn1entry!A5,Secondar yworksheetrangeD$2:1$300,6,false)),0,vlookup(Mains heetcolumn1entry!A5,SecondaryworksheetrangeD$2:1$3 00,6,false))
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default See if a range of cells contains certain text to return the value

Try using a wildcard:

"*"&Mainsheetcolumn1entry!A5&"*"

--
Biff
Microsoft Excel MVP


"Eliah" wrote in message
...
I am trying to cross reference several sheets of data to be sure that the
proper numbers are pulled back to my main sheet. The only common column
that
exists is name, however, some have the name as "Smith, John" and some as
"Smith, John;Smith, Mary" My current if(isna(vlookup) attempt seems to
work
for rows where there is only 1 person (no ;Smith, Mary) it does not find
data if there are 2 names. I can't figure out how to match up on the
second
name. Any suggestions?

Currently my formula looks like this
=if(isna(vlookup(Mainsheetcolumn1entry!A5,Secondar yworksheetrangeD$2:1$300,6,false)),0,vlookup(Mains heetcolumn1entry!A5,SecondaryworksheetrangeD$2:1$3 00,6,false))



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,344
Default See if a range of cells contains certain text to return the value

Hi,

You can use wildcards with VLOOKUP
*, ?, and ~


--
Thanks,
Shane Devenshire


"Eliah" wrote:

I am trying to cross reference several sheets of data to be sure that the
proper numbers are pulled back to my main sheet. The only common column that
exists is name, however, some have the name as "Smith, John" and some as
"Smith, John;Smith, Mary" My current if(isna(vlookup) attempt seems to work
for rows where there is only 1 person (no ;Smith, Mary) it does not find
data if there are 2 names. I can't figure out how to match up on the second
name. Any suggestions?

Currently my formula looks like this
=if(isna(vlookup(Mainsheetcolumn1entry!A5,Secondar yworksheetrangeD$2:1$300,6,false)),0,vlookup(Mains heetcolumn1entry!A5,SecondaryworksheetrangeD$2:1$3 00,6,false))

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default See if a range of cells contains certain text to return the value

Maybe you could try wildcards on the lookup value

Assume A2 down contains: Smith, John
and col D is the vlookup's lookup col which may contain:
Smith, John;Smith, Mary

Then in say, B2, copied down:
=VLOOKUP("*"&A2&"*",D:L,6,0)

And if you're looking to list possible multiple results from the source
vlookup's lookup col (ie from col D in the example above), its easiest to
apply/use Autofilter Custom. There is a "contains" option in the Custom
Autofilter dialog's droplist under "Show rows whe" (the option's right at
the bottom of the droplist, 2nd last).
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:20,000 Files:362 Subscribers:62
xdemechanik
---
"Eliah" wrote:
I am trying to cross reference several sheets of data to be sure that the
proper numbers are pulled back to my main sheet. The only common column that
exists is name, however, some have the name as "Smith, John" and some as
"Smith, John;Smith, Mary" My current if(isna(vlookup) attempt seems to work
for rows where there is only 1 person (no ;Smith, Mary) it does not find
data if there are 2 names. I can't figure out how to match up on the second
name. Any suggestions?

Currently my formula looks like this
=if(isna(vlookup(Mainsheetcolumn1entry!A5,Secondar yworksheetrangeD$2:1$300,6,false)),0,vlookup(Mains heetcolumn1entry!A5,SecondaryworksheetrangeD$2:1$3 00,6,false))

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
Find value between range & return text RangeFinder Excel Worksheet Functions 1 October 15th 08 11:13 PM
Formula to return the reference of a range of cells tiptoe Excel Discussion (Misc queries) 4 February 16th 08 11:28 PM
Return A Range of All Cells With Links MDW Excel Worksheet Functions 3 April 8th 06 02:48 AM
lookup and return range of cells ark Excel Worksheet Functions 3 August 6th 05 05:18 PM
How do I return the highest value in a range of cells pjs83 Excel Worksheet Functions 5 July 6th 05 09:25 PM


All times are GMT +1. The time now is 05:38 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"