Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default If statement? Or lookup? Or both? Please help...

Tom corrected this response.

If you're tring to add the values returned by the =vlookup()'s, you could use
the userdefined function in this thread:

http://groups.google.com/groups?thre...EADA%40msn.com

And then wrap it in =sum()

=sum(mvlookup("*dog*",sheet2!$a:$b,2,false))

If you're returning text or want to see the individual values, you can select as
many cells (in a row or in a column) that you expect to return and then hit
ctrl-shift-enter (instead of just enter).



Dave Peterson wrote:

something like:

=vlookup("*dog*",sheet2!$a:$b,2,false)
or
=vlookup("dog*",sheet2!$a:$b,2,false)
(if it has to start with dog.)

"ian123 <" wrote:

I've only ever used vlookups to search for exact matches - is it
possible to search for entries that are partial matches or contain some
of the words?

Eg, if i vlookup dog all i get back is the appropriate value for an
exact match of dog... however i need the lookup to pick up any matches
containing dog eg dog, doggy, doggie, dog123 etc

Anyone know if this is possible? Cheers

---
Message posted from http://www.ExcelForum.com/


--

Dave Peterson


--

Dave Peterson

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
Need help with a lookup or if statement Franci Excel Worksheet Functions 4 October 30th 09 05:02 AM
Nested If statement or lookup? Lee Excel Worksheet Functions 1 January 18th 09 11:56 PM
If statement or lookup statement not sure Renegade40 Excel Worksheet Functions 2 January 18th 09 06:11 AM
If or lookup Statement Chey Excel Discussion (Misc queries) 2 October 24th 08 08:33 PM
Lookup/if statement? Connie Excel Discussion (Misc queries) 5 August 16th 05 11:57 PM


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