Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-14-2015, 06:49 PM
piper7971 piper7971 is offline how to look up for multiple criteria Windows Vista how to look up for multiple criteria Office 2007
Advanced Beginner
how to look up for multiple criteria
 
Join Date: Jul 2010
Posts: 38
piper7971 is on a distinguished road
Default how to look up for multiple criteria

HI!

I am using this formula to look for 1 criteria, but I was wondering If it can be made to look for more that one. I uploaded an example.
In the example I added the other criteria I want to look for


=IF(ISERROR(INDEX($A$1:$B$14,SMALL(IF($A$1:$A$14=$ E$1,ROW($A$1:$A$14)),ROW(1:1)),2)),"",INDEX($A$1:$ B$14,SMALL(IF($A$1:$A$14=$E$1,ROW($A$1:$A$14)),ROW (1:1)),2))

Thanks!
Attached Files
File Type: xlsx Copy of eImagine-Excel-Multiple-Matches.xlsx (16.4 KB, 25 views)
Reply With Quote
  #2  
Old 06-14-2015, 09:50 PM
macropod's Avatar
macropod macropod is offline how to look up for multiple criteria Windows 7 64bit how to look up for multiple criteria Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Other than changing the two references to $E$1 to E$1, so you can copy the formula across, I'm not sure what you're after.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 06-14-2015, 11:59 PM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline how to look up for multiple criteria Windows 7 64bit how to look up for multiple criteria Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,780
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

And if you are using a post 2003 version as you indicate in your info, you can replace (If(iserror with IFERROR
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #4  
Old 06-15-2015, 04:06 AM
piper7971 piper7971 is offline how to look up for multiple criteria Windows Vista how to look up for multiple criteria Office 2007
Advanced Beginner
how to look up for multiple criteria
 
Join Date: Jul 2010
Posts: 38
piper7971 is on a distinguished road
Default

I am sorry if I was not clear enough.
If you look at the example, the formula works by looking 1 criteria for example "mouse" but I need to look in the same column for " mouse, dog, cat, sheep and horse" (or whatever 5 I put). I want to return all the formula finds of those 5 in a column (e1:e20 for example) instead of having to copy the formula across for each one of the items I need to find as you understood .
Reply With Quote
  #5  
Old 06-15-2015, 06:38 PM
macropod's Avatar
macropod macropod is offline how to look up for multiple criteria Windows 7 64bit how to look up for multiple criteria Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

In that case, you could change:
$E$1
to:
$E$1:$I$1
Code:
=IF(ISERROR(INDEX($A$1:$B$14,SMALL(IF($A$1:$A$14=$E$1:$I$1,ROW($A$1:$A$14)),ROW(1:1)),2)),"",INDEX($A$1:$B$14,SMALL(IF($A$1:$A$14=$E$1:$I$1,ROW($A$1:$A$14)),ROW(1:1)),2))
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #6  
Old 06-16-2015, 03:42 AM
piper7971 piper7971 is offline how to look up for multiple criteria Windows Vista how to look up for multiple criteria Office 2007
Advanced Beginner
how to look up for multiple criteria
 
Join Date: Jul 2010
Posts: 38
piper7971 is on a distinguished road
Default

Oh, my God! I tried that before and since it did not work I decided to ask in the forum. I just realized it was because of the control+shift thing. Urrg!


Thanks a lot of your help if it weren't for all the help I find in this forum I would have gone crazy by now.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to look up for multiple criteria I need to add multiple values based on multiple criteria in a cell not sure what to do AUHAMM Excel 3 10-27-2014 09:11 PM
how to look up for multiple criteria Copy Multiple Rows to new workbook when multiple criteria is met. flds Excel Programming 5 09-30-2014 09:58 AM
Ranking with multiple criteria angie.chang Excel 0 08-14-2012 04:49 PM
excel vlookup with multiple criteria mpokorny Excel 4 05-06-2012 04:06 AM
how to look up for multiple criteria Multiple criteria in SUMIF? pumpkin head Excel 1 02-17-2006 09:06 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:57 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft