0% found this document useful (0 votes)
512 views

How To Return Multiple Values Using Vlookup in Excel - Get Digital Help - Microsoft Excel Resource

The document provides instructions for using array formulas in Excel to return multiple matching values from a lookup, rather than just the first matching value as returned by a standard VLOOKUP function. It describes how to return multiple matching values vertically in a single column, horizontally across multiple columns, or as multiple records including additional adjacent columns. The techniques use INDEX, SMALL, IF and ROW functions within an array formula to identify and extract the relevant matching values.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
512 views

How To Return Multiple Values Using Vlookup in Excel - Get Digital Help - Microsoft Excel Resource

The document provides instructions for using array formulas in Excel to return multiple matching values from a lookup, rather than just the first matching value as returned by a standard VLOOKUP function. It describes how to return multiple matching values vertically in a single column, horizontally across multiple columns, or as multiple records including additional adjacent columns. The techniques use INDEX, SMALL, IF and ROW functions within an array formula to identify and extract the relevant matching values.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

Home
Templates
Products
Categories
AdvancedFilter
Automate
Combine/Merge
Compare
ConditionalFormatting
CountValues
Dates
DropDownLists
DuplicateValues
Finance
Misc
PivotTable
Random
Records
Search/Lookup
SortValues
Templates
UniqueDistinctValues
UniqueValues
UniqueValues
UserDefinedFunctions
VBA
VLookup
Unique/Duplicates
Sortvalues
Countvalues
Search/Lookup
MicrosoftExcel
Archive
Contact
Contactme
AboutMe
Aboutme
BlogsIread

Popularcategories
Automate
Charts
Compare
Conditionalformatting
Countvalues
Dates
Dropdownlists
Misc
Pivottables
http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

1/73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

Search/Lookup
Sortvalues
Tables
Templates
UDF
VBA
Vlookup

Excelads
DashboardreportingwithexcelThisebookteachesyouhowtocreateyourownExceldashboardreports,startingfromscratch.Learnhowtocreatemini
charts,howtouseExcel'sCameratool,howtosetupExceldatabases,andalotmore.

RandomDataGeneratorforMicrosoftExcel20032010.CreaterandomfakedatasetsfortestingchartsexporttoMDB,XLS,TXT,CSV,XML

ExcelWorksheetFormulaAddInsallowsworksheetformulastochangechartsettings.Forthefirsttimeever,yourformulascancreatetrafficlightcharts,
highlightchartelements,assignnumberformats,andmuchmore.

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

2/73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

AdsWebhosting

WebHostingforonly1Penny!

FatCowWebHosting.FreeTrial,FreeSetup,FreeSupportAllriskfree!

TopRatedWebHosting$3.95/mo

100%EcoFriendlyWebHostingServiceiPageWebHosting

AdsAntivirus

KasperskyInternetSecurity2014

GetDigitalHelp>Excel>Search/Lookup>Howtoreturnmultiplevaluesusingvlookupinexcel
Previouspost

Nextpost

Howtoreturnmultiplevaluesusingvlookupinexcel
FiledinExcel,Search/Lookup,VlookuponOct.25,2009
Like

16

Tweet

Share

TheVLOOKUPfunctionisdesignedtoreturnonlythecorrespondingvalueofthefirstinstanceofalookupvalue.Butthereisaworkaroundtoidentifymultiple
matches.AlthoughVLOOKUPisnotusedinthesearrayformulas,theyareeasiertounderstandandtroubleshoot.
TableofContents
1. Returnmultiplevaluesvertically
2. Explainingformula(Returnvaluesvertically)
3. Returnmultiplevalueshorizontally
4. Returnmultiplerecords
5. Howtoremove#numerrors
6. Returnmultiplevaluesverticallyorhorizontally(vba)
7. Howtocreateanarrayformula
8. Lookupacrossmultiplesheets
9. VlookupReturnmultipleuniquedistinctvaluesinexcel
10. Searchforatextstringandreturnmultipleadjacentvalues
11. Lookupandreturnmultiplevaluesfromarangeexcludingblanks

Returnmultiplevaluesvertically

ArrayformulainC8:
=INDEX($C$2:$C$6,SMALL(IF($B$8=$B$2:$B$6,ROW($B$2:$B$6)MIN(ROW($B$2:$B$6))+1,""),ROW(A1)))
Entertheformulaasanarrayformulaorusethisregularbutmorecomplicatedformula:
=INDEX($C$2:$C$5,SMALL(INDEX(($B$8=$B$2:$B$6)*(MATCH(ROW($B$2:$B$6),ROW($B$2:$B$6)))+($B$8<>$B$2:$B$6)*1048577,0,0),ROW(A1)))
CopycellC8andpastetocellsbelow.Ifyouareinterestedinhowthisformulaworks,readthis:Explainingformula(Returnvaluesvertically)
Download*.xlsxfiles
Howtoreturnmultiplevaluesvertically.xlsx
http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

3/73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

Vlookupdynamicnamedrange.xlsx

Returnmultiplevalueshorizontally

ThisarrayformulaisenteredincellC9.ThencopycellC9andpastetotheright.
ArrayformulainC9:
=INDEX($C$2:$C$6,SMALL(IF($B$9=$B$2:$B$6,ROW($B$2:$B$6)MIN(ROW($B$2:$B$6))+1,""),COLUMN(A1)))
Entertheformulaasanarrayformulaorusethisregularbutmorecomplicatedformula:
=INDEX($C$2:$C$5,SMALL(INDEX(($B$9=$B$2:$B$6)*(MATCH(ROW($B$2:$B$6),ROW($B$2:$B$6)))+($B$9<>$B$2:$B$6)*1048577,0,0),
COLUMN(A1)))
Download*.xlsxfile
Returnmultiplevalueshorizontally.xlsx

Returnmultiplerecords

ArrayformulaincellA10:
=INDEX($A$2:$C$7,SMALL(IF($B$9=$A$2:$A$7,ROW($A$2:$A$7)MIN(ROW($A$2:$A$7))+1,""),ROW(A1)),COLUMN(A1))
CopycellA10andpastetocellrangeB10:C10.ThencopyA10:C10andpastetocellrangeA11:C12.
Entertheformulaasanarrayformulaorusethisregularbutmorecomplicatedformula:
=INDEX($A$2:$C$7,SMALL(INDEX(($B$9=$A$2:$A$7)*(MATCH(ROW($A$2:$A$7),ROW($A$2:$A$7)))+($B$9<>$A$2:$A$7)*1048577,0,
0),ROW(A1)),COLUMN(A1))
Howtocreateanarrayformula
Download*.xlsxfile
Vlookupreturnmultiplerecords.xlsx

Howtocreateanarrayformula
1. Copy(Ctrl+c)andpaste(Ctrl+v)arrayformulatoformulabar.

2. PressandholdCtrl+Shift.
3. PressEnteronce.
http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

4/73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

4. Releaseallkeys.

Howtoremove#numerrors
Arrayformula:
=IFERROR(array_formula,"")

Explainingarrayformula(Returnvaluesvertically)
Step1Identifycellsequaltothecriterion
=INDEX($C$2:$C$6,SMALL(IF($B$8=$B$2:$B$6,ROW($B$2:$B$6)MIN(ROW($B$2:$B$6))+1,""),ROW(A1)))
=(equalsign)isacomparisonoperatorandchecksifcriterion($B$8)isequaltovaluesinarray($B$2:$B$6).Thisoperatorisnotcasesensitive.
$B$8=$B$2:$B$6
becomes
"Pen"={"Pen","Eraser","Paper","Pen","PaperClip"}
becomes
{"Pen"="Pen","Pen"="Eraser","Pen"="Paper""Pen"="Pen","Pen"="PaperClip"}
becomes
{TRUE,FALSE,FALSE,TRUE,FALSE}
Step2Createarraycontainingrownumbers
=INDEX($C$2:$C$6,SMALL(IF($B$8=$B$2:$B$6,ROW($B$2:$B$6)MIN(ROW($B$2:$B$6))+1,""),ROW(A1)))
ROW($B$2:$B$6)MIN(ROW($B$2:$B$6))+1
becomes
{2,3,4,5,6}MIN({2,3,4,5,6})+1
becomes
{2,3,4,5,6}2+1
becomes
{2,3,4,5,6}1
becomes
{1,2,3,4,5}
Step3Filterrownumbersequaltocriterion
=INDEX($C$2:$C$6,SMALL(IF({TRUE,FALSE,FALSE,TRUE,FALSE},{1,2,3,4,5},""),ROW(A1)))
becomes
=INDEX($C$2:$C$6,SMALL({1,"","",4,""},ROW(A1)))
Step4Returnthekthsmallestrownumber
=INDEX($C$2:$C$6,SMALL(IF($B$8=$B$2:$B$6,ROW($B$2:$B$6)MIN(ROW($B$2:$B$6))+1,""),ROW(A1)))
SMALL(IF($B$8=$B$2:$B$6,ROW($B$2:$B$6)MIN(ROW($B$2:$B$6))+1,""),ROW(A1))
becomes
SMALL({1,"","",4,""},ROW(A1))
Thispartoftheformulareturnsthekthsmallestnumberinthearray(1,"","",4,"")
TocalcualtethekthsmallestvalueIamusingROW(A1)tocreatethenumber1.
WhentheformulaincellC8iscopiedtocellC9,ROW(A1)changestoROW(A2).ROW(A2)is2.
InCellC8:=INDEX($C$2:$C$6,SMALL((1,"","",4,""),ROW(A1)))
=INDEX($C$2:$C$6,SMALL((1,"","",4,""),1))
Thesmallestnumberinarray(1,"","",4,"")is1.
InCellC9:=INDEX($C$2:$C$6,SMALL((1,"","",4,""),ROW(A2)))
=INDEX($C$2:$C$6,SMALL((1,"","",4,""),2))
Thesecondsmallestnumberinarray(1,"","",4,"")is4.
Step5Returnvalueinrange
INDEX(array,row_num,[column_num])
http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

5/73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

Returnsavalueorreferenceofthecellattheintersectionofaparticularrowandcolumn,inagivenrange
InCellC8:
=INDEX($C$2:$C$6,1)
becomes
=INDEX({1.5,2,1,1.7,3},1)
andreturns$1.50
InCellC9:
=INDEX($C$2:$C$6,4)is$1,70
Interestedinlearningpowerfulexcelarrayformulaandfunctions?
CheckoutmyAdvancedexcelcourse.

Functionsinthisarticle:
VLOOKUP(lookup_valuetable_arraycol_index_num[range_lookup])
Looksforavalueintheleftmostcolumnofatable,andthenreturnsavalueinthesamerowfromacolumnyouspecify.Bydefault,thetablemustbesortedin
ascendingorder.
IF(logical_test[value_if:true][value_if_false])
Checkswhetheraconditionismet,andreturnsonevalueifTRUE,andanothervalueifFALSE
SMALL(array,k)
Returnsthekthsmallestnumberinthisdataset.
INDEX(array,row_num,[column_num])
Returnsavalueorreferenceofthecellattheintersectionofaparticularrowandcolumn,inagivenrange
MIN(number1,[number2])
Returnsthesmallestnumberinasetofvalues.Ignoreslogicalvaluesandtext
ROW(reference)
Returnstherownumberofareference

Returnmultiplevaluesverticallyorhorizontally(vba)

Makesureyouhavecopiedthevbacodebelowintoastandardmodulebeforeenteringthearrayformula.
=vbaVlookup(lookup_value,table_array,col_index_num,[h])
hisoptional,h=returnvalueshorizontally
ArrayformulaincellC9:C11:
=vbaVlookup(B9,B2:C6,2)
Howtoentercustomfunctionarrayformula
1. SelectcellrangeC9:C11
2. Typeabovecustomfunction
3. PressandholdCtrl+Shift
4. PressEnteronce
5. Releaseallkeys
ArrayformulaincellC14:D14:
=vbaVlookup(B14,$B$2:$C$6,2,"h")
Howtoentercustomfunctionarrayformula
1. SelectcellrangeC14:D14
http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

6/73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

2. Typeabovecustomfunction
3. PressandholdCtrl+Shift
4. PressEnteronce
5. Releaseallkeys
Howtocopyarrayformulatothenextrow
1. SelectcellrangeC14:D14
2. Copycellrange
3. SelectcellrangeC15:D15
4. Paste
Vbacode
1. Copyvbacodebelow
2. PressAlt+F11
3. Insertamoduleinprojectexplorer

4. Pasteintocodewindow
5. ReturntoMicrosoftExcel
1 FunctionvbaVlookup(lookup_valueAsRange,tblAsRange,col_index_numAsInteger,OptionallayoutAsString=
"v")
2 DimrAsSingle,Lrow,LcolAsSingle,temp()AsVariant
3 ReDimtemp(0)
4 Forr=1Totbl.Rows.Count
5 Iflookup_value=tbl.Cells(r,1)Then
6 temp(UBound(temp))=tbl.Cells(r,col_index_num)
7 ReDimPreservetemp(UBound(temp)+1)
8 EndIf
9 Nextr
10 Iflayout="h"Then
11 Lcol=Range(Application.Caller.Address).Columns.Count
12 Forr=UBound(temp)ToLcol
13 temp(UBound(temp))=""
14 ReDimPreservetemp(UBound(temp)+1)
15 Nextr
16 ReDimPreservetemp(UBound(temp)1)
17 vbaVlookup=temp
18 Else
19 Lrow=Range(Application.Caller.Address).Rows.Count
20 Forr=UBound(temp)ToLrow
21 temp(UBound(temp))=""
22 ReDimPreservetemp(UBound(temp)+1)
23 Nextr
24 ReDimPreservetemp(UBound(temp)1)
25 vbaVlookup=Application.Transpose(temp)
26 EndIf
27 EndFunction
Download*.xlsmfile
Vlookupvba.xlsm

Recommendedarticles
Checkoutthesepostsandlearnmoreaboutvlookup.
Exceludf:Lookupandreturnmultiplevaluesconcatenatedintoonecell
Matchtwocriteriaandreturnmultiplerowsinexcel
Vlookupwith2ormorelookupcriteriaandreturnmultiplematchesinexcel
Usingarrayformulatolookupmultiplevaluesinalist
Searchformultipletextstringsinmultiplecellsinexcel
VlookupReturnmultipleuniquedistinctvaluesinexcel
Fuzzyvlookup(excelarrayformula)
Lookupusingtwocriteriainexcel
Searchcasesensitiveandreturnmultiplevaluesinexcel
Vlookuparangeinexcel
Vlookupwithmultiplematchesreturnsadifferentvalueinexcel
Vlookupofthreecolumnstopullasinglerecord

RelatedPosts:
Vlookupvisibledatainatableandreturnmultiplevaluesinexcel
VlookupReturnmultipleuniquedistinctvaluesinexcel
Vlookupwith2ormorelookupcriteriaandreturnmultiplematchesinexcel

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

7/73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

Arrayformulatolookupavalueandreturnmultiplevaluesinexcel
Vlookupwithmultiplematchesreturnsadifferentvalue

Sharethispost

EmailThisarticletoaFriend

Comments(417)

417ResponsestoHowtoreturnmultiplevaluesusingvlookupinexcel
1.

Kenbrasays:
November13,2009at8:56pm
OkIabsolutelyMUSTcommentonthis!I'vespentmyentiredaylookingalloverthewebforhelpondoingaVLOOKUPtolookuponevalueandreturn
multiplecorrespondingvaluesandhavenotfoundanythingthathashelpedmeasmuchasyouhave!=DYou'vemademyday.Thankyouforpostingthis!
~kenbra
Reply

2.

Oscarsays:
November14,2009at8:56am
Iamhappyyoufoundthispost,butmyadviceistotakealookatthispostinstead:Usingarrayformulatolookupmultiplevaluesinalist.Ithasanarray
formulanotascomplicatedasthisone.
Thankyouforyourcomment!
Reply
Jimsays:
November13,2012at9:53pm
Iamtryingtouseyourcodeforacalendar.thefiletemplatethatyouhaveshownIhavedownloaded.InplaceofthevaluesinColumnB,Iwouldliketo
putdates.InColumnC,forthe$valuesIwouldreplacewithaddresses
WhenItrymodifyingthetableandexpandingitpastthreecolumnsittellsmeIamoutofthearrayrange.
Canyouassist?
Thanks!
Oscarsays:
November15,2012at12:52pm
Jim,
Whichformulaandtemplate?
Jimsays:
November15,2012at2:22pm
Oscar,
Idownloadedthefilelookupvba3.
IthinkIcanusethistohelpmepopulateacalendar.
IsubstituteddatesforPen,Paper,andEraser.Ithenhadlocationssubstitutedfor$values.
WhereIhaveadateofsay,11/27/12,Ihave10locationsdeliveringthatday.Usingthetemplateasshowninthescreenshotunder"Retunmultiplevalues
horizontallyorvertically(vba)"Icannotexpandpastcolumn"C"toreturnmultiplevalues.

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

8/73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

IthinkitisinthearraycodebutIcannotfigureouthowtoreturnvaluespastcolumnC.
Ifyoucanhelp,greatlyappreciated!
Thanks,
Jim
Oscarsays:
November16,2012at3:18pm
Jim,
Thefunctionprocedurecannotreturnvaluesfrommultiplecolumns.

Thisarrayformulareturnsvaluesfromarange,incellB10:
=IFERROR(INDEX($B$2:$E$7,SMALL(IF(($B$9=$A$2:$A$7),MATCH(ROW($B$2:$E$7),ROW($B$2:$E$7)),""),ROW(A1)),COLUMN(A1)),
"")
IwishIcouldreturnallvaluestosingleacolumn.
Oscarsays:
November29,2012at10:32am
Jim,
NowIknowhowtoreturnallvaluestoasinglecolumn.
Readthispost:
Lookupandreturnmultiplevaluesfromarangeexcludingblanks
3.

Tomsays:
February10,2010at5:34am
Hi.Iusedthisformulaanditworksgreat.HoweverIliketoknowhowtheformulasIusework.Ihavespentalotoftimeontheinternettryingtobreakitdown
butthisonehasmestumped.Iunderstandpart,liketheVLOOKUPandINDEXbutIdon'tknowhowtherestfitsin.Areyouabletobreakthisdownforthe
dummies?Ifyouhavetimeitwouldbegreatlyappreciated.
Reply

4.

ExcelUsersays:
July15,2010at6:13pm
Hi,
Continuingyourexample,isthereawayto"Eraser"and"Paperclip"?andkeepgoigndown?Itreturns#NUMbecauseRowissetto3:3afterthetwoPen
entries.IsthereawaytoresettherowtoROW(1:1)afteranewvlookupsearchstring?
Thanks
Reply

5.

Oscarsays:
July15,2010at10:27pm
ExcelUser,
IamnotsureIunderstandbutIthinkIcoveredyourquestioninthispost:http://www.getdigitalhelp.com/2009/12/29/vlookupwith2ormorelookupcriteria
andreturnmultiplematchesinexcel/
Reply

6.

Lindasays:
September17,2010at2:28pm
Veryhelpfulposts.Itriedusingtheformulaabovebutitdidn'tworkformeandIcan'tfigureouthowtoadjustittoaccomodatemyneeds.HereiswhatIhave:
DataRangeisin$E$1:$F$8
DataRangeCol.AColB
Red2
Green6
Pink3

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

9/73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

Blue9
Red7
Yellow11
Blue4
Red14
Reply
7.

Lindasays:
September17,2010at2:34pm
Thankyouforyourveryhelpfulposts.Itriedusingtheformulaabovebutitdidn'tworkformeandIcan'tfigureouthowtoadjustittoaccomodatemyneeds.
HereiswhatIhave:DataRangeisin$E$1:$F$8,IwouldlikemyresultsinCol.B.LookupvalueincolumnAandreturnthevalueinColFthatmatches.Since
thereareduplicatesinCol.AIwantCol.Btoreturnthenextmatchingvaluefromcol.F.EssentiallythisisaVlookupwithmultiplematchesthatwouldreturna
differentvalue.Thanksforanyhelpyoucanprovide.
DataRangeCol.AColB
Red2Red
Green6Red
Pink3Red
Blue9Yellow
Red7Blue
Yellow11Blue
Blue4
Red14
Reply

8.

Oscarsays:
September19,2010at9:36am
Linda,
readthispost:Vlookupwithmultiplematchesreturnsadifferentvalueinexcel
Reply

9.

Richardsays:
October9,2010at8:57pm
lookingforaformulathatwilltakeapartnumberfromonecolumnandgoandlookforallrelatedvehicleapplicationsperthatpartnumberandreturnthe
vehicleapplicationstoasinglecellrelatedbacktothepartnumber
Reply

10.

Chandrasays:
November9,2010at11:51am
HI,
Thanksforthesame.
ITriedalotbutididntget.iwanttoknowhowtousethesame.
Pleaserequestingyoukindlyhelpmeonthis.
Regards,
Chandra
Reply

11.

Oscarsays:
November9,2010at2:36pm
Chandra,
Didyoudownloadtheexcelexamplefile?
Reply

12.

Annasays:
November11,2010at8:30am
Hithere,IthinkIunderstandthelogicbehindtheseformulabutwhenItrytoamendititdoesn'twork.Idownloadedtheexamplefile.
Thisformulabelowworks
INDEX(tbl,SMALL(IF($E$8=$B$2:$B$6,ROW($B$2:$B$6)MIN(ROW($B$2:$B$6))+1,""),ROW(A1)),2)
OriginallytblisreferencingB2:C6
IchangeitsothatitisreferencingB2:D6
Pen$1.50Red
Eraser$2.00Blue
Paper$1.00Green
Pen$1.70Yellow
Paperclip$3.00Black
andthenupdatetheformulato
INDEX(tbl,SMALL(IF($E$8=$B$2:$B$6,ROW($B$2:$B$6)MIN(ROW($B$2:$B$6))+1,""),ROW(A1)),3)
Iwouldexpect'Red'and'Yellow'tobereturnedinsteadof1.50and1.70butinsteadtheformulawillnotcalculate.

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

10/73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

Anysuggestions?
Reply
13.

Annasays:
November11,2010at9:34am
Ignorelast.RealiseditwasbecauseIhadn'tpressedCTRL+SHIFT+ENTER!
Thanksverymuchforyourpost.Ithasreallyhelpedme!
Reply

14.

Annasays:
November11,2010at9:35am
Ignorelast.RealisedIhadn'thitCTRL+SHIFT+ENTER!
Thanksforyourpost.Itreallyhelpedme.
Reply

15.

Oscarsays:
December20,2010at1:36pm
Richard,
Readthispost:Exceludf:Lookupandreturnmultiplevaluesconcatenatedintoonecell
Reply

16.

Joesays:
January4,2011at7:14pm
Thisisjustawesome.Thankyou.Hadtodoabigtweektodoalessthanifstatement.Butwowthisworkedgreat.Thankyou
Reply

17.

Oscarsays:
January4,2011at8:58pm
Joe,
Thanksforyourcomment!
Reply

18.

Jimsays:
January29,2011at1:54am
ForthelifeofmeIcannotgetthistoworkonmyspreadsheet.Sofrustrating.
Reply

19.

Oscarsays:
January29,2011at10:00am
Jim,
PostyourformulahereandIllseewhatIcando.
Reply

20.

HenryNicholssays:
February15,2011at2:12pm
Thanksverymuchforthishelp.Theinformationisverywellpresentedandexplanied.
IamattemtingtodowhatisdescribedabovehoweverratherthanactuallylistingthemutiplevaluesindifferentcellsIjustwanttoaddthemalltogetherandfind
thetotalinonecell.Doyouknowifthisispossibleoristhereaneasymethod.
Thanks
Henry
Reply

21.

Oscarsays:
February15,2011at9:31pm
HenryNichols,
SUMIF(range,critera,[sum_range])
Addsthecellsspecifiedbyagivenconditionorcriteria.
Reply

22.

cybousays:
February23,2011at4:13pm
HI,
Niceone,justalittlemistake

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

11/73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

Hereisthecorrectone
=INDEX($C$2:$C$6,SMALL(IF($B$8=$B$2:$B$6,ROW($B$2:$B$6)MIN(ROW($B$2:$B$6))+1,""),ROW($A$1:$A$6)))
AttheenditisnotRow(A1),buthastobeavectorforanincreasingincrement.
Reply
23.

Oscarsays:
February23,2011at9:26pm
cybou,
Itisnotamistake,ROW(A1)isarelativecellreference.
Downloadtheexamplefileandcheckitout.
Reply

24.

Elwilsays:
March12,2011at12:23am
Ilikethisbutwouldlikethe#numnottobedisplayedifthevalueisnotfound.SometimesIhave3valuesandatothertimesmaybe5
Reply

25.

Oscarsays:
March12,2011at5:21pm
Elwil,
IFERROR()functionfilterserrors.
Reply

26.

Sabssays:
March13,2011at1:25am
Justwantedtosaythanks,whatanawesomebitofexceling
Reply

27.

Oscarsays:
March14,2011at11:47am
Youaremostwelcome!Thanksforcommenting!
Reply

28.

Chrissays:
March18,2011at5:29pm
Oscar,
ThanksI'musingExcel2003andusedtheVLookuparraysuccessfully.HoweverI'mbeenunsuccessfuladdingtheIFERROR()functiontocleanupthesheet.
CouldyouprovidefurtherexplanationonusingIFERRORforExcel2003.
Reply

29.

Oscarsays:
March21,2011at8:18am
IFERRORisafunctioninexcel2007andlaterversions.
Excel2007
IFERROR(value,value_if_error)
Excel2003andearlierversions:
IF(ISERROR(formula),value_if_error,formula)
Reply

30.

Gi99asays:
March27,2011at8:59pm
Hi,
Firstoffthanksforthehelpursiteisgreat.
MyquestionisinadditiontotheformulamentionedisthereanywayIcangettheformulatoreturnuniquevaluesonly?
Fortheexampleabove,ifPenhad4prices($1.5,$1.7,$1.5and$1.7)isthereawaytogetonlyone1.5and1.7?
Ihopemyquestionisclear...
Thanks!
Reply

31.

Oscarsays:
March27,2011at9:26pm
Gi99a,

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

12/73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

Inmyblogpostexampleabove,arrayformulaincellC8:
=INDEX(tbl,SMALL(IF(($B$8=$B$2:$B$6)*(COUNTIF($C$7:C7,$C$2:$C$6)=0),ROW($B$2:$B$6)MIN(ROW($B$2:$B$6))+1,""),ROW(A1)),2)+
CTRL+SHIFT+ENTER.
Reply
32.

Gi99asays:
March28,2011at1:03am
Hey,
Thanksforurreply.
Howeverthisstillgivesmeallvaluesof"pen"socellC8onwardswouldgivemerepeatedvaluesforpenifthereareanyin"tbl"...
Reply

33.

Oscarsays:
March28,2011at7:37am
Gi99a
Downloadexamplefile
Reply
AYsays:
July24,2012at11:00am
WhenIchangethedataoftheaboveexampleasbelow,itcannotoutputcorrectly.Couldyousolveit?

Data:
Pen$1.50
Pen$1.50
Pen$5.00
Pen$18.00
Paperclip$3.00
Output:
Pen$1.50
$18.00
#NUM!

Oscarsays:
July24,2012at2:18pm
AY,
Youareright!Iuploadedanewfile.Thanksforcommenting!
Ericsays:
September24,2015at8:06pm
I'mnotevensureifthiswebsiteisstillactiveorifyouwouldevenreceivethismessagebutIwillaskanyways!
IamneedingtoproducethesameresultsthatGi99aneededbutisthereawaytoproducetheminasinglecellinsteadofdownthecolumn?
Thanksinadvance!

34.

ErikBsays:
May8,2011at11:02am
Thankyouforthis,itwasreallyhelpful.
Reply

35.

Oscarsays:
May9,2011at7:34am
ErikB,
Thanksforyourcomment,Iappreciateit!
Reply

36.

AhmedAlisays:
May12,2011at4:21pm
Howtoreturnmultiplevaluesusingvlookupinexcelandremovingduplicates?
mysheetissetupasfollows
ABCDE
1SectionCategoryitemflavorsize
2foodCoffeeEspressononeSingle

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

13/73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

3foodCoffeeEspressononedouble
4foodCoffeeAmericanononeSingle
5foodCoffeeAmericanononedouble
ihavetriedtheformulatoreturnmultiplevaluesusingtheindexexampleandworkedfinewithnoneduplicateitembuthowcanilistthemwithoutthe
duplicate?
appreciateyourhelp
Reply
37.

Oscarsays:
May13,2011at12:21pm
AhmedAli,
Readthispost:VlookupReturnmultipleuniquedistinctvaluesinexcel
Reply

38.

Sufrisays:
May30,2011at9:15am
Heythere,I'djustliketodropabombofthanks,thishelpedreducemyfearofARRAYformulasman.ThispostwasaBIGhelp!
Reply

39.

Marlonsays:
May30,2011at2:19pm
DearOscar,
Firstofallthankyouforsharingyourexpertiseinexcel.Iamonewhobenefitedfromallyourcommentsandformulahere.Ihavesomedifficultiesthoughfrom
thebelowformula.BasicallyI'musingxcelsius2008,andtheproblemisROWfunctionisnotrecognizebyxcelsius,canpleasehelpmewiththesameconcept
ofthebelowformulawithoutusingtherowfunction?I'musingthebelowformulabecauseiwantthemultipleresultsusingvlookup.pleasehelp.Thanks
Marlon
=VLOOKUP($Y$1,INDEX($AA$38:$AO$51,SMALL(IF($Y$1=INDEX($AA$38:$AO$51,,1),ROW($AA$38:$AO$51)
MIN(ROW($AA$38:$AO$51))+1,""),ROW(7:7)),,1),$AB$36,FALSE)
Reply

40.

Oscarsays:
May31,2011at2:22pm
Marlon,
Sorry,Ihavenoknowledgeaboutxcelsius2008.
Reply

41.

Munirsays:
June21,2011at2:58pm
Duuuude,youhavenoideahowhelpfulthiswas
Reply

42.

Oscarsays:
June22,2011at8:58am
Munir,
thanks!
Reply

43.

Ramyasays:
June30,2011at7:14pm
HiOscar,
Iamtryingtoimplementthisformualinmyspreadsheetbutitisjustreturningthefirstrowandtherestoftherowsare#num.
IhavedatainA2:B602.Ienteredthenametolookupincellc2.IwantittoreturnallthedatacorrespondingtothatnameincolumnD.Couldyoupleasesuggest
someworkaroundorwhytheformulaisnotworking
=INDEX($B$2:$B$602,SMALL(IF(($C$2=$A$2:$A$602),ROW($A$2:$A$602)MIN(ROW($A$2:$A$602))+1,""),ROW(A2)))
Thanks
Reply

44.

Oscarsays:
June30,2011at7:35pm
Ramya,
Aminorchangetoyourformula.
=INDEX($B$2:$B$602,SMALL(IF(($C$2=$A$2:$A$602),ROW($A$2:$A$602)MIN(ROW($A$2:$A$602))+1,""),ROW(A1)))
Howtocreateanarrayformula

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

14/73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

Copy(Ctrl+c)andpaste(Ctrl+v)arrayformulaintoformulabar.

PressandholdCtrl+Shift.
PressEnteronce.
Releaseallkeys.
HowtocopyformulaincellD2
SelectcellD2
Copy(Ctrl+c)
SelectcellrangeD2:D10
Paste(Ctrl+v)
(ExtendformulafurtherdownifrangeD2:D10istoosmall)
Reply
45.

Ramyasays:
June30,2011at7:49pm
Thisisreallygreat!Thankyousomuch!
Ihadanotherquestionforyouthough.Woulditbepossibletogettheoutputinarow??
ForinstanceIwanttheresultstobedisplayedonRowAratherthancolumnD?
Thanksagain
Reply

46.

Oscarsays:
June30,2011at9:44pm
Ramya,
ArrayformulaincellA1:
=INDEX($B$2:$B$602,SMALL(IF(($C$2=$A$2:$A$602),ROW($A$2:$A$602)MIN(ROW($A$2:$A$602))+1,""),COLUMN(A1)))+CTRL+SHIFT+
ENTER
CopycellA1andpastetoA1:A10
Reply

47.

MattLyonssays:
July6,2011at1:07pm
Reallybrill.....notverygoodatexcel,butfindthisfunctionamazing.
Onequestion,insteadofsearchingforwords(suchaspen,oreraser),howcanigetittosearchforanumbersuchas124356.
Helpmuchappreciated.
Matt
Reply

48.

MattLyonssays:
July6,2011at2:17pm
Sorrytobotheryouagain...justwonderinghowdoiusetheIFERRORfunctionwiththisformula?
Ineedtoaddalltheresultsoftheaboveformula,butcannotdosowhenitreturnsa#NUMvalue!
Thanks,
Matt
Reply

49.

Oscarsays:
July6,2011at2:20pm
MattLyons,
Theformulaworksfornumbersalso.
Example,

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

15/73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

ArrayformulaincellC10:
=INDEX(tbl,SMALL(IF(($B$10=$C$2:$C$6),ROW($B$2:$B$6)MIN(ROW($B$2:$B$6))+1,""),ROW(A1)),1)
Howtocreateanarrayformula
Copy(Ctrl+c)andpaste(Ctrl+v)arrayformulaintoformulabar.
PressandholdCtrl+Shift.
PressEnteronce.
Releaseallkeys.
Reply
50.

MattLyonssays:
July6,2011at2:24pm
IHavefiguredouttheiferrorone,sorry.
Matt
Reply

51.

MattLyonssays:
July6,2011at2:33pm
thanksOscar,
Butistillcannotgetittoworkformynumbers.example,tablesomethinglike12347$1.70,andlookingtoreturnthevalue$1.70,whenitfinds12347,butjust
returnsa#NUM:(
Matt
Reply

52.

MattLyonssays:
July6,2011at2:40pm
SorryOscar...ihaveit:)
thanksamillion.
matt
Reply

53.

MattLyonssays:
July6,2011at3:32pm
Oscar,
Verysorrytobotheryouagain,butonusingthisformula,alongwiththeiferrorfunction,ifindthatifthenumberiamlookingforappearsonlyonceinthelist
itreturnsa"0"value.
Thisistheformulaiamusing:
{=IFERROR(INDEX($B$1:$D$84,SMALL(IF(($B99=$B$1:$B$84),ROW($B$1:$B$84)MIN(ROW($B$1:$B$84))+1,""),COLUMN(B11)),2),"0"}
Haveyouanyideawhyitisdoingso?
regards,
Matt
Reply

54.

Oscarsays:
July6,2011at3:45pm
MattLyons,
Theboldedcellreferenceisarelativecellreference.ItmusthaveacellreferencetocolumnA.Whentheformulaiscopied,therelativecellreferencechanges.
Yourformulahastobecopiedhorisontally.
ArrayFormula:
=IFERROR(INDEX($B$1:$D$84,SMALL(IF(($B99=$B$1:$B$84),ROW($B$1:$B$84)MIN(ROW($B$1:$B$84))+1,""),COLUMN(A1)),2),"0")

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

16/73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

Howtocreateanarrayformula
Copy(Ctrl+c)andpaste(Ctrl+v)arrayformulaintoformulabar.
PressandholdCtrl+Shift.
PressEnteronce.
Releaseallkeys.
Reply
55.

MattLyonssays:
July6,2011at5:20pm
ThanksCarlos
So,wouldiberightinsayingwhenicopymyformulaHorizontally,itneedstogofromCOLUMN(A1)toCOLUMN(B1))toCOLUMN(C1))etc?isthis
correct?
Matt
Reply

56.

MattLyonssays:
July6,2011at5:20pm
Sorry,ImeanOscar!!!itsbeenalongdayatEXCEL!!:)
Reply

57.

Oscarsays:
July7,2011at8:22am
MattLyons,
Yes,thatiscorrect.
Howtocopyarrayformula
Selectcell
Copy(Ctrl+c)
Selectcellorcellstotheright
Paste(Ctrl+v)
Arelativecellreferencechangesautomaticallywhenthecelliscopied.
Reply

58.

Danielsays:
July7,2011at4:52pm
HiOscar,
Didyouwritetheseguides?Justwantedtosaytheyareprettyawesome.Itisgoodthatyouarestillhangingaroundafter2yearssinceitwaspublishedtohelp
others.
Thanks!
Dan
Reply

59.

Oscarsays:
July8,2011at7:08am
Daniel,
Yes,Iwrotetheseguides.Thankyouandthanksforcommenting!!
Reply

60.

Jessicasays:
July9,2011at10:37pm
Hello,
So,Itriedusingthisformula,butIthinkIranintoaproblem.Ihaveonetablewithtextstringsinit.FromanothertableIwanttofindtherowsthatmatchwith
thistextstringfromthefirsttableanddisplaythat,butoccasionallytherearemultiplerowsinthesecondtablethathavethistextstring,andIwanttoseeallthe
outcomespertextstring.Itseemstoworksimilartowhatyoudohere,butthenmysearchiswithtextstrings,andthereforetheSMALLfunctiondoesnotseem
towork.Ilookedattheotherpageonworkingwithtextstrings,buttheapplicationIamworkingonisnottheonedisplayedthere,buttheonedisplayedhere.
Canyouhelpmetomakethiswork?
Jessica
Reply

61.

MattLyonssays:
July11,2011at4:09pm
greatjob.igotmineworkingperfectlyOscarthanksamillion.
Iwaswondering,doyouknowhowicanmove2excelsheetstoadifferentfolder,withoutupsettingtheformulaswhichareusedlinkingbothsheets?(ie:each
sheetusestheothersheettoextractdata,butwhenyoumovethem,neitherwork?)

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

17/73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

Matt
Reply
62.

Oscarsays:
July11,2011at5:37pm
Jessica,
Thearrayformulaonthispageworkswithbothnumbersandtext.IfIunderstoodyourquestion,thearrayformulashoulddothejob.
Trytoexplainingreaterdetailorsendyourworkbook.
Reply

63.

Oscarsays:
July11,2011at5:47pm
MattLyons,
Ifoundthis:MasschangingExcellinks??
Ihavenottriedit.
Reply

64.

T.Csays:
July13,2011at2:33pm
Iamtryingtolookupmultiplerowsatonetime.WhatformuladoIuse?
Reply

65.

Oscarsays:
July14,2011at12:40pm
T.C,
Ihavechangedthispost,Ihopeyouwillfindtheanswermoreeasilynow.Ifnot,explainyourproblemingreaterdetailandIwilltrytofindorcreatethe
formula.
Reply

66.

annasays:
July24,2011at7:55am
Hioscar,
Pleasehelpme.Whatformulaofvlookupiusedtolookupmorevalueinanothersheetifeverienteridno.
Ex.Sheet1
IdnoNameAge
123kia30
234ana45
123liza65
879meg34
435greg13
IlikethisoutputinSheet2
Id:______(ifeverichoose123)
output:IdnoNameAge
123kia30
123liza65
thankyou
Reply

67.

Oscarsays:
July24,2011at2:57pm
anna,
readarneliasquestion
Reply

68.

annasays:
July25,2011at3:01pm
ThankyousomuchOscar
Reply

69.

annasays:
July25,2011at3:57pm
Hiocscar,
Itrytheformulayougivetoarnelia,butItdoesnotwork.Pleasehelpme.Please..Sendmeaexcelformatplease

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

18/73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

thankyou
Reply
70.

Oscarsays:
July26,2011at8:37am
anna,
Downloadexcelfile
Vlookupreturnmultiplerecords.xlsx
(Excel2007Workbook*.xlsx)
Reply

71.

annasays:
July26,2011at1:37pm
HiOscar,
Thankyousomuch....Thisisreallygreat.
Reply

72.

BPVsays:
July27,2011at9:51pm
Triedusingyourformulaonmyprojectbutamhavingsomedifficulties.Firstoffhadtochangethe""tozerotogetittodisplayavalue,butnowwhenit
searchesthepricelistitdisplaysthefirstentryeventhoughitdoesn'tmatch.Italsowon'tdisplayontheothercellswhenIcopyandpaste.Ifyoucanhelpin
anywayIwouldgreatlyappreciateit.
=INDEX('PriceList'!$A$3:$C$57000,SMALL(IF('PriceSheet'!$B$4='PriceList'!$A$3:$A$57000,ROW('PriceList'!$A$3:$A$57000)MIN(ROW('Price
List'!$A$3:$A$57000))+1,0),ROW(A1)),COLUMN(A1))
Reply

73.

Oscarsays:
July28,2011at8:55am
BPV,
1,Youcantchange""to0,thentheformulareturnsthefirstrecordinyourpricelist.
2,Iamguessinghere..Maybethevaluein'PriceSheet'!$B$4containsanadditionalspacesomewhere?Comparethevalues.
Reply

74.

annasays:
July28,2011at3:18pm
Hioscar,
Thankyousomuchforhelp.Butinoticethesampleyousendme,thedatabaseandoutputinoneonesheetonly,itrytoseparatethedatabaseandoutputusing
thisformula:
=INDEX($A$2:$C$7,SMALL(IF($B$9=$A$2:$A$7,ROW($A$2:$A$7)MIN(ROW($A$2:$A$7))+1,""),ROW(A1)),COLUMN(A1)
ButItdoesnotworkagain.Pleasehelpme.Kindlysendmeagaintheexcelsamplethattheoutput&databaseinseparatesheetpleaseplease....Thankyou
Reply

75.

Oscarsays:
July29,2011at10:02am
anna,
Downloadexcelfile
Vlookupreturnmultiplerecords.xlsx
(Excel2007Workbook*.xlsx)
Reply

76.

BPVsays:
July29,2011at12:36pm
1,Youcantchange""to0,thentheformulareturnsthefirstrecordinyourpricelist.
2,Iamguessinghere..Maybethevaluein'PriceSheet'!$B$4containsanadditionalspacesomewhere?Comparethevalues
IfIleavethe""intheformulaIonlyreturnsa#VALUE!.Idoublecheckedandthereisnoadditionalspacesinthecell.Stillnotquitesurewhattheproblemis.
Reply

77.

mcholstsays:
July29,2011at1:14pm
Hi
Thisguidehasgonedirectlytothetopofmyfavorites.I'vebeenlooginforthisforsolong!

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

19/73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

ButIstillhaveaquestion.
Iusethisformulatoputinalloverdueinvoicesformycustomersinapaymentreminderletter.
Sosometimesitis1invoiceandsometimesitis20invoicesormore.
Belowtherows,whereIamusingyourformula,Ineedtoputinsomeplaintext,butrightnowIhastebeindtheverybottomofthepage,anditdoesn'tlook
goodwhenonlyonelineisreturnedfromtheformula.Thoughitdoeslookgoodwhenitisseveralrows.
Haveyougotanytipsonhowtomaketheareawithformulaflexibleinhowmanyrowsit"occupies".
Reply
78.

annasays:
July29,2011at1:50pm
HiOscar....
THANKYOUSOMUCH.....
Reply

79.

Ivansays:
July29,2011at4:41pm
Hi,
isitpossibletohavetheresultsinthesamecellusingavariationofyourformula?..
Imeanlike:
John|x22|John,Mark
John|x23|John
John|x24|John,George
Mark|x22|John,Mark
George|x24|John,George
Theresultsseparatedbythecommainasinglecell?...
Andthanksalotforyourusefullcode...
Reply

80.

Oscarsays:
July30,2011at8:03am
mcholst,
Itishardformetogiveyouadvicewithouthavingseenyoursheet.
anna,
youarewelcome!
Ivan,
Ibelievethispostdescribeswhatyouareaskingfor:Exceludf:Lookupandreturnmultiplevaluesconcatenatedintoonecell
VBAcode:

Reply
81.

Ivansays:
July30,2011at11:43am
Hello,
thankyouforyourfastreply...
I'mnotverygoodinexcelandudf,anywayifollowedyouradivice,tookyourcodeandrecreateamodule.
Thestrangethingisthatitgivesmeablankcell(Itookoffthenameofthesheetcauseiwanttheresultsinthesameonewherethedataare)..
Didimisssomething?
Reply

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

20/73

11/14/2015

82.

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

Oscarsays:
July31,2011at10:35am
Ivan,

Downloadexcelfile
Lookupandreturnmultiplevaluesconcatenatedintoonecell.xls
(Excel972003Workbook*.xls)
Reply
83.

Ivansays:
August3,2011at10:39am
thankyoualot..
Itworksperfectly
Reply

84.

Seansays:
August19,2011at12:58pm
Ok,inexcelIwanttolookupthevalueofcolumnBwherethevalueincolumnFequals"1"exactly.IthenwanttoaddupthevalueinBforeachmatchuntilthe
tablecolumnF8:F202hasbeencheckedformatches:
Forexample
ColBColF
101
11
00
110
21
Iwouldexpecttheformulatoreturn13,dueto"10x1","1x1"and"2x1"matching=10+1+2=13
Tome,theformulashouldcontainaLOOKUPandSUMIFstatement.
I'vetriedseveralformulaes,butwithoutjoy.Yourhelpwouldbeappreciated.
Reply

85.

Oscarsays:
August22,2011at10:14am
Sean,

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

21/73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

Reply
86.

ANAsays:
August27,2011at3:23pm
Hioscar,
Itpossiblecanusevlookuponlyandwillnotusetheindextogettheoutputonthis:
Sheet1
idnamestatus
123ANNAactive
124jhunseparated
125lizaactive
129royseparated
789maryseparated
123annaseparated
Sheet2:
Enterid:123
123ANNAactive
123annaseparated
Reply

87.

ANAsays:
August28,2011at4:08pm
HiOscar,
Doyouknowwhatswronginmyformula?
=INDEX(deletion,SMALL(IF($A$7=DELETION!$B$3:$B$500,ROW(DELETION!$B$3:$B$500)
MIN(ROW(DELETION!$B$3:$B$500))+1,""),ROW(B11)),COLUMN(B11)
Thankyou.....
Reply

88.

Oscarsays:
August28,2011at5:14pm
ANA,
Question1
Sorry,Idontknowhow.
Question2
=INDEX(deletion,SMALL(IF($A$7=DELETION!$B$3:$B$500,ROW(DELETION!$B$3:$B$500)
MIN(ROW(DELETION!$B$3:$B$500))+1,""),ROW(A1),COLUMN(A1))
ThecellreferencesincolumnandrowfunctionsalwaysstartwithA1.
Reply

89.

ANAsays:
August29,2011at3:20am
hiOscar
Thankyousomuchforyourhelp.Onequestionagainifevermyoutputlikethisandiwouldliketohide#num.Whatformulaicanused?
Enterid:123
123ANNAactive
123annaseparated
#num#num#num
Here'smyuseformula.
=INDEX(deletion,SMALL(IF($A$7=DELETION!$B$1:$B$499,ROW(DELETION!$B$1:$B$499)
MIN(ROW(DELETION!$B$1:$B$499))+1,""),ROW(B1)),COLUMN(B1))
Thankyouinadvance
Reply

90.

Oscarsays:

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

22/73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

August29,2011at8:14am
ANA,
Excel2007:
=IFERROR(INDEX(deletion,SMALL(IF($A$7=DELETION!$B$1:$B$499,ROW(DELETION!$B$1:$B$499)
MIN(ROW(DELETION!$B$1:$B$499))+1,""),ROW(B1)),COLUMN(B1)),"")
Excel2003:

=IF(ISERROR(INDEX(deletion,SMALL(IF($A$7=DELETION!$B$1:$B$499,ROW(DELETION!$B$1:$B$499)
MIN(ROW(DELETION!$B$1:$B$499))+1,""),ROW(B1)),COLUMN(B1))),"",INDEX(deletion,SMALL(IF($A$7=DELETION!$B$1:$B$499,ROW(DELETION!$B$1:
MIN(ROW(DELETION!$B$1:$B$499))+1,""),ROW(B1)),COLUMN(B1)))
Reply
91.

ANAsays:
August29,2011at9:15am
HiOscar,
THANKYOUSOMUCH.......
Reply

92.

Seansays:
August30,2011at12:34pm
Oscar,
Onlyjustgotanemailsayingthereisareply.
Triedtheformulaeoutanditworkedatreat.
Isthereaparticularbookonexcelthatwouldbeanidealguideonsomeofthequestionsyouareasked,orisitacaseoftrialanderror?
Verymuchappreciated.
San
Reply

93.

Seansays:
August30,2011at12:45pm
Oscar,
Nowforanotherpuzzle.IhaveadatasheetwhichIproduceseveralpivottablesonworksheetswithintheexceldocument.Onecolumnisahyperlinktoan
internalwebsite:
http://companyweb/Lists/Sales%20Product%20Information/DispForm.aspx?ID=1
Thisiskeptonaworksheetcalled"PivotData".Toupdatethisdata,Icutandpastethevaluesoverthetopofthecurrentdata,sooneffect,thenumberofrows
willvary.
Isthereawayofmakingthiscellautomaticallyrecognisesthehyperlinkandupdatesaccordingly?
Whenyourefreshthedata,sothateachofthepivottablesareupdatedwiththenewdata,isitthenpossibletomakesurethatthedataofthehyperlinkisshown
asavalidhyperlinkwhichcanbeclickedonandredirected.,i.e.Theworksheet"CustomerSales"isapivottablebasedonthe"PivotData"worksheetandthe
columntitleforthehyperlinkdatais"Notes".
IknowI'maskingabitmuch,butI'msurethereisasolutionandatthemomentI'mstrugglingtofindone.
Regards
San
Reply

94.

Coenraadsays:
August31,2011at12:01am
HiOscar,
Firsttimeheresopleasebearwithme.I'vesearchedjustabouteverywhereforaformulathatcanhelpme.I'musingthe
=INDEX($A$2:$C$7,SMALL(IF($B$9=$A$2:$A$7,ROW($A$2:$A$7)MIN(ROW($A$2:$A$7))+1,""),ROW(A1)),COLUMN(A1))
formulatoreturnmultiplerecords.Ihavetriedtomodifyitbuttonoavail.Whereyourformulamatchesthecellin$B$9exactly,Iwouldwanttosimplyputpart
ofthevaluein$B$9andlettheformulareturnallthatmatchite.g.youuse123anditshowsyouallthe123andadjacentvaluesbutIwouldwanttoentere.g.
only12andwouldwantittoreturnallvaluesthatcontain12.
Theaboveisbasicallytobeusedtolookforproductcodes.Ihaveanarrayof4columnswithproductcodesin1stcolumnandneede.g.allproductsstarting
with"CP"andalsodisplayingalladjacentvaluesthatcomewiththeparticularproductcode.NotsureifI'mbeingclearenough.
example:
productcode...column2...column3...column4
MBDKJ3475.....1122......N.........productdescription
CHUYI2938.....125.......N.........productdescription
CPDLK4378.....4258......C.........productdescription
CCDDD3429.....26553.....C.........productdescription
CPLKL4344.....33........C.........productdescription

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

23/73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

Iwouldwantalltheproductlinesstartingwith"CP":
CPDLK4378.....4258......C.........productdescription
CPLKL4344.....33........C.........productdescription
Greatfullforanyhelpthatyoumightbeabletoprovide.
Manythanksinadvance
Regards
Coenraad
Reply
95.

Oscarsays:
August31,2011at8:00am
Sean,
Isthereaparticularbookonexcelthatwouldbeanidealguideonsomeofthequestionsyouareasked,orisitacaseoftrialanderror?
AsfarasIknow,thereisnotmuchwrittenaboutarrayformulas.
IgotinterestedinarrayformulaswhenIdiscoveredDennisWallentinwebsite:http://xldennis.se/.Itisinswedish.
Iaminspiredbycommentsonmywebsite,otherforumsandexcelsites.
Thereisalsoalotoftrialanderror.
Reply

96.

Oscarsays:
August31,2011at8:30am
Sean,
Nowforanotherpuzzle.IhaveadatasheetwhichIproduceseveralpivottablesonworksheetswithintheexceldocument.Onecolumnisahyperlinktoan
internalwebsite:
http://companyweb/Lists/Sales%20Product%20Information/DispForm.aspx?ID=1
Thisiskeptonaworksheetcalled"PivotData".Toupdatethisdata,Icutandpastethevaluesoverthetopofthecurrentdata,sooneffect,thenumberofrows
willvary.
Isthereawayofmakingthiscellautomaticallyrecognisesthehyperlinkandupdatesaccordingly?
Yes,importdatafromthewebusingwebqueries.
Herearesomeresources:
http://office.microsoft.com/enus/excelhelp/getandanalyzedatafromthewebinexcelHA001054848.aspx
http://www.openjason.com/2008/01/25/3stepstoscrapethewebwithmicrosoftexcel/
http://www.vertex42.com/News/excelwebquery.html
Howtorecognizeurlinsheet1cellA1
FunctionIdentifyaddress()AsBoolean
IfSheets("Sheet1").Range("A1").Value="http://companyweb/Lists/Sales%20Product%20Information/DispForm.aspx?ID=1"Then
Identifyaddress=True
Else
Identifyaddress=False
EndIf
EndFunction

Whenyourefreshthedata,sothateachofthepivottablesareupdatedwiththenewdata,
Sure,usetables.Theyaredynamic.Youneedvbatorefreshpivottablesautomatically:Autorefreshapivottableinexcel
isitthenpossibletomakesurethatthedataofthehyperlinkisshownasavalidhyperlinkwhichcanbeclickedonandredirected.,
Youneedamacrotoaccomplishthis.
i.e.Theworksheet"CustomerSales"isapivottablebasedonthe"PivotData"worksheetandthecolumntitleforthehyperlinkdatais"Notes".
Reply
97.

Oscarsays:
August31,2011at8:52am
Coenraad,
Ibelieveyouarelookingforthispost:
Lookupwithmultiplecriteriaanddisplaymultiplesearchresultsusingexcelformula

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

24/73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

ArrayformulaincellA10
=INDEX($A$2:$D$6,SMALL(IF(ISNUMBER(SEARCH($A$8,$A$2:$A$6)),ROW($A$2:$A$6)MIN(ROW($A$2:$A$6))+1,""),
ROW(A1)),COLUMN(A1))
Cell$A$8containsthesearchvalue.
Howtocreateanarrayformula
Copy(Ctrl+c)andpaste(Ctrl+v)arrayformulaintoformulabar.
PressandholdCtrl+Shift.
PressEnteronce.
Releaseallkeys.
Howtocopyarrayformula
SelectcellA10
Copy(Ctrl+c)
SelectcellrangeA10:D12
Paste(Ctrl+v)
Reply
98.

Seansays:
August31,2011at8:55am
Oscar,
I'lllookinto.Thanksagain.
WhatiftheIDchanges,andmaynotbethesameineachcell?
http://companyweb/Lists/Sales%20Product%20Information/DispForm.aspx?ID=1
or
http://companyweb/Lists/Sales%20Product%20Information/DispForm.aspx?ID=2
or
http://companyweb/Lists/Sales%20Product%20Information/DispForm.aspx?ID=....
Reply

99.

Coenraadsays:
August31,2011at11:57am
Oscar,
Thanksamilforthat.Worksperfectly.Yousavedmeamajorheadache.
Thanksagainandhaveagreatday.
Reply

100.

Seansays:
August31,2011at12:45pm
Oscar,
IthinkIhaveprobablyconfusedtheissue.Thedataisonaworksheetwithinthedocumentcontainingthepivottablesonotherworksheets.
Noneofthedatacomesfromtheweb,justthatonecolumnofthedatamayincludethehyperlinkprovided("?ID=x"wherexisavaraible).
Basically,whenIdoarefreshofthedatainthe"pivotdata"worksheet,Ineedittorecognisethecellisahyperlink.Inaddition,whenIupdatetheindivitalpivot
tables,itlooksatthedatainthe"Notes"fieldandrecogniseitasahyperlink.
WheredoIputthe"FunctionIdentifyaddress()"informationyougave.
Regards
Sean
Reply

101.

KJsays:

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

25/73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

August31,2011at10:58pm
HiOscar,
First,thisformulaisgenius.AndnowthatIbutteredyouup,here'smyquestion.Iwantedtousethisbuttohavethedataonanotherworksheet.SoI:
=INDEX(Masterdata,SMALL(IF($B$2=colrow,ROW(colrow)MIN(ROW(colrow))+1,""),ROW(Master!B2)),COLUMN(Master!B2))
ThisworksuntilIdragtheformuladowntoincludeadditionalresultsandMaster!B2becomesMaster!B3.Atthatpoint,IgetaNumbererror.
IguessIwouldliketoknowwhythenumbererroroccurs,butmoreimportantly,ifthereisanerrorfreewaytousethisformulatoreturndataonanother
worksheet.
Thanksamil.
KJ
Reply
102.

Oscarsays:
September2,2011at12:14pm
Sean,
Iamconfused,itisdifficultformetounderstandwithouttheworkbook.
KJ,
Thenumbererroroccursbecausetherearenomatchingcellsleftinformula.
YourformulamuststartwithcellreferenceA1.Boldedinformulabelow.
Example,
=INDEX(Masterdata,SMALL(IF($B$2=colrow,ROW(colrow)MIN(ROW(colrow))+1,""),ROW(Master!A1)),COLUMN(Master!A1))
Excel2007,remove#numerrors:
=IFERROR(INDEX(Masterdata,SMALL(IF($B$2=colrow,ROW(colrow)MIN(ROW(colrow))+1,""),ROW(Master!A1)),COLUMN(Master!A1)),"")
Reply

103.

KJsays:
September3,2011at1:16am
Oscar,
Thankssomuch.Workedlikeacharm.
Reply

104.

WahibaNielsensays:
September7,2011at11:52am
Hi,Thanksforvaluablehomepage,
Iwantformulatofind2valuseforthesameID,ifIhavelonglistwithover1000ID'sandwanttofindAnnaandthestatusifsheisactiveornot.HowIshould
writemyformula.
Thanksandhaveagreatday.
Reply

105.

Seansays:
September16,2011at12:28pm
Oscar,
DidyoureceivetheworkbookIemailedyou?Ifso,anyjoywithfindingasolutiontomyproblem?
Reply

106.

Oscarsays:
September16,2011at1:10pm
Sean,
Basically,whenIdoarefreshofthedatainthe"pivotdata"worksheet,Ineedittorecognisethecellisahyperlink.Inaddition,whenIupdatetheindivitalpivot
tables,itlooksatthedatainthe"Notes"fieldandrecogniseitasahyperlink.
Iamstillconfused.Youwantthedataincolumn"Notes"beingrecognizedasahyperlinkinapivottable?Soyoucanclickanhyperlinkapivottableandit
automaticallyopensawebpageinawebbrowser?
Reply

107.

Seansays:
September16,2011at1:14pm
Correctonbothcounts.Doesthissoundfeasible?
Yourhelpisverymuchappreciated.
Regards

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

26/73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

Sean
Reply
108.

Oscarsays:
September18,2011at6:56am
Sean,
USINGHYPERLINKS
Unlikeexternaldataranges,activehyperlinksarenotsupportedinPivotTablecells.Thehyperlinkistreatedastext,butyoucannotfollowthehyperlinktoa
Webpageordocument,inExcelorExcelServices.
Source:UseaPivotTablereporttomakeexternaltabledataavailableinExcelServices
Reply

109.

Seansays:
September19,2011at8:56am
Ohwell:(thanksfortrying.
KindRegards
Sean
Reply

110.

nenosays:
September21,2011at11:54am
thanks,
itreallyworkforme...
now,icanmakemyaccountingbookmorelight
Reply

111.

Robynsays:
September22,2011at4:13pm
HiIamusingyourformulawherethedataisinanothertabbutitdoesnotseemtoworkforme.
=INDEX(Activities,SMALL(IF($B$3=NameID,ROW(NameID)MIN(ROW(NameID))+1,""),ROW(Data!C2)),COLUMN(Data!C2))
Activites=Data!C2:G27
NameID=Data!C2:C27
IamtryingtoreturnthesamewayasyourexampleINDEX($A$2:$C$7,SMALL(IF($B$9=$A$2:$A$7,ROW($A$2:$A$7)MIN(ROW($A$2:$A$7))+1,""),
ROW(A1)),COLUMN(A1))
CanyouletmeknowwhatIamdoignwrong?
Thanks
Reply

112.

Andrewsays:
September22,2011at4:20pm
Thisisgreat.Thanksalotforpostingthis.You'vesavedmeabunchoftime.
Isitpossibletousethistograbdatafrommultiplesheetsatonce?IseehowKJhaspointeditatasingledifferentsheet,above,butmydataisspreadover31
sheetsallusingthesametemplate.
Thanksagain.
Reply

113.

Robynsays:
September22,2011at9:25pm
IdidnotreadtheKJpostabove.IchangedtoA1anditworkedjustfine.Thanksagainforshowingtheformula
Reply

114.

Oscarsays:
September29,2011at8:48pm
Sean,
Seethispost:Followhyperlinksinapivottable
Reply

115.

Oscarsays:
October1,2011at2:06pm
Andrew,
No,Ihavenoideahowtoaccomplishthatwitharrayformulas.

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

27/73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

Reply
116.

JennyLsays:
October5,2011at1:20pm
HiOscar.
Yourpostsarereallyhelpfulandinformativeandmuchappreciated.Ihave,however,gottotallystuckwithmyexample.
Ihavethefollowinglookupvalues:
pen
eraser
paper
paperclip
andthefollowingitemlist:
Allan'spen
eraser
Frances'eraser
Jenny'spen
paper
paperclip
pen
redpen
WhatIdliketodoissearchforeachlookupvalueintheitemlistandreturnalltheitemsthatcontainthattextstring.Forexample,'pen'wouldreturn(in
adjacentcells):
AllanspenJennyspenpenredpen
Ihavespentseveraldaystryingtotweakyourexamples,tonoavail.Canyouhelporpointmeintherightdirection,please?Manythanks.
Reply

117.

REsays:
October14,2011at4:33pm
Oscar,
Iliftedyourexampleverbatiumandupdateditformy83records.Theifstatementhangson#value!.Imoveditfrombelowthedata(row)andplaceditinthe
firstavailablecolumn.Theifstatementworks,butonlyontherespectiverow.Thuswillnotpickupthemutliple's?
Where'dIgowrong?
Thankyou
Reply

118.

AnasHashmisays:
October16,2011at5:31am
Youhavegotonehellofagreatmethodofdoingthis.Ihadafoundasimilarsolutionsometimeago,butthatusedaVBAcustomformulatoreturnarrays.This
isbetterbecausethereisnoVBA.Thankyou.
However,onebigproblem:Arraystakeaverylongtimeincalculating.Idonotknowwhy,butIhadtofindasolution.Turnsoutthatmakingeachcellanarray
isthewrongwayofdoingthings.
Iwillgiveyoumyexample:
Ihavealogofmaterialreceipts
Ihaveseveralsheetsinexcelthatretrievesalistofreceiptscorrespondingtoacertaintype
Theloghasdetailsofeachreceipt,e.g.date,reciept#,store,deliverytype,qty,cost.
IfIhavesay60typesofmaterialsandatleast30rowsoneachsheetwith6columns,Iwillhave10800arrays.Thatisabout30secondsofcalculation.Fartoo
manyforpracticality.SoImadeonearraypersheetandImodifiedtheformulasothatthelasttwofunctions(rowandcol)havearraysasarguments.Much
simplerthen.Butrequiresalittlemoreexplanation.
Thanks.
Reply

119.

AnasHashmisays:
October16,2011at5:34am
IfIwasnotclearenough:Eachsheetfetchesreceiptsofacertaintypefromthelog.
Reply

120.

REsays:
October16,2011at11:43pm
Help,
Completelyperplexed.Ican'taltertheformulaatallwithoutgettingthe#value!error.What'swrong?Icaninsertintoyourexample"tbl"butnoalterationoredit
oropenortheformulawithoutthe#value!.Anysuggestionswouldbenice?
Reply

121.

Oscarsays:
October17,2011at9:40am
RE,
Oscar,
Iliftedyourexampleverbatiumandupdateditformy83records.Theifstatementhangson#value!.Imoveditfrombelowthedata(row)andplaceditinthe

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

28/73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

firstavailablecolumn.Theifstatementworks,butonlyontherespectiverow.Thuswillnotpickupthemutliple's?
Where'dIgowrong?
Thankyou
Completelyperplexed.Ican'taltertheformulaatallwithoutgettingthe#value!error.What'swrong?Icaninsertintoyourexample"tbl"butnoalterationor
editoropenortheformulawithoutthe#value!.Anysuggestionswouldbenice?
Suggestions:
Didyouchangecellreferencesintheformula?Cellreferencesarebolded:
=INDEX($C$2:$C$6,SMALL(IF($B$8=$B$2:$B$6,ROW($B$2:$B$6)MIN(ROW($B$2:$B$6))+1,""),ROW(A1)))
ThefirstformulamuststartwithcellreferenceA1(bolded),example:
=INDEX($C$2:$C$6,SMALL(IF($B$8=$B$2:$B$6,ROW($B$2:$B$6)MIN(ROW($B$2:$B$6))+1,""),ROW(A1)))
Didyoucreateanarrayformula?
Reply
122.

Oscarsays:
October17,2011at9:46am
AnasHashmi,
Yes,youareright.Arrayformulasaretooslowwithlargedatasets.
Reply

123.

REsays:
October17,2011at1:49pm
Ok,ok...TheControl,Shift,EnterthingIcompletelymissed.Aftereditingtheformulayoumustreenterformulaviathiskeycombination.Asexpectedthe
formulaisgenius...4dayslater!
Sothankyouandcanyounowpointmeintherightdirection.Ihaveacolumnofcities(multiple),eachcityrowhasacolor,red,green,blue,etc..associated
withit.Therowandcolumnformulaworks,butgrowsmydatabaseinrows.Ihavemycolorsincolumnsandwanttopopulatethecolorcolumnasitappliesto
thecityonasinglerowbasis.Thecolumnformulaworkswell,butIcan'tbeassuredthatallcolorswillshowupintheirrespectivecolumnswithinthecityrow.
Thusredgreen,blue,itspossiblethatifgreenisnotinthedata,bluedatafallsintothegreencolumn.
Suggestions?
Anyadvisehowtosortoncity,andpopulatecolumnsthatapplytospecificcolors?
Reply

124.

Oscarsays:
October18,2011at10:05am
RE,
IamnotsureIunderstand.

Downloadexcelfile
recitycolor.xlsx
Reply
125.

REsays:
October18,2011at10:32pm
Frommycommadelimitedfiledump:
Office#CityColorCodeID
OF175AmesBlue672
OF175AmesRed8732
OF25OakmontGreen753
OF25OakmontBlue8743
OF5OmahaRed634
OF95DallasRed231
OF95DallasBlue13244
OF95DallasOrange13132

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

29/73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

OF95DallasPink234
MySpreadsheetdesiredresult
Office#CityStateRedGreenBlueOrange
OF175AmesIa8732672
OF25OakmontMn7538743
OF5OmahaNe634
OF95DallasTx2311324413132
I'mtryingtogetfromcommadelimitedrowstoaconsolidatedrowwherethecolorcodelinesupandpopulatesthecellwiththeID.
Thankyouforyourtime
Doesthishelp?
Reply
126.

REsays:
October18,2011at10:37pm
SorryitlosttheformattingwhenIsentit,
CSV:Office#|City|Color|ID|
Excel:Office#|City|State|Red|Green|Blue|Orange
Reply

127.

REsays:
October23,2011at8:54pm
Oscar,
Iguessitcan'tbedone?Eh?
Reply

128.

Oscarsays:
October23,2011at9:14pm
Re,
Iamsorry,Isomehowmissedyourcomment.
Checkoutthisfile:recitycolor1.xlsx
Reply

129.

Erwinsays:
November2,2011at7:05pm
Hi,Oscar...
Ihavebeenlookingforhelpon"Howtoreturnmultiplevaluesusingvlookupinexcel"foronewholeday...thenIfoundthis...Man!,youhelpmesomuch.
Thanksforsharingyourknowledge.GodBless
Reply

130.

Oscarsays:
November3,2011at9:54am
Erwin,
Thanks!
Reply

131.

Kevinsays:
November10,2011at10:59pm
Hello,
Thanksforthehelpfulformula.Iusedthisformulasuccessfully,butnowIwantedtogetthedataImissedwiththeformula.Howwouldyouaddmultiple
IF/ANDstatementstotheformula.Forexampleadd:
(IF($B$8<$B$2:$B$6,...),($C$8<$C$2:$C$6,...),etc.
Thanks!
Reply

132.

Oscarsays:
November11,2011at8:49am
Kevin,
Iusedthisformulasuccessfully,butnowIwantedtogetthedataImissedwiththeformula.
Whatareyoutryingtodo?
HowwouldyouaddmultipleIF/ANDstatementstotheformula.Forexampleadd:
(IF($B$8<$B$2:$B$6,...),($C$8<$C$2:$C$6,...),etc.
IF(($B$8<$B$2:$B$6)*($C$8<$C$2:$C$6),...
Reply

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

30/73

11/14/2015

133.

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

Jonathansays:
November11,2011at6:50pm
Oscar,greatpost.Onequestion:Iamusingthevbacodeyouprovidedanditworksgreat.Iamdealingwithasetof110,000+rowsofdata(2columns)with
about17,500uniquelookupvaluesandtheremainderoftherowsareuniquevaluestobefound.Ineedtousethevbathatyoupostedbuttohaveitoutputthe
datahorizontally,notaverticalarray.IamterriblewithVBA.Anychanceyoucouldgivemesomepointersortellmewhichpartofthecodetochange.Any
helpwouldbemuchappreciated.
Ex:
35007000030002354CSTRL
35007000030002354CSTRU
35007000030002402MRRW
35007000030003404CHRK
35007000040000402MRRW
Needstobecome:
35007000030002354CSTRL354CSTRU402MRRW
35007000030003404CHRK
35007000040000402MRRW
Whenlookedup.
Reply

134.

Kevinsays:
November11,2011at10:47pm
Sorry,myquestionwasvague.Hereisthesetupofmyworksheet:
Ihave3columnsfilledwithpercentagesassociatedwithW,X,Y,Z.
%red%pink%blue
10%15%30%W
25%33%80%X
40%12%66%Y
75%4%12%Z
IusedyourformulatofindW,X,Y,Zmeetingthebelowcriteria:
>30%red>20%pink>50%blue
YXX
ZY
Now,Iwanttofindoneformulathatwillfindthevaluesnotcapturedbythepreviousformulas.Inotherwords,(%red<30%)(%pink<20%)(%blue<50%)=
W
Thanks!
Reply

135.

Oscarsays:
November14,2011at11:24am
Jonathan,
Ihavechangedtheexistingudfonthiswebpage.Itisnowpossibletoreturnvalueshorizontally.
Reply

136.

Oscarsays:
November14,2011at2:17pm
Kevin,

Downloadfile:
Vlookupkevin.xls
Reply
http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

31/73

11/14/2015

137.

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

Hasssays:
November16,2011at4:19pm
Oscar,greatjob!keepingthethreadaliveforsolong!Thisisagreatone!
Ihaveaquestionaroundmergedcells.Letssayinyourfirstexample,BothPenandPapercost$5,soIhavemergedC2andC3intoasinglecellwiththe$5.
Now,inthesearchcell(B8),ifIputinPen,itwillgivemethecorrectasnwer.However,ifIputinPaperitwillnotreturnthevalue,asopposedtotheexpected
returnedvalueof$5.
Thequestion:isthereawaytomakethisworkwithmergedcells
Greatlyappreciateyouhelp.
Hass
Reply

138.

Oscarsays:
November21,2011at5:24pm
Hass,
ThereisquestionIdontknowtheanswerto!
Iwouldavoidmergedcellsasmuchaspossible.
Reply

139.

Janetsays:
November23,2011at12:13am
HiOscar,
TheVLOOKUP"Returnmultiplevalueshorizontally"isexactlywhatIneed,howeveritisnotworkingforme.Icopiedeverythingexactlyasshowninyour
example,butallIgetis"#VALUE!".IamusingExcel2010onaPC.Hassomethingchangedinthe2010version,oramIjustmissingsomething?
Reply

140.

Kieransays:
November23,2011at7:43am
woulditbepossiblefortheformulatocopyitselfintoothercellsbelowdependingonhowamnyuniquereferenceswerefoundinthetable?
Reply

141.

Oscarsays:
November25,2011at1:37pm
Kieran,
Thatwouldrequirevba.
Reply

142.

Oscarsays:
November25,2011at1:38pm
Janet,
Maybeyouforgottocreateanarrayformula?Instructionsareinthepostabove.
Reply

143.

Janetsays:
November28,2011at3:41pm
HiOscar,
ThearrayformulaIusedwasthesameasinyour"ReturnMultipleValuesHorizontally"example:"=INDEX($C$2:$C$6,SMALL(IF($B$9=$B$2:$B$6,
ROW($B$2:$B$6)MIN(ROW($B$2:$B$6))+1,""),COLUMN(A1)))".Isetupthetableexactlyasyoushowinyourexampleaswell,butitisn'tworkingfor
me.AllIgetincellC9is#VALUE!Anyideasonwhyitisn'tworking?
Thanks.
Reply

144.

Oscarsays:
November30,2011at3:56pm
Janet,
Downloadexcelexamplefile:
Returnmultiplevalueshorizontally.xls
Reply

145.

DPsays:
December1,2011at5:05pm
Iamtryingtousetheformulaforabiggerrange,C3:C40.Imodifiedtheformulaasfollows
=INDEX('ResourceProjectMapping'!C3:C40,SMALL(IF($B$4='ResourceProjectMapping'!B3:B40,ROW('ResourceProjectMapping'!B3:B40)
MIN(ROW('ResourceProjectMapping'!B3:B40))+1,""),ROW('ResourceProjectMapping'!A1)))

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

32/73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

howeverIamgettingthebelowresults
#VALUE!
#NUM!
#NUM!
#NUM!
#NUM!
Canyoupleasehelp?
Reply
146.

Oscarsays:
December5,2011at10:44am
DP,
Youneedtouseabsolutecellreferences(exceptthelastcellreference):
=INDEX('ResourceProjectMapping'!$C$3:$C$40,SMALL(IF($B$4='ResourceProjectMapping'!$B$3:$B$40,ROW('ResourceProject
Mapping'!$B$3:$B$40)MIN(ROW('ResourceProjectMapping'!$B$3:$B$40))+1,""),ROW('ResourceProjectMapping'!A1)))
Reply

147.

Ferassays:
December18,2011at2:52pm
Dear,
Iwanttocopytheformulafromfirstcelltoitsadjacentcells,butIwanttokeepthesamevalueofthelastcelltobemultipliedwiththeabovepercentage,but
whenIpastetheformulaintoadjacentcellitcopiesthevalueofthecellnexttotheoneIneedthevaluefrom
pleaseadvise
Reply

148.

Bensays:
December19,2011at8:55pm
HiOscar,
I'mtryingtouseyourvbaVlookuptool,andamhavingissueswherebylookupcolumnsarebackwardsfromyours(switchthepriceandpencolumnsaround),
andIwanttofindallofthematchesfromthefirstcolumn,notthesecondone.WhenIusetheformula,itjustreturnsablank.ItworksfineifIswitchthe
columns,butthisisnotideal.
Here'sanexample:
AB
AAAGrpA
BBBGrpA
CCCGrpB
DDDGrpA
EEEGrpC
Ithencreateanothercolumnelsewhere,with"GrpA"asaheader,theninthesecondrowofthatcolumn,myfunctionlookslikethis:
{=vbaVlookup(C1,$A$2:$B$15,1)}
Ifiguredthelastparameter(1)wastolookatthefirstcolumninsteadofthesecond.
Ifyoucouldprovidesomehelptogetthisworking,thatwouldbesuperb.Thanks!
Reply

149.

Oscarsays:
December23,2011at12:54pm
Feras,
Canyoudescribeingreaterdetailandsomeexamplevalues?
Reply

150.

Oscarsays:
December23,2011at3:22pm
Ben,
downloadfile:
Ben.xls
Reply

151.

Neelasays:
January11,2012at10:19am
Oscar,
Isitpossibletoreturnthevaluesinthenexttaborsheet?insteadofthesamesheet?
Reply

152.

Neelasays:
January11,2012at12:06pm
Oscar,Plsignoreabove.

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

33/73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

Igothowtodo:)
Reply
153.

Timussays:
January12,2012at5:24pm
HiOscar,
Thanksforthisarticle...theformulahasbeenagreathelptomeinsettingupsomeofmyworksheets.Ihaveaquestionaboutitthough:
=INDEX($A$2:$C$7,SMALL(IF($B$9=$A$2:$A$7,ROW($A$2:$A$7)MIN(ROW($A$2:$A$7))+1,""),ROW(A1))
Isitnecessarytousethe"MIN(ROW(array))+1"calculation?IwaslookingatasimilarformulapostedbyAshishMathurandInoticedhedidn'tusethe
"MIN...".
Thanks
Reply

154.

Oscarsays:
January13,2012at1:23pm
Timus,
YoucanalsouseMATCH(ROW($A$2:$A$7),ROW($A$2:$A$7)).
=INDEX($A$2:$C$7,SMALL(IF($B$9=$A$2:$A$7,ROW($A$2:$A$7)MIN(ROW($A$2:$A$7))+1,""),ROW(A1))
becomes
=INDEX($A$2:$C$7,SMALL(IF($B$9=$A$2:$A$7,MATCH(ROW($A$2:$A$7),ROW($A$2:$A$7)),""),ROW(A1))
Infact,youcanuse:ROW($1:$7)
andtheformulabecomes:
=INDEX($A$2:$C$7,SMALL(IF($B$9=$A$2:$A$7,ROW($1:$7),""),ROW(A1))
Remember,ifyouthenreplaceyourcellreferenceswithnamedranges,thelastformulawontwork.Itisnotdynamiccontrarytotheothertwoformulas.
Thanksforcommenting!
Reply

155.

Dawiseesays:
January17,2012at3:34am
HiOscar,Thankyouforyourposting.Myquestionisfairlybasic.Irecreatedyourtableof"Returnmultiplevaluesvertically"aboveandenteredtheexact
formula.However,itdoesn'twork.
IenteredintheC8cell>=INDEX($C$2:$C$6,SMALL(IF($B$8=$B$2:$B$6,ROW($B$2:$B$6)MIN(ROW($B$2:$B$6))+1),ROW(A1)))
Andexcelgaveme>#VALUE!
IfIcopiedyourformuladirectlyfromtheformulabartomysheetinC8cell,excelwouldreturn#VALUE!aswell.However,ifIcopiedanentirecell,andpaste
intomyC8,excelwouldreturnexactsamevalueasyouroriginaltable.IamusingExcelMac2008butIdon'tbelievethiswouldhaveanythingtodowithit.
Pleaseletmeknow.Ireallyappreciateyourtime.Thankyouverymuch.
Reply

156.

Gabsays:
January20,2012at5:37am
Justwanttotellyou:THANKYOU!Yourwebisgreat,yourareverygenerous.Thankyouforsharing!
Reply

157.

Oscarsays:
January20,2012at2:07pm
Dawisee,
Youforgottocreateanarrayformula.
Howtocreateanarrayformula
1.DoubleclickcellC8.
2.Pasteformula
3.PressandholdCtrl+Shift
4.PressEnter
Gab,
Thankyouforcommenting!
Reply

158.

VICsays:
January22,2012at9:50pm
Myformulanoworking,Ifollowyourstepsbuttheressomethinkwrong...,pleasegivemeahand!

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

34/73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

=INDEX($B$1:$C$700SMALL(IF(($D$90=$B$1:$B$700)ROW($B$1:$B$700)MIN(ROW($B$1:$B$700))+1"")ROW(A1))2)
Reply
159.

Oscarsays:
January24,2012at3:28pm
VIC,
Ithinkyouforgottocreateanarrayformula.
Reply

160.

Jenersays:
January25,2012at12:01pm
=LEFT(INDEX($C$2:$C$13546,SMALL(IF($E$3=$B$2:$B$1300,ROW($B$2:$B$1300)MIN(ROW($B$2:$B$1300))+1,""),COLUMN(A1))),11)
HiOscar,
YourcodeworksperfectbuthenIreach$B$1300ormoretheresultwillbe#VALUE!Pleasehelp!
thanksalot,
jener
Reply

161.

Oscarsays:
January30,2012at7:18pm
Jener,
adjustcellreferences(bolded):
=LEFT(INDEX($C$2:$C$13546,SMALL(IF($E$3=$B$2:$B$1300,ROW($B$2:$B$1300)MIN(ROW($B$2:$B$1300))+1,""),COLUMN(A1))),11)
Reply

162.

Jenersays:
February1,2012at10:56am
HiOscar,
thanksforthereply,
Ihavenocluehowtoadjustit.
Canyougivemeasample.letssayinColumnBandCthereare100000rows
Isthistherightcodeforit:
=LEFT(INDEX($C$2:$C$100000,SMALL(IF($E$3=$B$2:$B$100000,ROW($B$2:$B$100000)MIN(ROW($B$2:$B$100000))+1,""),COLUMN(A1))),11)
needyourexpertadvice,
jener
Reply

163.

Oscarsays:
February2,2012at10:54pm
Jener,
Ithoughtyoucopiedthearrayformulahorizontally?Youareusingcolumn(A1)inyourformula.
Yourexampleseemstoberight.
Reply

164.

Ulriksays:
February9,2012at4:45pm
HiOscar,
Imusingthe"Returnmultiplevaluesverticallyorhorizontally(vba)".RightknowIcangetittoreturn3valuesinthethecellsC9C11.Ihavealotofdatato
lookupandwouldlikeittoreturnmorevaluesvertically(maybe10values).WhenItrytocopythearraytothenextcells,Ieithergetaerrormessageogitwill
startreturningthesamevalues,isalreadyshowninC9C11.Canyouhelpme?(Hopethequestionmakessense)
Ulrik
Reply

165.

Soumitsays:
February10,2012at8:24am
HiOscar,
Firstofall,thankyouVERYmuchforthesuperbeffortyouputinforusExcelnewbiestobebetter!
Iamfacingoneprobleminmakingthisarrayformularun.Mydatatableandoutputtableareondifferentsheets.Whiletheformulaworksperfectlywhenthey
arebothinthesamesheet,errorisreturnedwhentheyareondifferentsheets.Here'smyformulathatworks:
=IFERROR(INDEX($A$2:$E$107,SMALL(IF(Dashboard!$C$6=$A$2:$E$107,ROW($A$2:$A$107)MIN(ROW($A$2:$A$107))+1,""),

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

35/73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

ROW(A1)),COLUMN(A1)),"NoMoreDataAvailable")
Here'stheonethatdoesNOTwork:
=IFERROR(INDEX('BusinessEvents'!$B$2:$E$3177,SMALL(IF($C$6='BusinessEvents'!$B$2:$E$3177,ROW('BusinessEvents'!$B$2:$B$3177)
MIN(ROW('BusinessEvents'!$B$2:$B$3177))+1,""),ROW('BusinessEvents'!B1)),COLUMN('BusinessEvents'!B1)),"NoMoreDataAvailable")
Datatableisinsheetnamed"BusinessEvents"andoutputtableisinanothersheetnamed"Dashboard".ThefilteringidisincellC6inthesheet"Dashboard".
Pleasehelp.
Thanksmuch!
Soumit
Reply
166.

Oscarsays:
February10,2012at4:17pm
Soumit,
Doesthisformulawork?
=IFERROR(INDEX('BusinessEvents'!$B$2:$E$3177,SMALL(IF($C$6='BusinessEvents'!$B$2:$E$3177,ROW('BusinessEvents'!$B$2:$B$3177)
MIN(ROW('BusinessEvents'!$B$2:$B$3177))+1,""),ROW(A1)),COLUMN(A1)),"NoMoreDataAvailable")
Reply

167.

Oscarsays:
February10,2012at5:30pm
Ulrik,
Ithinktheproblemishowyouentertheudf.
Youcantcopyanarrayformulareturningtwoormorevalues.
HowtoexpandthearrayformulafromcellrangeC9:C11toC9:C21
1.SelectC9:C21
2.Clickinformulabar
3.PressandholdCtrl+Shift
4.PressEnter
5.Releaseallkeys.
Thanksforbringningthistomyattention.
Reply

168.

Matsays:
February10,2012at10:16pm
HiOscar,
Thanksmuchforyourguide,itishelpingouttremendously.Iamwantingtoalteryourcodeabit,anditseemslikeitshouldworkbutIamnotgettingthe
desiredresults.Iwouldliketohaveanifortocheckforanothervalue.ThisishowIassumeditwouldlook,butagain,I'mnotseeingthedesiredresults.Assume
C9had124.
=INDEX($A$2:$C$7,SMALL(IF(OR($B$9=$A$2:$A$7,$C$9=$A$2:$A$7),ROW($A$2:$A$7)MIN(ROW($A$2:$A$7))+1,""),
ROW(A1)),COLUMN(A1))
Iwouldlikeresultsfor123and124.Ihoweverseemtobegettingeverythingbackasaresult.Whatisgoingwrong?Thanksmuchforyourhelp!
Reply

169.

Oscarsays:
February10,2012at11:02pm
Mat,
=INDEX($A$2:$C$7,SMALL(IF(($B$9=$A$2:$A$7)+($C$9=$A$2:$A$7),ROW($A$2:$A$7)MIN(ROW($A$2:$A$7))+1,""),ROW(A1)),COLUMN(A1))
($B$9=$A$2:$A$7)+($C$9=$A$2:$A$7)returnsanarray
OR($B$9=$A$2:$A$7,$C$9=$A$2:$A$7)returnsasinglevalue.
Reply

170.

Matsays:
February10,2012at11:14pm
Beautiful!Thankyouverymuch!
Reply

171.

Ulriksays:
February13,2012at11:08am
ThankyouOscar,workedperfectly.
Reply

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

36/73

11/14/2015

172.

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

Soumitsays:
February13,2012at3:19pm
Oscar,myapologies!Theformulaworksexactlyas(not)advertised,Iscrewedupontheaccuracyoftheidvalue.Basicallytheidmatchednovalueonthedata
table,asaresulttheobviouserrorwasdisplayed.Nexttime,IwillmakesureIammorediligentatmyendbeforeposting.
Anyway,thankstoyou,Ilearnedagreatwayto"query"anexcel"Database":)
Bestregards
Soumit
Reply

173.

Prashantsays:
February13,2012at7:36pm
Hello,
Iusedtheformulatogetmultiplevalues,andworksgreat.Mylookupvaluesareavailableinthe"Data"sheet.Theresultoflookupisinthe"Summary"sheet.
Thereisapercentagecalculationin'summary'sheetwhichissimplecalculationlike=g5/g7,andIwanttosortvaluesindescendingorderbasedonpercentages.
WhenIsortedresultsinthe"summary"sheet,thesortwasnotapplied.Iguessitisbecauseof"Index"formula.Frankly,Iamlostastohowtoapplysort.Could
youpleaseadvisewhatshouldIdo?Thanksforyourhelp.
Bestregards,
Prashant
Reply

174.

Mikolajsays:
February24,2012at12:58am
Oscar,
thankyouverymuch!Ithelpedalottosolvemyproblems!
Reply

175.

Aksays:
March6,2012at2:18pm
Hi,
Iamusingyourformulawhichworksatreatandisveryhelpful.Iwantedtoaskcouldyoushowmehowtomovethelookupcellautomaticallydown.Ihave
unlockeditandcopieditdownbutthenwhenicopytheformulaacrossthelookupcellmovesandihavetoindividuallyhavetoupdate.IsthereawaythatIam
abletochangetheformulasoitwilllookupthecell?Ihopeihavebeenclear.Thanks
Reply

176.

Oscarsays:
March6,2012at2:45pm
Ak,
Ifthelookupcellis$B$1,changeitto$B1.
Moreonabsoluteandrelativecellreferencing
Reply

177.

Aksays:
March6,2012at2:57pm
Thanksforthequickresponse.
Ihadalookatthelinkbutnotsurewhattoimplement.Whatiwastryingtoachieveistouseyourformulatolookupmultiplevaluesandreturnthem
horizontallywhichiswhatyourformuladoes.
Myproblemisthatwhenidragtheformuladownthenitislockedto$B$1.Ifichangeitthenitworksoncedraggingyourformuladownbutwhenidragacross
toseetheothervaluesthecellB1isnolongerthelookup,itscellB2.IhavehundredsoflinessoIdidn'twanttomanuallychangeandthoughtifyouknewaway
thatcanautomatethisinyourformula?
Thanks
Ak
Reply

178.

Oscarsays:
March6,2012at3:28pm
Ak,
Yes,cellreferenceB1changeswhenyoucopytheformula.
Cellreference$B1changesonlytherownumber,itislockedtocolumnB.WhenyoudragtheformulaacrossitisstilllockedtocolumnB.
Reply

179.

Aksays:
March6,2012at3:38pm

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

37/73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

Oscaryouareagem,thankssomuch,savedmesomuchtimeandhelpedmeinstantly!!!Thankssomuch!!
Reply
180.

SunKissedsays:
March10,2012at9:56pm
OMGmywholeworldjustchangedafterreadingandtryingouttheabovearrayexamples.I'vebeenpullingoutmyhairtryingtofindouthowandwhyExcel
doesn'taccomodatesuchafunctionand,WHALAH!!ThankyouGREATLY!!
Reply

181.

Oscarsays:
March12,2012at3:58pm
AkandSunKissed,
Thanksforcommenting!!
Reply

182.

Danasays:
March14,2012at11:12pm
Ijustwantedtosaythankyousoooomuch.Ihavebeentryingtofigureoutthisformulafor2days!!Ifinallystumbleduponyournotationsaboveandhadmy
formulaproblemresolvedinan20mins.
Youareamazing:)
Reply

183.

Oscarsays:
March15,2012at10:00pm
Dana,
Thankyouforcommenting!!Iaddedalinktotheexplanationonthetableofcontents.
Reply

184.

Ethansays:
March26,2012at3:34pm
Thisworkedverywell.YourexamplewassimpleenoughthatIcouldextrapolatehowtouseitacrossmultipleworksheetsandhowtocopyitacrossmultiple
columns.Thankyou.
Reply

185.

Talsays:
March27,2012at4:29pm
HelloOscar,
IhavetriedtousethevbaVlookupfunctionstatedabove.IopenedVBAusingAtl+F11inExcel2007,Ithenopenedanewmoduleandpastedthetextstated
aboveintothemodule.
IthentriedtousethefunctioninexcelanditreturnsthesamevalueasthenormalVLOOKUPfunction,thetopmostvalueassociatedwiththelookupvalue.Itis
notgoingdownthetabletofindthenextlookupvaluefortheoutput.
Anysuggestions?
Thanks,
Scott
Reply

186.

Oscarsays:
March28,2012at9:13am
HiScott!
IthentriedtousethefunctioninexcelanditreturnsthesamevalueasthenormalVLOOKUPfunction,thetopmostvalueassociatedwiththelookupvalue.Itis
notgoingdownthetabletofindthenextlookupvaluefortheoutput.
Anysuggestions?
Youhavetoenterthearrayformulainacellrange,exampleabove:C9:C11.ThenpressandholdCtrl+ShiftandthenpressEntertocreateanarrayformula.
Reply

187.

Oscarsays:
March28,2012at12:53pm
Ethan,
Iamhappyyoufoundituseful!Thankyouforcommenting!
Reply

188.

Talsays:

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

38/73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

March28,2012at5:28pm
Perfect!ThanksOscar!
Reply
189.

Ahmedsays:
April3,2012at6:41am
Oscar,
I'veaquestion.pleasehavealookatit.
Appreciated!
COUNTRYVISITDATENOOFVISITSCITY1CITY2CITY3CITY4CITY5CITY6
AUSTRALIA14Mar121SYDNEY
ENGLAND31Mar121LONDON
USA18May113NYLATDL
INDIA19Apr103DELHIBOMBAYHYD
Question:
IfIlookupfortheUSA,theresultIneedisthecitynamesinadjacentcellslikebelow
Entercountryname:USANEWYORKLATDL
Idon'twanttheblankcellsinbetween,isthereanywayaround?
Appreciated!
Reply

190.

Oscarsays:
April3,2012at9:02am
Ahmed,
Idon'twanttheblankcellsinbetween,isthereanywayaround?
Whatformulaareyouusing?
Reply

191.

Ahmedsays:
April4,2012at6:35am
ThanksOscar!
Hereistheformulai'musing
=INDEX($A$2:$I$5,SMALL(IF($C$11=$A$2:$A$5,ROW($A$2:$A$5)MIN(ROW($A$2:$A$5))+1,""),ROW(A1)),COLUMN(A1))
USAWednesday,May18,2011300NY0LATDL
USAMonday,April19,20103DELHIBOMBAY0HYD00
howcaniattachmyworkbook,sothatitbecomeseasyforyoutounderstandwhatiexactlyneed.
Manythanks!
IjustwanttoseethelistofONLYcitiesinadjacentcells,
Reply

192.

Ahmedsays:
April7,2012at11:53am
Oscar?
I'mwaitingforyourresponse.
Thanks!
Reply

193.

Oscarsays:
April9,2012at8:17am
Ahmed,
Seeattachedfile:
Ahmed.xlsx
Reply

194.

Yulisays:
April20,2012at1:12am
HiOscar,
Iamtryingtouseyourvbacodetodothe"returnvalueshorizontally"butithasbeenunsuccessfulaswhenItriedtoentercustomfunctionarrayformulathecell
rangewouldallenduphavingthesameformulaasthefirsttoprightformula.Iwaswonderingifyoucouldhelp...
InoticedthatinyourArrayformulaincellC14:D14youhadthelookup_valueasB8?(whichisthecellthathastextvalue"Returnvaluesvertically")?isthis

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

39/73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

correct?Ihavebeeninputtingtheformulawithreferencetothatfirstlookupvalue....
Thankssomuchandthisissuchagreathelpfulresourceforexcel!
Reply
195.

Oscarsays:
April21,2012at1:31pm
Yuli,
Iamtryingtouseyourvbacodetodothe"returnvalueshorizontally"butithasbeenunsuccessfulaswhenItriedtoentercustomfunctionarrayformulathe
cellrangewouldallenduphavingthesameformulaasthefirsttoprightformula.Iwaswonderingifyoucouldhelp...
Youareright,thereisanerrorwiththecellreferences.Theyshouldhavebeenabsolute.Well,nowtheyare,Ieditedthepost.
InoticedthatinyourArrayformulaincellC14:D14youhadthelookup_valueasB8?(whichisthecellthathastextvalue"Returnvaluesvertically")?isthis
correct?Ihavebeeninputtingtheformulawithreferencetothatfirstlookupvalue....
Youareright,anothererror.
Thanksforcommenting!!
Reply

196.

Moncefsays:
April23,2012at9:10pm
HiOscar,
Thankyousomuchforthiswonderfulexample,ithelpsalot.Ihavea44000rowsspreadsheet,IputtheformulainthecellitworksgreatbuteveytimeIcopyit
andpasteittothenextcellIhavetoholdcrtl+shiftandclickonenterinordertogettheresult.Isthereaneasywaytodoit?
thisistheformulaIamusing
{=INDEX(Sheet1!$B$2:$B$15829,SMALL(IF(Sheet1!$A$2:$A$15829='PurchaseOrders'!B150,ROW(Sheet1!$A$2:$A$15829)
MIN(ROW(Sheet1!$A$2:$A$15829))+1,""),COLUMN(A1)))}
thanksforyourhelp
Reply

197.

Moncefsays:
April23,2012at9:22pm
HiOscar,
Thankyousomuchforthegreatexample.Iamworkingona45000rowsspreadsheet,Iaddedtheformulainthefirstcellanditworkedlikeacharmbutthe
thingsiswhenItrytocopyandpasttheformulainothercellsitwontworkunlessselectthecell,putthecursorinsidetheformulaboxandholdcrtl+shiftthen
hitenter.Isthereaneasywaytocopytheformulathroughoutthe45000rows.HereistheformulaIamusing
{=INDEX(Sheet1!$B$2:$B$15829,SMALL(IF(Sheet1!$A$2:$A$15829='PurchaseOrders'!B150,ROW(Sheet1!$A$2:$A$15829)
MIN(ROW(Sheet1!$A$2:$A$15829))+1,""),COLUMN(A1)))}
Thanksforanyfeedback,
Moncef
Reply

198.

Moncefsays:
April24,2012at10:04pm
Gotit,thethingisthecalculationtabinthetools>optionwaschangedfromautomaticallytomanually.
Reply

199.

Ahmedsays:
April29,2012at2:11pm
OSCAR,
Thanksalot!,
i'vebeenawayforsometime...
yousolvedmyproblem.
Youaregreat!
Thanksagain....
[OscarSays:
April9th,2012at8:17am
Ahmed,
Seeattachedfile:
Ahmed.xlsx
}
Reply

200.

Oscarsays:
April30,2012at12:54pm
Ahmed,

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

40/73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

Thanksforcommenting!
Reply
201.

Paulsays:
May1,2012at3:59pm
Areyoustillansweringquestions?
Reply

202.

Oscarsays:
May1,2012at8:22pm
Paul,
YesIamstillansweringquestions.
Reply

203.

Paulsays:
May1,2012at9:01pm
ThanksOscar:
IamtryingtousetheIndexformulainthefirstexample,returnmultiplevaluesvertically:Ihaveaspreadsheetwith20columnsorso.MydatabeginsincellA1
andIhavegottenridoftheheaders.SomysampleextendsfromA1throughAC29.Thedatatolookupinincolumn1andtheinfoIwantreturnedisinColumn
2.
Iamwritingtheformulaonadifferenttabthantheworksheet.Idon'tunderstandthereferencetoRowA1attheendofyourexamplebecauseinyour
spreadsheetthereisnodateinRow1anditisnottheintersectingpointsofwhereyourdatabegins.Iwillalsowanttoreturndatafromcolumns3and4afterI
getthehangofthis.
Paul
Reply

204.

Tanksays:
May5,2012at12:23am
Oscar,
Ihavealittleissue,Ihavereadalmosteverypostonthisforumandstillcantaformulafiguredout.Mysheetlookslikethis:
abc
1
2833013626260
3833010000260
4833015160120
5833018181120
6833119703170
7833165557220
8833165043190
9833185004160
10833255232120
11833285033260
12833285033260
13833330000220
14833355721120
15833382055180
16833382845260
17833382135120
18833412060130
19833470000120
20833480000120
21833509471170
22833509369160
23833509471160
24833509772250
25
Ineedaformulathatwilllookupanygivenvalue(zipcode)incolumnBandreturnitsrespectivevaluefromcolumnC.Andthenaddthosereturnedvalues
togethertoproduceonesumofthevaluesforeachzipcode.Sothatthefinalresultwouldlooksomethinglikethis:
833017608331117083316410Etc
ThisisonlyasmallsampleofthedatapoolthatIamworkingwithnormalsizeisusuallyinthehigh100sofrandomlyassortedzipcodes.Iwouldalsoliketo
beabletodroptheadditional4digitsfromeachzipcodewithouthavingtomanuallydeleteeachone.Anyhelpwouldbeincrediblyappreciated.
Reply

205.

Yairsays:
May7,2012at4:56am
HiOscar!!!Thispostreallyhelpedmealot!!!
Iwantedtoaskyousomething...I'vebeentryingfordaysto"adjust"thissameexampletooneIhave.Iwouldlikethesameoutputofthisformulabutsearching
forcellsthatCONTAINagivenword,insteadofmathingfortheexactsameword...
Likeinthiscase,insteadoflookingforcellsthatsaysonly"Paper",Iwanttheformulatogivebacknotonlytheresultfor"Paper",butalsotheresultfor"Paper
Clip"..

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

41/73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

Thankyouverymuchinadvanceandkeepupthegreatjob!!!
Reply
206.

Oscarsays:
May7,2012at9:07am
Tank,
Iwouldsuggestusingapivottable.
Firstdroptheadditional4digitsfromzipcodes:
FormulainD2:
=LEFT(A1,FIND("",A1)1)
Thensumvalueswithapivottable.
Openattachedfile:
Tank.xlsx
Reply

207.

Oscarsays:
May7,2012at9:12am
Yair,
Readthispost:
Searchforatextstringandreturnmultipleadjacentvalues
Reply

208.

Oscarsays:
May7,2012at9:39am
Paul,
IamtryingtousetheIndexformulainthefirstexample,returnmultiplevaluesvertically:Ihaveaspreadsheetwith20columnsorso.MydatabeginsincellA1
andIhavegottenridoftheheaders.SomysampleextendsfromA1throughAC29.Thedatatolookupinincolumn1andtheinfoIwantreturnedisinColumn
2.
Iamwritingtheformulaonadifferenttabthantheworksheet.
Seeattachedworkbook:
Paul2.xls
Idon'tunderstandthereferencetoRowA1attheendofyourexamplebecauseinyourspreadsheetthereisnodateinRow1anditisnottheintersectingpoints
ofwhereyourdatabegins.
ROW(A1)containsarelativecellreference,readstep3intheexplanationinthispost.
Iwillalsowanttoreturndatafromcolumns3and4afterIgetthehangofthis.
SeeSheet3intheattachedfile.
Reply

209.

TJsays:
May7,2012at9:01pm
HiOscar,Loveit!Buthaveaquestion.
Myarrayisgoingtoconstantlychange,asitispulleddailyfromanoutsidedatasource.Asaresult,Idonotwanttohavetoconstantlyupdatetherange.Inyour
1stexample,$B$2:$B$6couldbe$B$2:$B12tomorrowor$B$2:$B$20thenextforme.
I'vetriednamingtherange,butIt'snotworking.Anyideas?
ThanksSOOOmuchforputtingthistogether.
Reply

210.

Paulsays:
May7,2012at10:11pm
Whatapleasuretohaveanexpertandconsideratehelperonhand.
Thanks,
Paul
Reply

211.

shawnsays:
May10,2012at7:21pm
Youareawesome!I'vebeenlookingforaneasywaytodothisforalongtimeandyoursworksflawlessly!
Thanksagain!:)
Reply

212.

shawnsays:

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

42/73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

May10,2012at7:45pm
Idohave1question.Ihaven'ttriedityetandyoumayalreadyhaveanarticleonit,butisitpossibletousethistodoacomparisononthevaluereturnedfromthe
arraywithadifferentcolumnonthecellyouaredoingthevlookupon?
Iknowthisisprobablygoingtobereallycomplicated,butitwouldbereallycoolifIcoulddothis.Yourformuladoesthis,butinsteadofreturning8resultsin8
columns.Ijustwantthe1resultthatmatchesb2inthecolumnnexttoitinthearray.InyourexampleifyouaddedQTYtocolumnDforyourarrayandyour
resultsyouknewthepriceoftheitemyouwantedtoreturnandjustneededtheQTYreturned(ratherthan2prices,itjustreturnstheQTY)
HereishowIwouldconsiderthisworkinglogically.Notsureifthisisusfulornot,buthopingitcanclairfythequestion.
ifB14={B2:C6}
return{allcellsinC2:C6thatmatchB14}(yourfunctionreturnsthis)
ifC2:C6resultsmatchC14
returncellinD2:D6thatmatches(willonlyhave1match)
Reply
213.

Oscarsays:
May11,2012at2:55pm
TJ,
Vlookupdynamicnamedrange.xls
Reply

214.

Oscarsays:
May14,2012at2:24pm
shawn,
Trythis:
Shawn.xlsx
Reply

215.

TJsays:
May14,2012at3:08pm
Wonderful.Thankyou!
Reply

216.

Shawnsays:
May15,2012at2:38am
Wow,evenbetter!Idon'tevenneedVBS!:)
Anychanceyouhavesomethingwrittenuponhowthatworks?I'madecentscripterandsuchbutnotreallysurewhereyouwouldstartwhenbuildingaformula
likethat.Beenworkingwithexcelalongtimeandalwaysgetlostwhenpeopleuseindexandmintocomeupwithstuff.
Reply

217.

MRsays:
May16,2012at4:08pm
I'msorryifI'mmissingsomethingherebutI'mlookingatthereturnhorizontallyandI'mgetting#valueinreturn.EventheexamplefileIdownloadedreturned
#valueifyousimplyenactedtheformula.couldthisbebecuaseI'musingexcel2007?Alsowhydoesitlooklikeyounamedtherangeastbl?
Reply

218.

MRsays:
May16,2012at4:37pm
Oscar,
Firstoffthanksfordoingwhatyoudo.
Sorryabouttheearlierpost.Idid'ntfullyunderstandthecreatingArrayformulapart.
ButnowthatI'vegotthatdown,Istillgeta#numinyourexamplefilethatidownloaded.Irecreatedyourexampleandrecievedthesameresults.IthinkImight
bemissingsomethinginthecolumnreference.whatdoesthatmean?whynotC1orD25?
IfeellikeI'msoooclosetogettingthis
Reply

219.

MRsays:
May16,2012at4:39pm
Oscar,
Firstoffthanksfordoingwhatyoudo.
Sorryabouttheearlierpost.IdidntfullyunderstandthecreatingArrayformulapart,eventhoughyousaiditlike20timesinthecomments.Butafterreviewing
thecommentsIstillgeta#numinyourexamplefilethatIdownloaded.Irecreatedyourexampleandreceivedthesameresults.IthinkImightbemissing
somethinginthecolumnreference.Whatdoesthatmean?WhynotC1orD25?
IfeellikeI'msoooclosetogettingthis
Reply

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

43/73

11/14/2015

220.

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

Oscarsays:
May18,2012at11:43am
MR,
Youcanremove#numerrorswithIFERROR(array_formula,"").
Examplearrayformula:
=IFERROR(INDEX($C$2:$C$6,SMALL(IF($B$9=$B$2:$B$6,ROW($B$2:$B$6)MIN(ROW($B$2:$B$6))+1,""),COLUMN(A1))),"")
Reply

221.

Paulsays:
May21,2012at9:12pm
Oscar,
Hatetobotheryouagainbuthaveonemore.Ineedtosearchinacolumnandfindavalue,thenreturnthevaluebelowthatvalueandthenextsay24values
belowthatsamevalue.
SoIwillhaveA1:A15withvalues.IncellB1IwanttoreturnthevalueIneed,inB2thevaluebelowthefirst,inB3thevaluebelowthatoneandsoon.
Thanks,
Paul
Reply

222.

MonirulIslamsays:
May22,2012at9:36am
"Returnmultiplevalueshorizontally"Iwaslookingforit.FortunatelyIfoundthisarticleinGoogle,otherwiseIcouldhavespentlonghoursonthis.Thanks
Oscaralot.
Reply

223.

Oscarsays:
May23,2012at8:51am
Paul,

FormulaincellB2:
=INDEX($A$1:$A$15,MATCH($B$1,$A$1:$A$15,0)+ROW(A1))
Copycellandpastedownasfarasneeded.
ExplainingformulaincellB2
Step1Returntherelativepositionofaniteminanarraythatmatchesaspecifiedvalue
MATCH($B$1,$A$1:$A$15,0)
becomes
MATCH("GG",{"AA","BB","CC","DD","EE","FF","GG","HH","II","JJ","KK","LL","MM","NN","OO"},0)
andreturns7.
Step2Add1tocalculaletherownumbertothevaluebelow.
MATCH($B$1,$A$1:$A$15,0)+ROW(A1)
becomes
7+1
andreturns8.

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

44/73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

Step3Returnthevalueofacellattheintersectionofaparticularrowandcolumn.
=INDEX($A$1:$A$15,MATCH($B$1,$A$1:$A$15,0)+ROW(A1))
becomes
=INDEX($A$1:$A$15,8)
becomes
=INDEX({"AA","BB","CC","DD","EE","FF","GG","HH","II","JJ","KK","LL","MM","NN","OO"},8)
andreturns"HH".
Download*.xlsxfile
Paul.xlsx
MonirulIslam,
Thanksforcommenting!
Reply
224.

Paulsays:
May23,2012at8:01pm
Can'tthankyouenoughagain.Notonlydoyoucomeupwiththeanswersbutthisenabledmetodevelopaworksheetthatsavesandenormousamountofman
hourswhereweusedtodothisworkmanually!!!
Paul
Reply

225.

khuramkhalilsays:
May24,2012at9:06am
DearSir,
ihavehundrednamesanddifferentvaluesofthesenames.
iwanttoknowthathowicanfoundthreevalueswithnamewhichisequaltomyquestionsvalueexampleismentionbelow,
NAMEVALUE
ALI200
SHABAZ100
NAEEM300
IRFAN450
MUDASAR670
WASEEM750
JABAR670
KHIZER810
ADNAN1050
SARFRAZ1200
KHURAM310
USMAN220
IWANTTOKNOWWHOSETHREEVALUESARE=1780
NAEEM300
MUDASAR670
KHIZER810
ANSWERIS1780
itisnecessarythatvalueshouldbethreeofanswer,itisalsopossiblethattheanswersisequaltodifferentthreevaluesexamplementionbelow.
NAEEM300
MUDASAR670
KHIZER810
TOTALOFTHREEVALUE1780
ABDUL250
RAZAQ680
AZEEM850
TOTALOFTHREEVALUE1780
pleasementiontheformulahowicanfoundthese.
thanks
Reply

226.

Tomsays:
May24,2012at5:31pm
Iamtryingtogetasingledollar($)valuereturnfromaselectediteminadropdownlist.Mygoalistohaveseveraldropdownthatwillproduceasingledollar
valueandcalculateatotal.
Reply

227.

Oscarsays:

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

45/73

11/14/2015
May25,2012at7:37am

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

Paul,
Youarewelcome!Thanksforcommenting!
Reply
228.

Oscarsays:
May25,2012at8:22am
khuramkhalil,
Seethispost:
Exceludf:Findnumbersinsum
Usethisformulatofindtherelatednametoeachvalue.
=INDEX(array,MATCH(value,array,0))
Reply

229.

Leighsays:
May27,2012at1:09pm
Thankssomuch!ThiswasEXACTLYwhatIwaslookingfor!Willbepostingalinktothisonmysite!
Reply

230.

Izabelasays:
June1,2012at4:31pm
Iwouldliketoa)matchthecellfromcolumnAwithvalueincolumnCandb)transferinformationfromthecellBnexttothecellAtocolumnDbasedonname
shownincolumnC.
Example:
ColumnABCD
AlanabsentHerbpresent
CarolpresentCarolpresent
DanielabsentDanielabsent
AnnapresentAlan
HerbpresentAnna
Thankyou!!
Reply

231.

Oscarsays:
June6,2012at9:01am
Izabela,

Reply
232.

Izabelasays:
June7,2012at1:43am
Oscar,
Youareawesome!Thankyousomuch!!!
Ilovethiswebsite!
Izabela
Thankyouallforsharing!!!

Reply
233. Extractingselecteddatawitharrayfunctions.|NewtonExcelBach,not(just)anExcelBlogsays:
June16,2012at5:39am
[...]towrapsomeadditionalfunctionsaroundthesolutionpresentedabove,suchasthatshownatTheGetDigitalHelpblog(modifiedversionshown[...]
Reply
234.

ApartmentSearchSpreadsheetsays:
June18,2012at3:32pm

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

46/73

11/14/2015
Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource
Thanksforthegreatinfoaboutvlookups.Iputittogooduseinthecreationofsomeofmyownspreadsheettemplates.Arrayformulassuredocomeinhandy
don'tthey!

Reply
235.

Keyessays:
June20,2012at10:17pm
HelloOscar,
Thankyouforpublishingthis,it'sbeenofgreathelp.I'mstillrunningintoproblems,particularlyonStep4(theSMALLfunction).Iamabletoproperlysortout
therelevantrecords,butwhenitcomestimetonesttheIFstatementwithintheSMALLfunction,Igetreturnsof#VALUE!onthenonrelevantrecordsand
#NUM!ontherelevantrecords.IfIdotheCtrl+Shift+Enter,theyallturninto#REF!.
Myformulaonthe1strowis=SMALL(IF(Form!$C$7=Data!$A$2:$A$15945,ROW(Data!$A$2:$A$15945)
MIN(ROW(Data!$A$2:$A$15945))+1,""),ROW(A1))
Thankyou!
Reply

236.

Oscarsays:
June21,2012at9:36am
Keyes,
Icantfindanythingwrongwithyourformula.Doesitworkifyouuseasmallerrange?Data!$A$2:$A$200
Reply

237.

franssays:
June26,2012at7:25pm
Oscar
Pleasehelp,youseemtobetheman.
iamtryingtodoalookupforatodaysdate,andthenoutputtingacoupleofcolumsdatafromthesamerow
Frans
Reply
Oscarsays:
July2,2012at9:37am
frans,

FormulaincellF1:
=TODAY()
ArrayformulaincellE3:
=IFERROR(INDEX($A$2:$C$11,SMALL(IF($F$1=$A$2:$A$11,MATCH(ROW($A$2:$A$11),ROW($A$2:$A$11)),""),ROW(A1)),
COLUMN(A1)),"")
238.

FLansays:
July3,2012at9:21pm
HIOscar
Suchagreatsiteyouhave!
Imtryingtounderstandtheformulawithtthevlookupwithhorizontalresults,butimtryingcalculateinexcel2007andigotanerror.Ireviewstepbystepand
whentheifformulaevaluatesthe$B$8=$B$2:$B$6theerrorcomesup...
anyideawhatamIdoingwronghere?
Reply

239.

Flansays:
July4,2012at3:57pm
Meagain
ImtryingtoisethevbaVlookupformulaonyourfile,andworksfinefor3horizontalvalues,butwhenItrywith4thormoreresultshorizontaltheformula

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

47/73

11/14/2015
Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource
returnsthe1stresultsagainandagain..
isthereawaytohavethisworkformoreresults?Upto20?

thanks
Reply
Flansays:
July4,2012at9:02pm
Alright
IfoundhowtomakeitworkbutnowIwanttocopytheformulaformynext1500rows,itsthereawaytoexcelcopythevbavlookuphavingasareference
valuethefirscolumnofeachlineforthevlookup,andddoitautomaticaly?
Oscarsays:
July14,2012at7:22pm
Flan,
=vbaVlookup(B14,$B$2:$C$6,2,"h")
$B$2:$C$6isanabsolutecellreferenceanddoesnotchangewhenyoucopythecellscontainingthearrayformula.
ButB14isanrelativecellreferenceandCHANGESwhenyoucopythecellscontainingthearrayformula.
Didmyanswerhelpyou?
240.

Harrysays:
July5,2012at10:10am
Hithanksforallyourhelp,thedataisalreadysortedhorizontallysodoesthismeanistillneedanarraycode?HowdoIdoaVlookuptobasicallysay...ifthis
boxsays"X"thendisplaythesevalues.....
Manythanks
Reply
Oscarsays:
July14,2012at7:16pm
Harry,
IfIunderstandyoucorrectlyyoustillneedtoentertheformulaasanarrayformula.
HowdoIdoaVlookuptobasicallysay...ifthisboxsays"X"thendisplaythesevalues.....
Canyoudescribeingreaterdetail?

241.

Gerrysays:
July28,2012at7:11pm
Oscar...Ijustwanttoshoutoutandsay"THANKS!".Iusedthearrayformulatolookupmultiplevalueshorizontally.ThiswasexactlywhatIwassearchingfor,
itsavedmehoursoftime.Thankyouforsharingyourknowledge.Gerry
Reply

242.

iettesays:
August4,2012at4:36am
Oscar..I'velearnedalotfromthiswebsite.Itisreallyagreathelp.There'sonemorescenariothoughthatIwantedtoresolve.Iseethattheformulaworksand
returnsXnumberofresultsbasedonthenumberoftimestheformulaiswrittenonXnumberofcells.Isthereaway(maybeinVBA)todeterminehowmany
resultswillbedisplayedbasedonhowmayinstances?Forexample,ifPenexists3times,andEraser2times,Idon'thavetoentertheformula3timestoviewthe
resultsforPen,andentertheformula2timestoreturntheresultsforEraser?
Result:
ColumnAColumnB
Pen$1.50
$1.30
$1.70
Eraser$2.00
$2.10
Reply
Oscarsays:
August6,2012at2:29pm
iette,
Thankyou!
Iguessyouwanttoavoiderrorvaluesandusevbatoenterthearrayformulainavariablecellrangedependingonhowmanyresultsthatwillbe
displayed?
IthinkitiseasiertousetheIFERRORfunction:
Howtoremove#numerrors

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

48/73

11/14/2015

243.

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

Jinsays:
August20,2012at11:11am
HIOscar,
Imadeexactlysameexcelsheetasyourexample(thefirstoneabove)andcopiedtheformula=INDEX($C$2:$C$6,SMALL(IF($B$8=$B$2:$B$6,
ROW($B$2:$B$6)MIN(ROW($B$2:$B$6))+1,""),ROW(A1)))inmysheetbutgot#value!.Exceltoldmethatitcouldnotread$B$2:$B$6in
$B$8=$B$2:$B$6.Idon'tknowwhatisgoingon.
Reply
Oscarsays:
August20,2012at3:16pm
Jin,
Didyouentertheformulaasanarrayformula?
Jinsays:
August20,2012at9:20pm
HiOscar,
Yes.Ibasicallycopiedandpastedsameexample(thefirstone)aswhatyouillustrated.CopiedandpastethearrayformulainC8butgotthe#value!issue.
Thisispuzzledmeformanyhours.
Oscarsays:
August22,2012at2:28pm
Isthereanerrorsomewhereinthecellrange$B$2:$B$6inyoursheet?
Jinsays:
August26,2012at9:18am
HiOscar,
Sorryforthelatereply.Theevaluateformulashowsthefollowing:
=INDEX($C$2:$C$6,SMALL(IF("pen"=#value,ROW($B$2:$B$6)MIN(ROW($B$2:$B$6))+1,""),COLUMN(A1)))
Whatdoyouthinkhappened?
Cheers
J
Oscarsays:
August27,2012at8:35am
Istillthinkyouforgottoentertheformulaasanarrayformula.IgetthesameerrorwhenIevaluatetheformula.
Howtocreateanarrayformula
Jinsays:
August27,2012at9:44am
HiOscar,
Thanksverymuch!Itisthearrayformula'sproblem.

244.

janisays:
August27,2012at4:47pm
HiOscar,
i'musingvbacode,itsworkingfinewheniretrievevalues[fetchedbyvbalookup]usingvlookuponsamesheet,butwhenitrytoretrievevalues[fetchedby
vbalookup]ondifferentsheetitreturnsonlyfirstvalue,forothervaluesitshowsnothing.thanksinadvance
Reply
janisays:
August29,2012at12:03pm
itsbeenfixed,sorryfortheinconvenience,thanksforthegreatformula

245.

SamSamsays:
September5,2012at9:21pm
Thankyouinadvanceforyourhelp,Ihopetoresolvethisissuesoon.Ihaveafile,CellsA1:A50havemultipleemailaddressesseparatedby"".OnColumnB,
Ihavealistof1,000emailaddresses,eachcelloncolumnBhasonlyoneaddress.WhatIamtryingtogetto,isonColumnC,toseewhichemailsfromcell
A1arefoundintheentirecolumnB.ThenwhichemailsfromcellA2arefoundintheentirecolumnB,andsoon.IfIneedtosendaspreadsheetpleaseletme
know.Thankyouforyourhelp.
Reply

246.

SamSamsays:

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

49/73

11/14/2015
Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource
September5,2012at10:44pm

Itrieditanditworked,thankyouverymuch!Iwasmakingitwaytoocomplicated.Sorryaboutaskingtwice,afterIfirsthitthe"addcomment",itloadedapage
witherroronitandIcouldnotseemyquestion.ThenIopenedanewpageandpostedagain.
Reply
247. vlookup()withmultipleresults?says:
September30,2012at6:16pm
[...]ROW($A$2:$A$7)MIN(ROW($A$2:$A$7))+1,""),ROW(A1)),COLUMN(A1))(it'sbetterexplainedonHowtoreturnmultiplevaluesusingvlookupin
excel|GetDigitalHelpMicrosoftExcelresource)Thethingisthattheforumlaissuperslow.Ittakesabout23secondsperrowinadocument[...]
Reply
248.

Taylorsays:
October9,2012at7:50pm
Thankyousomuch!I'veusedthissomanytimes,butI'vehitawallforthisnewapplicationI'mtryingtouse.
Inthisuse,I'mtryingtohavethe"IF"functionevaluateonsixpossibilities.Inthisexample,therearemultiplepeoplewhocanbethe"Lead"onanaccount,and
Iwantittoreturntheresultsonasubsetofsixofthoseaccounts.
Evaluatingtheformula,itallworksfineanddandyuntilthe"OR"function,whichturnsthesixarraysof{TRUE,FALSE,FALSE...},{FALSE,TRUE,
FALSE,...}...into{TRUE}insteadof{TRUE,TRUE,FALSE...}.
Itriedusingitwithonlyonecriterionandeverythingworksfine,soit'spullingtheresultsfromotherfilesjustfine.It'sjustthispartthat'sthetrouble!THANKS!
Hereistheformula:
{=INDEX('[FluxCapacitor.xlsx]PotentialLeads'!$AK$2:$AK$100,
SMALL(
IF(
OR($A$1='[FluxCapacitor.xlsx]PotentialLeads'!$AK$2:$AK$100,
$A$2='[FluxCapacitor.xlsx]PotentialLeads'!$AK$2:$AK$100,
$A$3='[FluxCapacitor.xlsx]PotentialLeads'!$AK$2:$AK$100,
$A$4='[FluxCapacitor.xlsx]PotentialLeads'!$AK$2:$AK$100,
$A$5='[FluxCapacitor.xlsx]PotentialLeads'!$AK$2:$AK$100,
$A$6='[FluxCapacitor.xlsx]PotentialLeads'!$AK$2:$AK$100),
ROW('[FluxCapacitor.xlsx]PotentialLeads'!$AK$2:$AK$100)
MIN(
ROW('[FluxCapacitor.xlsx]PotentialLeads'!$AK$2:$AK$100))+1,""),ROW(A1)),
COLUMN(A1))}
Reply
Oscarsays:
October12,2012at1:23pm
Taylor,
Changethis:
OR($A$1='[FluxCapacitor.xlsx]PotentialLeads'!$AK$2:$AK$100,
$A$2='[FluxCapacitor.xlsx]PotentialLeads'!$AK$2:$AK$100,
$A$3='[FluxCapacitor.xlsx]PotentialLeads'!$AK$2:$AK$100,
$A$4='[FluxCapacitor.xlsx]PotentialLeads'!$AK$2:$AK$100,
$A$5='[FluxCapacitor.xlsx]PotentialLeads'!$AK$2:$AK$100,
$A$6='[FluxCapacitor.xlsx]PotentialLeads'!$AK$2:$AK$100)
tothis
COUNTIF($A$1:$A$6,[FluxCapacitor.xlsx]PotentialLeads'!$AK$2:$AK$100)

249.

Billsays:
October18,2012at2:24pm
Oscar,
Iusedyour"Returnmultiplevalueshorizontally"formula,whichworkedgreatandgavememydesireddata,plusthe#num.Ithenaddedthe"Howtoremove
#numerrors"formula.ButnowIamnotgettinganydata,itappearstheformulaisviewingeverythingasanerror.WhereamIgoingwrong?Theformulais
below.
=IFERROR(INDEX($A$2:$L$7,SMALL(IF($B$9=$A$2:$A$7,ROW($A$2:$A$7)MIN(ROW($A$2:$A$7))+1,""),ROW(B2)),COLUMN(B2)),"")
Reply

250.

Billsays:
October18,2012at2:32pm
Oscar,
Sorry,Iwasablletofigureitout.Thanks.Greatwebsite.

Reply
251. UsemultipleconditionsinVlookup|GetDigitalHelpMicrosoftExcelresourcesays:
October31,2012at9:34am
[...]returnthefirstvalueeveniftherearemultiplematches,Imadepostafewyearsagoaboutthis:Howtoreturnmultiplevaluesusingvlookupin
http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

50/73

11/14/2015
Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource
excelVLOOKUP(lookup_value,table_array,col_index_num,range_lookup)=VLOOKUP(C2,A8:E17,3,FALSE)This[...]

Reply
252.

Donniesays:
November12,2012at4:00pm
Iwanttocopyacellvalueincludingitsformat.justlikecopyingacellandpasteittoanothersheetusing"pastespecial">"valuesandnumberformats".isthere
anyexcelformulatodothis?
Reply
Oscarsays:
November13,2012at2:25pm
Donnie,
AsfarasIknow,youcantcopytheformattingwithaformula.
YoucouldusetheTEXTfunctiontoformatavaluebutthatwontcopytheformatting.
http://www.techonthenet.com/excel/formulas/text.php
Donniesays:
November13,2012at2:51pm
ThanksOscar,
however,TEXTfunctionisfarfromwhatiexpectinas"Pastespecial".
anywayitriedyouvbaVlookup()functionanditreallygreat,howeverwithyourcodingisthereanypossibilitytostorethecellpropertiesintoanarray?
Oscarsays:
November15,2012at9:41am
Donnie,
Anudfcanonlyreturnavalue,itcannotchangetheformatting.
Donniesays:
November15,2012at2:34pm
thenijusthopeMicrosoftwoulddevelopedoraddsomeoptionfromtheirvlookup()functionthatwouldallowcellpropertiestobecopiedaswell.
thankyouverymuchfortheinformation..
greatsite,veryhelpful.
GodBless

253.

MBsays:
November14,2012at1:42pm
HowtoIlookupavalue(e.g.no12345)inmultiplesheets(i.e.whethernumber12345appearsinSheet1,Sheet2,Sheet3,Sheet4,Sheet5)inoneexcel
spreadsheet(i.e.wholedocument).
IsitaVlookupfunction?
WhatdoItype?
Reply
Oscarsays:
November15,2012at2:15pm
MB,
Vlookupacrossmultiplesheetsinexcel

254.

Michaelsays:
November19,2012at11:15am
Hi,HowdidtheRow(A1)returnedavalueof1?
Reply

255.

Mikesays:
November30,2012at7:44am
Oscar,
I'mhopingyoucanhelp.Iamtryingtogroupanumberofrowstogetherbythefirstcolumn,providingaunionofthecolumnvalues.Intheexamplebelow,we
arelookingtoVendorsV1V3tosellussomesubsetofproductsP1P5.
P1P2P3P4P5
V111

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

51/73

11/14/2015
V211
V11
V311

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

Oncetransformed,Iwouldliketoseethefollowing:
P1P2P3P4P5
V1111
V211
V311
Thankyouforyourhelp!
Reply
Oscarsays:
November30,2012at3:17pm
Mike,
readthispost:
Groupanumberofrowstogetherbythefirstcolumn
256.

JasonCsays:
December7,2012at1:26am
Oscargreatworkandassistance(Iappreciateallyourreplies).Ididntseethistypeofquestion,sorryifyoualreadydealtwithit.
Ihaveasetofdata,liketheoneyouusedintheoriginalexamplethatalsohasacolumnforthedateofthetransaction.IwouldlikemyIndextypeformulato
searchforboththemainitem(therep'sname)andalsoifthedateofthetransactionfallsinthedaterange).
StartDate:11/26/2012
EndDate:11/30/2012(bothenteredbytheuser)
Rep:John
Thentheresults,ineachrow/columnofthe'result'section(INDEXformularesults)wouldshowresultsforJohnthatoccurredfrom11/26to11/30(including
bothdates).
Thanksforanyhelpwiththeformulaforthat.
Jason
Reply
Oscarsays:
December7,2012at4:46pm
JasonC,
readthis:
Lookupmultiplevaluesindifferentcolumnsandreturnmultiplevalues

257. Lookupmultiplevaluesindifferentcolumnsandreturnasinglevalue|GetDigitalHelpMicrosoftExcelresourcesays:
December7,2012at4:24pm
[...]excel*.xlsxfileSBabu.xlsxLookupmultiplevaluesindifferentcolumnsandreturnmultiplevaluesJasonCasks:Ihaveasetofdata,liketheoneyouusedin
theoriginalexamplethatalsohasacolumnforthe[...]
Reply
258.

remosays:
December19,2012at2:11pm
ThanksaLot
itwasveryhelpfill
Reply

259.

Tyronsays:
December27,2012at3:53am
Thankyouforyourhelp.Ihavefoundthatthe"INDEX($A$2:$C$7,SMALL(IF($B$9=$A$2:$A$7,ROW($A$2:$A$7)MIN(ROW($A$2:$A$7))+1,""),
ROW(A1)),COLUMN(A1))"formulashoulddothetrick.IamcurrentlytryingtoapplythisformulatobothExcel2000andOOoCalc.
IhaveitworkinginCalcwiththeexceptionthatitshowsallentriesofmyorderforminsteadoftheonesthatindicateapurchase.
Ex.:
What'sgoingon:IhaveaninputcellofE2whichyouenteranumberforthepurchasesmadeofsomeproductsfromswisscolony.Inthefollowingexampleitis
one.Thisshoulddisplayallitemswithapurchasequantityofone.Iusedyourformulawithaslightmodificationofusing""toseperateinsteadof","sinceIam
applyingittocalc.
Results:
AC64915HOLIDAYPRETZELTRIO17.95$17.95
AC528112FUDGEBROWNIEPUFFS29.95$29.95
Err:504Err:504Err:504Err:504Err:504Err:504Err:504
Err:504Err:504Err:504Err:504Err:504Err:504Err:504
AC519115COCONUTMACAROONS17.95$17.95
Err:504Err:504Err:504Err:504Err:504Err:504Err:504

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

52/73

11/14/2015
Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource
AsyoucanseeIhavebeensuccessfulinlistingtheitemsthathaveapurchasequantityof1,butIhavenotfiguredoutwhyitislistingtheoneswithaquantityof
"0"asErr:504.

Hereismyexactformula:
INDEX(SwissColony2012.$B$4:$H$50SMALL(IF($E$2=SwissColony2012.$C$4:$C$50ROW(SwissColony2012.$C$4:$C$50)
MIN(ROW(SwissColony2012.$C$4:$C$50))+1"")ROW(A1))COLUMN(A1))
alsoinordertogettheitemsbeyondthefirstIhadtochangethe+1in"MIN"to+2forallcellsbelowthefirst.
YouwillhavetoexcusemyusageofcalcasImustbeabletoworkwellinbothexcelandcalcwiththeworkIdo.Iplanonimplementingthisincalcnextweek
astheholidaysarepreventingmyaccesstoexcel.
Thanksinadvance,
Tyron
Reply
Oscarsays:
December28,2012at4:17pm
Tyron,
Ifoundthis:
Code504:Parameterlisterror:Functionparameterisnotvalid,forexample,textinsteadofanumber,oradomainreferenceinsteadofacellreference
http://www.linuxtopia.org/online_books/office_guides/openoffice_calc_user_guide/openoffice_calc_General_error_codes.html
Canyouevaluate(stepbystep)aformulainCalc?
260.

Tyronsays:
January2,2013at2:08am
ThankyouOscarforreplyingsoquickly.Iwouldhavepostedsooner,butduetotheholidaymycomputerusehasbeenminimal.Ihavediscoveredtheproblem.
Unfortunatelyyoumustdothecntrlshiftreturnwithcalcaswell.Theexcelformulaworksgreat.Youhelpedmeagreatdeal.Thankyouagain
Tyron
Reply

261.

Charlessays:
January3,2013at3:01pm
HiOscar
Iamtryingtouseyourhorizontalformulatoindex/lookup195potentials,somyIFformulalookslikethisIF($B$220=$B$2:$B$196,ROW($B$2:$B$196)
MIN(ROW($B$2:$B$196))+1,"").Yetwhenireviewthecalculationstepstheformulabreaksdownatthe$B$220=$B$2:$B$196stage.Thecellaccurately
identifies$B$220butreturns#Valueforthe=$B$2:$B$196whichinturnerrorsthewholefunction.
BasicallyIamrunningapaymentreceivedreportwheremultiplepaymentscomeinformultipleinvoicesperitem.Andwewouldliketobreakitdownbythe
itemfroquickautoadjustments.Ican'tpostthedatahereduetothesensitivityoftheinfo,butifyoucouldassistthatwouldbegreat.Theitemsarenumbers,not
text,andIdon'tthinkthishasanythingtodowithitbutIamjustthrowingitouttheretomakesure.
Reply

262.

Oscarsays:
January4,2013at9:47am
Charles,
Thecellaccuratelyidentifies$B$220butreturns#Valueforthe=$B$2:$B$196whichinturnerrorsthewholefunction.
Howtocreateanarrayformula
Reply
Charlessays:
January4,2013at2:41pm
Idon'tseehowcreatinganarrayformulahastodowithanIFformulanotreadingthecorrectvalue.Ihaveeverythingverbatum,buttheitseemsunableto
understandtolookforavaluein$B$2:$B$196
Oscarsays:
January7,2013at8:27am
Charles,
Ifyoucompareavaluetoanothervalueyourapproachworks.
Comparingavaluetomultiplevaluesrequiresthatyouentertheformulaasanarrayformula.

263.

abigailsays:
January15,2013at3:27pm
iamusingyour'vlookupreturnmultiplerecordssheet'andwhenienterthesamearrayformulaintothemysheet,iget#ref!forcellswhereishouldbereturning
aresult.whatdoyousuggest?IdiduseCSEtoenterthearray.thanks!

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

53/73

11/14/2015
Reply

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

abigailsays:
January15,2013at6:14pm
ActuallyscratchthatIfiguredouthowtogetittowork...Iamusingyourvlookupmultiplerecordssheetinmyownsheet,andhaveitsothatallerrors
areblank,etc...myproblemnowisthatihave~5000rows,whichmakesthefunctionextremelyslow...doyouhaveanysuggestions?
Oscarsays:
January18,2013at9:43am
abigail,
Itriedtheformulawitha"5000rowsand36columns"tableanditisquitefast.Ihaveafairlyslowcomputer.
Howslowisextremelyslow?
abigailsays:
January22,2013at3:52pm
wheniusetheformulaaswellasthe=iserrorblankfunctionitisaround10storeturn
264.

Hahalesays:
January16,2013at5:16am
HiOscar,
Thankyousomuchforpostingsthesewonderfultutorials.Ithassavedmesomuchtime.
IhaveacasethatIjustdonotknowhowtodealwith.
Datainclude
StudentId,course,grade,citizenshipmark,teacher
12345,english,a,s,s,ms.smith
23456,english,c,o,s,mr.lu
12345,art,b,o,s,mr.johnson
12346,enlgish,a,o,o,mr.lu
soiflookingupwiththestudentid12345howcanexcelreturnalltheclassestakenbythestudentwithalltheinformationinthesameorderinarow
result
12345english,a,s,s,ms.smith,art,b,o,s,mr.johnson
Reply
Oscarsays:
January18,2013at11:08am
Hahale,
Icantsolveitentirely.

Theyareinreverseorder.
Downloadexcel*.xlsxfile
Hahale.xlsx
Hahalesays:
January19,2013at1:08am
Thankyousomuch.
Icandoa"pastespecial"valuesandreadjustthecolumns.
Hahalesays:
January19,2013at2:03am
HiOscar,
Ihaveplayingwiththeexcelfilethatyou'vecreatedforme.
Oneproblem
theteachernamems.smithshoulduptwiceifshouldhavebeenms.smithforenglishandmr.johnsonfortheartclass.
Howtocorrectthat?
Thankssomuch.
Oscarsays:
http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

54/73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource
January21,2013at12:38pm

Hahale,
youareright!
Hereisthecorrectedformula:
=INDEX($B$2:$F$5,SMALL(IF(($A9=$A$2:$A$5)*($B$2:$F$5<>"|"),MATCH(ROW($B$2:$F$5),ROW($B$2:$F$5)),""),COLUMN(A1)),
1/(SMALL(IF($A9=$A$2:$A$5,MATCH(ROW($B$2:$F$5),ROW($B$2:$F$5))+1/(MATCH(COLUMN($B$2:$F$5),COLUMN($B$2:$F$5))+1),""),
COLUMN(A1))INT(SMALL(IF($A9=$A$2:$A$5,MATCH(ROW($B$2:$F$5),ROW($B$2:$F$5))+1/(MATCH(COLUMN($B$2:$F$5),
COLUMN($B$2:$F$5))+1),""),COLUMN(A1))))1)
Hahalesays:
January23,2013at2:15am
You'reagenius!!!Thankyousomuch.
265.

Willsays:
January16,2013at11:39pm
Oscar,
Thankssomuchforyourwebsite!It'sfantastic...
IjustdownloadedtheVlookupvba3docandit'sgiveingme#VALUE!errors.Ihaven'tediteditatallyet.IwonderedwhatImightbemissing.Ienabledthe
macros...
Reply
Oscarsays:
January18,2013at1:00pm
Will,
IdownloadedVlookupvba3.xlsandIget#VALUEerrorsalso.Thecellsshowcorrectvaluesuntiliclick"Enableediting"inexcel2010.Iamnotsure
why.Hereishowyoufixit:
1.Selecta#valuecell
2.Clickinformulabar
3.PressandholdCTRL+SHIFT
4.PressEnter
5.Releaseallkeys
Willsays:
January18,2013at5:10pm
Thanks!!!

266.

Willsays:
January18,2013at5:24pm
IcopiedandpastedthisintoanothersheetIwantedtouseitinandIamgettingthe"#NAME?"errorwhenIfollowtheinstructionswothoutspaces.Iamusing
yourUniqueFilterVBAandit'sworkinggreat!
Thisismyformula:
=vbaVlookup(M2,N:O,2)
ButwhenIchangeitto(Includingthespacebetween","and"N:0"itworks.Isthatnormal?
=vbaVlookup(M2,N:O,2)
Reply
Oscarsays:
January21,2013at9:32am
Will,
IincludedspacesintheudfvbaVlookupandIamnotgettinga#NAME?error.(Excel2010)

267.

jonsays:
January21,2013at6:11am
Myformulaisthis=INDEX(Sheet1!$B$2:$B$14788,SMALL(IF(Sheet2!A2=Sheet1!$A$2:$A$19247,ROW(Sheet1!$A$2:$A$19247)
MIN(ROW(Sheet1!$A$2:$A$19247))+1,""),COLUMN(B1)))
AllworksbutwhenIcopyitfromcellB2toI2Iget#REFerror.
FromB2toE2isokbutfromF2toI2is#REFerror
Pleasehelp...
Reply

268.

Muthusays:

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

55/73

11/14/2015
January21,2013at7:15am

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

Thankyouforshowingtheexcelawesomecapability.
Reply
269. Nomorearrayformulas?|GetDigitalHelpMicrosoftExcelresourcesays:
February4,2013at11:12am
[...]Thisformuladerivesfromoneofthemostpopularblogpostshere:Howtoreturnmultiplevaluesusingvlookup[...]
Reply
270.

Shrisays:
February11,2013at11:55am
Willthisworkwithnamedranges?
Reply
Oscarsays:
February11,2013at12:24pm
Shri,
yes,youcanconvertthecellreferencestonamedranges.

271.

Allyshasays:
February11,2013at11:34pm
Thisisbrilliant.Thanksforsharing!!
Reply

272.

Manusays:
February12,2013at4:25pm
Hey,hiiamnewtoVBAandarrayandsocuriousaboutitasitcouldhelpmesomuchinmyexcel.canyoupleasesuggesthowtostart
Reply
Oscarsays:
February13,2013at9:30am
Manu,
Hereisagreatlink:
http://www.cpearson.com/excel/arrayformulas.aspx
Manusays:
February13,2013at11:44am
ThanksOsacar,Iwilllookafterit.Hopeitwillservemycurosity

273.

Jeremysays:
February12,2013at9:09pm
Hi,
Iamtryingtoreturnavaluethatmeetsmultiplecriteriaandamhavingtroubledoingso:
WorkstreamFirstMoveGroupName
XMD1AAAAA95
Nice2AAAAA001
Nice3AAAAA002
Safe4AAAAA504
XMD3AAAAA505
Nice2AAAAA509
XMD4AAAAA510
Safe1AAAAA547
Nice3AAAAA548
Nice2AAAAA557
XMD4AAAAA559
Nice1AAAAA564
Nice2AAAAA565
IamtryingtogetthedatatoshowallnamesthatarepartofNiceandpartoffirstmovegroup3.
I'vebeenplayingaroundwithnestedif'sandvlookupsandnothingseemstobeworking.
Reply
Oscarsays:
February13,2013at10:41am
Jeremey,

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

56/73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

ArrayformulaincellF4:
=INDEX($C$2:$C$14,SMALL(IF(($A$2:$A$14=$F$1)*($B$2:$B$14=$F$2),MATCH(ROW($A$2:$A$14),ROW($A$2:$A$14)),""),ROW(A1)))
274.

Krishnasays:
February13,2013at3:19pm
HiOscar,
Thanksforthisformulaandforthiswebsite,foundgoodusefulstuffsherewithgreatclarity
gotstuckwiththisformula,itworksfinetill905lines,butgetsstuckupinline906,dontknowwhy?Wishicouldsharemyexcelfile,whichwouldgiveyou
clearpicture..
=INDEX($B$2:$B$5000,SMALL(IF($D2=$A$2:$A$5000,ROW($A$2:$A$5000)MIN(ROW($A$2:$A$5000))+1,""),COLUMN(A1)))
Reply
Oscarsays:
February14,2013at9:27am
Krishna,
uploadyourfilehere:
http://www.getdigitalhelp.com/excelconsulting/

275.

Krishnasays:
February15,2013at3:15pm
HiOscar,
ReceivedYourfilewithsolution.Thanksforthequickhelp.
Reply

276.

Petersays:
February18,2013at9:22pm
Oscar,
Whatagreatsite!Iamtryingtofindasolutionthatwillshowvlookupmultipleresultsvertically(likeyoushowabove)butitinsertsanewrowinsteadoffills
thenextexistingrow.ThiswayIcanlisttheresultslikebelow:
ReferenceResult
Pen1.70
1.50<newrowinsertedbasedonmultipleresult
Eraser2.00
PaperClip1.70
Paper1.50
Isthispossible?
Asabonus,Ialsoneedtoreturnmultipledatapoints.(Forexample,PenwouldreturnPrice,QuantityandModelnumberhorizontally)
Thanks!
Peter
Reply

277.

Marykesays:
February22,2013at10:57am
Thanksalotyousavedmealotoftimetryingtofigurethisoutmyself.Pleasecontinuethegoodwork!
Maryke
Reply

278.

Andysays:
March5,2013at6:49am

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

57/73

11/14/2015
Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource
ThanksOscar!Thisisanawesomeguidetoarrayfunctions.Iactuallyunderstandyourexplanation,andwasabletocreatemyownarrayfunctionnowinsteadof
justcopy/pasting(thenusingtrialanderror)!
Thanksagain!

Reply
Oscarsays:
March6,2013at11:06am
Andy,
Iamhappyyoulikeit!
279.

war123says:
April15,2013at11:52am
Hi,
I'musinganotherformulaandIgetREFERENCEERROR.HowcanIsolvedit.Here'smyformula:
=INDEX(Test!$B$4:$I$439,SMALL(INDEX(($K$3=Test!$B$4:$I$439)*(MATCH(ROW(Test!$B$4:$I$439),ROW(Test!$B$4:$I$439)))+
($K$3Test!$B$4:$I$439)*1048577,0,0),ROW(A4)),COLUMN(A4))
1584ZF92BRSA173699.7307467
1584ZF92MTSA23.05030
1584ZF92RBRB6162859.150304828
1584ZF92RBSA133544.6905815
#REF!#REF!#REF!#REF!#REF!#REF!#REF!#REF!
#REF!#REF!#REF!#REF!#REF!#REF!#REF!#REF!
#REF!#REF!#REF!#REF!#REF!#REF!#REF!#REF!
Reply
Oscarsays:
April16,2013at7:55am
war123,
Theformulayouarereferingtoishere:Nomorearrayformulas?
YoucanusetheIFERRORfunctiontoremove#REFerrors.
=IFERROR(INDEX(Test!$B$4:$I$439,SMALL(INDEX(($K$3=Test!$B$4:$I$439)*(MATCH(ROW(Test!$B$4:$I$439),ROW(Test!$B$4:$I$439)))+
($K$3Test!$B$4:$I$439)*1048577,0,0),ROW(A4)),COLUMN(A4)),"")

280.

SAMsays:
April20,2013at10:02pm
THISISHELPALOTFORMETOUNDERSTANDTHEVLOOKUP......THANKUSIR
Reply

281.

Ricksays:
April22,2013at7:04am
Hello,
IwannauseVlookupformorethan2millionrows.Butitsnotpossibletocopy&pasteagaintheformulasforeachrow.SowhatdoIdo??
Reply
Oscarsays:
April22,2013at9:38am
Rick,
IwannauseVlookupformorethan2millionrows.
Excelallowsyoutohavemaximum1,048,576rows.
Butitsnotpossibletocopy&pasteagaintheformulasforeachrow.SowhatdoIdo??
Whyisntitpossible,canyoudescribeingreaterdetail?

282.

Alansays:
April23,2013at5:22pm
Ihave13,000rowreferencenumbers,intheformulabelow$O$7,thatIwanttocompareto600,000rowsofdata.TheHorizonalfunctionworksgreat,youarea
genius,buthowdoIcopytheformulawithouthavingtochangetheabsolutereferenceeachtime(yikes13,000rows)?Itriedchangingtheformulausinga
relativereference$O7butthentheformuladidnotwork.(YesIdid(cntrl+candcntrl+v)+enter(once).
=IFERROR(INDEX($E$7:$E$593288,SMALL(IF($O$7=$L$7:$L$593288,ROW($L$7:$L$593288)MIN(ROW($L$7:$L$593288))+1,""),
COLUMN(A1))),"")
Thanksamilliongazillionurgreat!
Reply
Oscarsays:

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

58/73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

April24,2013at10:09am
Alan,
Thefollowingpictureshowshowtocopythehorizontalfunction.Youusethesametechniquewiththearrayformula.

Ihopethishelps,thankyouforcommenting!
283.

AllainPsays:
April24,2013at5:12pm
Thisformulaworksgreat.Yourcodecanonlypullupto3items,andIneedittopulla4th?(HELP?
Canyouhelpmewiththis?
Reply
Oscarsays:
April25,2013at1:25pm
AllanP,
1.Selectthefirstcell
2.Typetheformulaintheformulabar
3.PressandholdCTRL+SHIFTsimultaneously
4.PressEnter
5.Releaseallkeys
6.Copycellandpastethecell(nottheformula)tothethreecellstotheright
7.Selectallfourcells.
8.Doubleclicktheblackdot(seepictureabove)
Ihopethismakessense.

284.

TFsays:
April24,2013at10:59pm
I'mtryingtouseyourarrayformula,whichworksgreatuntilthevaluethatIamtryingtolookupchanges.Hereisasampleofthedata.
NameIDResultsIDTracking#
Test1123555123555
Test2123565123565
Test3123456444
Test4456456678
Test5456789999
Test6789121154
TheformulaenteredintotheResultscolumnis:
{=IFERROR(INDEX($P$2:$P$7,SMALL(IF($M2=$O$2:$O$7,ROW($O$2:$O$7)MIN(ROW($O$2:$O$7))+1,""),ROW(S1))),"")}
TheonlywayIgetthecorrectresultsforTest4andTest5istochangethelastpartfromROW(S4)andROW(S5)backtoROW(S1),whichisapain
consideringthenumbersfortherealdatachangesevery23rows.
Itriedchangingitto:
{=IFERROR(INDEX($P$2:$P$7,SMALL(IF($M2=$O$2:$O$7,ROW($O$2:$O$7)MIN(ROW($O$2:$O$7))+1,""),ROW(S$1))),"")}
andthisduplicatesthefirstvaluefound,suchasTest1,Test2,andTest3willallhavearesultof555.ThenTest4andTest5bothsay444.Soitwillnotprogress
tothenextnumber.
IalsotriedusingROW($S1)andIgetthesameresultsasshowinthetestabove.NothingIhavedonetothisworks.
Isthereawaytocorrectthisandtogetittocontinuetosearchtheentirearray?
Reply

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

59/73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

TFsays:
April24,2013at11:05pm
Thatsampledatalookswierd,soIwantedtouploaditalittlecleaner.ColumnSisanemptycolumn.
TheseareResultswiththisformula:
{=IFERROR(INDEX($P$2:$P$7,SMALL(IF($M2=$O$2:$O$7,ROW($O$2:$O$7)MIN(ROW($O$2:$O$7))+1,""),ROW(S1))),"")}
LMN
NameIDResults
Test1123555
Test2123565
Test3123
Test4456
Test5456
Test6789
OP
IDTracking#
123555
123565
456444
456678
789999
121154
Thesearetheresultswiththisformula:
{=IFERROR(INDEX($P$2:$P$7,SMALL(IF($M2=$O$2:$O$7,ROW($O$2:$O$7)MIN(ROW($O$2:$O$7))+1,""),ROW(S$1))),"")}
LMN
NameIDResults
Test1123555
Test2123555
Test3123555
Test4456444
Test5456444
Test6789999
OP
IDTracking#
123555
123565
456444
456678
789999
121154
Oscarsays:
April25,2013at2:02pm
TF,

ArrayformulaincellN2:
=IFERROR(INDEX($P$2:$P$7,SMALL(IF(M2=$O$2:$O$7,MATCH(ROW($O$2:$O$7),ROW($O$2:$O$7)),""),COUNTIF($M$2:M2,M2))),"")
Downloadexcel*.xlsxfile
TF.xlsx
285.

TFsays:
April25,2013at8:43pm
ThankyousomuchOscar...thatworked!Iamspeechless...Ineverwouldhavethoughtofthat!
Thanks!!
Reply

286.

Joshsays:
May2,2013at9:22pm
Hi,
IhadissueswiththiswhenrunningtheModulevbaLookup.Itwouldcontinuedisplayingthefirstvalueuntiltheformulaeventuallyexcludedthefirstresult

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

60/73

11/14/2015
Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource
fromthearray,thenfinallymovingtothenextresult.Example:

ABCD
1JohnA
2MaryB
3PeteC
4JohnD
5LukeE
6JohnF
JohnAAADDF
(TheresultideallywouldofbeenJohnADF.Instead,I'mhavingtocontinuetoextendtheformulatogettheresult.)
Reply
Joshsays:
May2,2013at9:35pm
Sorry,Ifigureditout!
However,anewproblemhasarisen...
ThethingsIamlookinguparesometimeslargestringsoftext(it'sasurvey)anditseemsfromtestingthatacertainamountoftextwillbreaktheformula.
Oscarsays:
May6,2013at8:58am
Josh,
Excelversion?Howmuchisacertainamountoftext?
Canyouprovideanexample?
287.

Paulsays:
May30,2013at5:58am
Hi,
Iusedthenonarrayformula.Iamtryingtoreverseengineerthisformulaandunderstandit.Whatistheateriskfor?
i.e.=INDEX($C$2:$C$5,SMALL(INDEX(($B$9=$B$2:$B$6)*(MATCH(ROW($B$2:$B$6),ROW($B$2:$B$6)))+($B$9$B$2:$B$6)*1048577,0,0),
COLUMN(A1)))
Reply
Oscarsays:
May30,2013at9:24am
Paul,
theasteriskmultiplesthearrays.
Example{0,1,1}*{0,1,0)returns{0,1,0)
0*0=0
1*1=1
1*0=0
Paulsays:
May30,2013at6:21pm
ThanksOscar!Ireallyappreciateyourtakingthetimetoassistme.
Iamusingtheformulafortwodifferentcolumns.Thetwocolumnsareverydifferentdata.AsfarasIcantell,theformulaispullingthedatafromeach
columninthesameorderthatitisonthesourcesheet.Isthereanyinstancewherethiswillnothappen?
Forexamlpe:
Pen$1.50101313
Eraser$2.00120512
Paper$1.70092112
Pen$1.70093012
PaperClip$3.00050811
Results:
Pen$1.50101313
$1.70093012
#NUM!#NUM!
WhatIneedisforthedatecolumntocorrespondcorrectlywiththecostcollumn.Itappearsthattheformulaispullingeverythinginorder,butIam
curiousifthereisanythingthatcouldcauseittopullinadifferentsequence?
Thankssomuchforyourhelp!

288.

Paulsays:
June5,2013at7:45pm

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

61/73

11/14/2015
Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource
Onthe2ndformula,theproblemIamhavingahardtimeunderstandingis:

Match(ROW($B$2:$B:$6),ROW($B$2:$B$6))
Inthisexample,ROW($B$2:$B$6)isequalto2.Thereforwouldn'ttheformulainasensebeMATCH(2,2)whichresultsin#N/A?
Reply
Oscarsays:
June11,2013at8:07am
Paul,
ROW($B$2:$B$6)returnsthisarray:{23456}
Match(ROW($B$2:$B:$6),ROW($B$2:$B$6))
becomes
Match({23456},{23456})
andreturns{12345}
However,ifyou"EvaluateFormula"thisarrayformula:=ROW($B$2:$B$6).Excelshowsonlythefirstvalue2butbelieveme,itreturnsanarray:{23
456}
289.

Alvinsays:
June11,2013at6:00am
[IMG]http://i43.tinypic.com/e7du7b.jpg[/IMG]
Checkthisouthopesomeonecanhelpme.Iwanttolookupthosewiththevalueof"1"butinsteadoftheactualvaluebeinglookeduptheonenearesttotheleft
isbeinglookedup0,10,20,30instead!Thanksinadvancetothosewhocanhelp!
Reply
Alvinsays:
June11,2013at6:02am
http://postimg.org/image/sv2g7fq47/
Sorrythepicturedidnotgetposted.

290.

DanielEkwehsays:
June15,2013at4:30pm
ThankyouAll,youguyshavemademyday.Igotmyproblemsolvedandonlyoweyouguysakiss.
Reply

291.

Victorsays:
June25,2013at10:27am
Thankyouverymuchforthisone!
Reply

292.

Shanesays:
August19,2013at7:53pm
HiOscar,
Thanksforthisgreatguide..thisismyfirstforayintoARRAYformulaandIhavespentseveralhourslookingthroughyourvariousguides.Now,I'vestumbled
acrossastrangeproblem.ImagineColumnAisfullofAccountnumbersmuchlike"id"inthesampleabove,wheretheremaybeseveralinstancesofeach
uniqueaccountnumber.Now,Iamabletoreturnthe(multiple)desiredvaluesinColumnsBandCforeachinstanceoftheaccountnumberinColumnA...
exceptfortheveryfirstaccountnumber.
So,imagineforonlythe"id"value123,Rows11and12return#NUM!errorsdespiteRow10correctlyreturning123,ANNA,andactiveinCellsA10,B10,and
C10respectively.ButifIweretoenter124or125,Rows11and12wouldcorrectlypopulatewiththedesiredinformation(if,intheaboveexample,theyeach
hadmultipleinstancesaswell).Sorryifthisisconfusing,butbasicallytheformulaisworkingfineforeachAcct#I'vetriedexceptwhicheverAcct#appearsfirst
(ormoreappropriately,rightundertheheader.Hereistheformulabelowforreference:
{=INDEX($A$3:$C$23,SMALL(IF($B$28=$A$3:$A$23,ROW($A$3:$A$23)MIN(ROW($A$3:$A$23))+1,""),ROW(A1)),COLUMN(A1))}
Inthiscase,$B$28istheAcct#Iaminterestedin.Iappreciateanyhelpinthisissueandpleaseletmeknowifyourequirefurtherexplanationtomakemy
problemclearer.
Thanks,
Shane
Reply
Oscarsays:
August29,2013at1:37pm
Shane,
Sorry,Iamnotfollowing.Uploadanexamplefile.

293.

vinayaksays:
August20,2013at11:13am

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

62/73

11/14/2015
Thanksalotoscar!!

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

Reply
Oscarsays:
August29,2013at1:31pm
vinayak,
thanksforcommenting!
294.

Abigailsays:
August20,2013at8:19pm
Hi
Yoursuggestionsonusingarraystosearchinagroupofdatatoreturnmultiplerows/columns/matchesworkswell,butIamtothepointwhereIhavetoomuch
dataandthearrayformulaistooslow.Doyouhaveasuggestiononhowtogetthesameresultsbutquicker?
Abigail
Reply
Oscarsays:
August29,2013at1:22pm
Abigail,
Thanksforyourfeedback.
Didyoutrythecustomfunction?
Returnmultiplevaluesverticallyorhorizontally(vba)

295.

JeffreyCarpentersays:
October8,2013at6:52pm
Thispostisawesome.Wasabletoaltertheformulastosavemesignificanttimetryingtocomparetwolistswithnamevariations...
Thanks!
Reply
Oscarsays:
October9,2013at8:24am
JeffreyCarpenter,
Thankyou!

296. AratherinvolvedIFfunction!says:
October29,2013at10:33am
[]Itisexactlythesameasinthesourcebutdoesn'tseemtobeworking?Source:http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevalues
usingvlookupinexcel/ItriedINDEX(Sheet2!A:A,MATCH(Sheet1!A1,Sheet2!C:C,0))alsoandthatdoesn'tworkplusdon't[]
Reply
297.

Jacksays:
October29,2013at7:14pm
ThisisthebestpostI'vefoundonExcel,IwasgettingtiredlookingforahorizontalVlookupandmultiplevalues!AndIthoughtIknewmyaroundExcel.
ThanksOscar!
Reply
Oscarsays:
October30,2013at9:58am
Jack,
thankyouforcommenting!

298.

JOSEGARZAsays:
November6,2013at11:59pm
HelloOscar,ihaveaquestionforyou,imwantchtoindexacolumnandreturnavalue,butimwanttheonehavecertainwordinthesamefilebutothercell,
excample
ABCD
1truck/kms/type/oil
296/145/change/shell
396/150/recharge/shell
496/155/change/chevron
596/158/recharge/shell
imwantthemostnewentryof96andhavingintheCcolumndeword"change"
thisimwantthe4fileonly:
6Truck/96

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

63/73

11/14/2015
7Kms/155
8Type/change
9Oil/chevron

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

howicandothis?
Thankyouforthehelpandtime!
Reply
Oscarsays:
November8,2013at2:02pm
JOSEGARZA,

ArrayformulaincellB7:
=INDEX($B$2:$B$5,MATCH(LARGE(IF((B6=A2:A5)*(B8=C2:C5),B2:B5,""),1),B2:B5,0))
ArrayformulaincellB9:
=INDEX($D$2:$D$5,MATCH(LARGE(IF((B6=A2:A5)*(B8=C2:C5),B2:B5,""),1),B2:B5,0))
Downloadexcel*.xlsxfile
JoseGarza.xlsx
JOSEGARZAsays:
November8,2013at5:55pm
wooahhhhhhhhhhhhhhhhhh!!!!
AMAZING!!urgenius!!
greatingsfromMexico!!!
JOSEGARZAsays:
November8,2013at11:46pm
Hello,meagain,sorryfordisturb,thisfunctiondoesn'tworkindifferentsheets?imhaveasheetcalled"oil"andtheother"truck96"imputin"truck
96"sheetthis:
Turck:
Kms:
Type:
Oil:
imputtheformulatopickthedatafromthesheet"oil"wherearetherecordsandtrow#NUMerrorinthecell.
Oscarsays:
November11,2013at9:19am
JOSEGARZA,
trythis:
ArrayformulaincellB7:
=INDEX(oil!$B$2:$B$5,MATCH(LARGE(IF((B6=oil!A2:A5)*(B8=oil!C2:C5),oil!B2:B5,""),1),oil!B2:B5,0))
299.

JOSEGARZAsays:
November8,2013at6:06pm
lastquestion,whoisthebestwaytomakethiscase:
imhaveainonesheetthis:
"Truck96"
#Tire:
Brand:
Kms:
inotherSHEET"tires"imhavealistalthetiresimbuy,butimdoesnterasetheoldtiresforhavearecord,butimhave4trucksejemple:
truck/#tire/Brand/Kms:

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

64/73

11/14/2015
9615Michellin54
9716Pirelli89
9678Bridgeston60

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

imwanttohaveonlythenewsettirechange,inthiscaseinthesheet"truck96"iwanttoonlyhavethis
#Tire:78
Brand:Bridgeston
Kms:60
Vlookup?Match?whatisthebestoptiontodothis?
Reply
300.

Bibasays:
November27,2013at12:19am
Savedmefromlongandexhaustingreports'generatingdays!!
Thankyouveryverymuch!
Reply
Oscarsays:
November29,2013at1:02pm
Biba,
thankyouforcommenting!

301.

Juanchosays:
December7,2013at11:37pm
Hello,andthanksyouinadvance!
Ipleaseneedyourhelp.
Inyour"Returnmultiplevalueshorizontally"case,ineedthesamethingbutisteadigotlike:
Pen1$1.50
Pen2$4.30
Eraser1$2.50
Pen3$0.25
Paper1$4.05
Ineedall"Pen"inahorizontalrowlike:
Pen$1.50$4.30$2.50
Itriedtousethe"*"withyourformulabutdidntwork.
Ifispossibletodoit?andhow?
Thankyou!
Reply
Oscarsays:
December9,2013at1:01pm
Juancho,

ArrayformulaincellC8:
=INDEX($C$2:$C$6,SMALL(IF(ISNUMBER(SEARCH($B$8,$B$2:$B$6)),ROW($B$2:$B$6)MIN(ROW($B$2:$B$6))+1,""),COLUMN(A1)))
Download*.xlsxfile
Vlookupandreturnmutliplecorrespondingvaluesiftextstringisfoundinacolumn.xlsx
302.

Olawalesays:
December9,2013at3:30pm
HelloOscar,
pleaseineedurhelp.I'vegottenaresults/gradescomputationsheetforaparticularacademicsession.Everythinghasbeensortedoutbutforonlythis:
Example
ABCDEFGH

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

65/73

11/14/2015
1124John856045307240
2A1B2D4F6A1E5
3129Ken603558422065
4B2F6C3E5F6B2
5145Ann879521254862
6A1A1F6F6D4B2

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

itgoesdownliketheabove.
hereisthechallengeIwanttomakeatranscriptsheetwhereidno(124,129,145)willbeinadropdownlist,onceselected,needsitreturnallcorresponding
cells.
ExpectedOutputif124isselectedfromthedropdownlist,iwantcellsB1:H2returnedasisfoundhere.
NotecolumnAisidnocolumn
Bisthenamecolumn
C:Histhecolumnforscoresobtainedwithattendantgradesbelow.
hopethisisclearenough...thanks
Reply
Oscarsays:
December11,2013at3:11pm
Olawale,
Download*.xlsxfile
Olawale.xlsx
Olawalesays:
December17,2013at11:07pm
Thanksverymuch.Youareagenius.Sosorryforthedelayedresponse.hadtoattendRCCGCongressinNigeria.
303.

Juanchosays:
December14,2013at12:18am
Hello,thankyousomuchforyourresponse,itwasveryveryusefullandworkspefectly.
Nowihaveanotherquestion:
Ihave2columns:
Column1:
Pen
Glass
Paper
Chair
InColumn2:
Pen1
Pen2
Eraser2
Pen3
Table4
Ineedincolumn2toputifthearticlesexistsornotincolumn1:
Theresultisgoingtobelike:
Column2:
Pen1YES
Pen2YES
Eraser2NO
Pen3YES
Table4NO
Thanks!
Reply
Oscarsays:
December17,2013at10:23am
Juancho

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

66/73

11/14/2015

304.

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

Hollysays:
January7,2014at7:14am
HiOscar,
Thisformulaworkedgreat,thankyousomuch.
Onlywhenicopytheformulaintothecellsbelowitiscountingthesamevalueeverytimeinsteadofreturningthe#numerror.
Amidoingsomethingwrong?Idontwantitrepeatingthesamevalueeachtime.
Thanks.
Reply
Oscarsays:
January10,2014at10:38am
Holly,
Idontthinkyouenteredtheformulaasanarrayformula.
Ifyoudid,canyoutellmewhichformulayouareusing?
Hollysays:
January10,2014at12:43pm
Thanksforreplyoscar,butIactuallyfiguredoutawaytodowhatIneededusinganotheroneofyourpages!
Alsowantedtosaythankyousomuchforwhatyoudo,yoursiteisanamazinghelpandsomuchbetterthananythingelseoutthere.
Holly

305. Copyarangeofcellstoanotherworksheetifcriteriaismetsays:
January9,2014at8:39pm
[]havehadtodosimilarproceduresinthepast.IhavefoundHowtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcel
resourcetobemosthelpfulandIthinkyoucantweakhisformulatomatchexactlywhatyou[]
Reply
306.

Luissays:
January11,2014at4:30am
Excellenttutorial,veryhelpful,thankGodforpeoplelikeyouwhoarewillingtoshare.
IamhavinganissueandIwashopingyouwouldbesokindtohelpme,hopefullytheimageIamattachingcanhelptoexplainthesituation.
Thankyousomuch!
subirfotos
Reply

307.

Luissays:
January11,2014at4:35am
heresthepicture
http://s8.postimg.org/sx6b5ocmt/Sin_titulo.jpg
Reply
Oscarsays:
January14,2014at3:36pm
Luis,
Ibelieveitispossible.

308.

Karensays:
January14,2014at7:03pm
REReturnmultiplevalueshorizontally
Oscar,thissolvedmyproblemforthemostpartsothankyou!Canyoutellmeisthereatweakthatcanbemadethatwouldonlyreturn1ofeachinstance
horizontaly.E.gifyouhavemultiple"1.50"s,"4.30"sand"0.25"sforPenthatitwouldjustreturn3columnsie:
Pen0.251.504.30
Thanksinadvanceforyourhelp!
Reply
Oscarsays:
January27,2014at10:24am
Karen,

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

67/73

11/14/2015

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

ArrayformulaincellC10:
=INDEX($C$2:$C$8,SMALL(IF(($B$10=$B$2:$B$8)*NOT(COUNTIF($B$10:B10,$C$2:$C$8)),ROW($B$2:$B$8)MIN(ROW($B$2:$B$8))+1,""),
COLUMN(A1)))
Karensays:
January27,2014at9:43pm
Thankyousomuch,appreciatethetimeyoutooktohelp!
309. findlastvaluebeforelimitinunsortedlistsays:
January17,2014at10:04pm
[]Ihavefoundthispostnearlyinvaluablewhenextractingdatafromanunsortedlist:Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelp
MicrosoftExcelresource[]
Reply
310.

Joshuasays:
January19,2014at3:03am
Youarethemaster!Thankyousomuchforthispost!

Reply
311. FindingtheNextMatch(text)says:
January23,2014at6:34pm
[]ThispagehasproveninvaluabletomeinlookingupandreturningvalueswhereMATCHusuallyfails:Howtoreturnmultiplevaluesusingvlookupin
excel|GetDigitalHelpMicrosoftExcelresourcePleasenotethatthisformulaiswhat'sknownasanarrayformulasoifyoumightseeaslowdown[]
Reply
312.

Anandsays:
February19,2014at9:40am
HiOscar,
YourpostisprobablythemostusefulonefromanyotherpostsavailableonVlookupFunctions.I'mnotatechieandi'mstillintheprocessofacquaintingmyself
onExcelfunctions.I'vetriedtocopypasteyouraboveformulatoreproducemultiplecorrespondingvaluesvertically.However,Iwasunsuccessful.Hereiswhat
ineed
NameStatus
AnandLeave
RahulPresent
KamalLeave
AndtheresultsinadifferentTab.
LeaveAnand
Kamal
Reply
Oscarsays:
February20,2014at9:32am
Anand,
Perhapsyouforgottoentertheformulaasanarrayformula?

313.

Mohammedsays:
March26,2014at7:05am
HeyOscar,
Thanksfortheinformation,useditseveraltimesanditsbeenreallyhelpful.
However,IhavethisnewmodelthatIneedtousethisbutwithaslightmodificationwhichIcan'tseemtobeabletogetitwork.
InsteadofhavingtheIFfunctioncomparesayifa"Pen",I'dlikeittohaveasortofrangecheck.ForexampleIwantallthedatesthatfallwithinOct13andDec
13.ItriedusinganANDfunctionwithintheIf,butitdoesntseemtowork.
I'dappreciateyourhelp.
Thanksinadvance

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

68/73

11/14/2015
Reply

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

Oscarsays:
March27,2014at12:53pm
Mohammed,

ArrayformulaincellG5:
=INDEX($D$2:$D$7,SMALL(IF(($F$5=$C$2:$C$7)*($G$2<=$B$2:$B$7)*
($G$3>=$B$2:$B$7),MATCH(ROW($C$2:$C$7),ROW($C$2:$C$7)),""),ROW(A1)))
Downloadexcel*.xslxfile
Howtoreturnmultiplevaluesverticallyv2.xlsx
314.

Fionasays:
April3,2014at5:00pm
IhaveusedtheformulatoReturnmultiplerecordsanditworksreallywell,howevermydatasetisquitelargeanditisslowingdownthespreadsheetsoitis
nearlyimpossibletoworkwith(Iamusingtheformulatoreturnmultiplerecordsfromaseparateworksheetwithabout7000rows.
Formulais:
=INDEX(Formatted!$A$3:$Q$7000,SMALL(INDEX(($B$1=Formatted!$A$3:$Q$7000)*(MATCH(ROW(Formatted!$A$3:$Q$7000),
ROW(Formatted!$A$3:$Q$7000)))+($B$1Formatted!$A$3:$Q$7000)*1048577,0,0),ROW(C1)),COLUMN(C1))
Anyadvicemuchappreciates!
Reply

315.

Charlessays:
April24,2014at6:20am
Isthereawaywhereicanperformaloosevlookup?i.e.IamlookingforPenbutiamwillingtoaccept'APen(Red)'and'123Pen123'?.
Reply
Oscarsays:
April25,2014at9:34am
Charles,
Yes,thereis.
Searchforatextstringandreturnmultipleadjacentvalues
Charlessays:
April27,2014at5:06pm
Dude,thanksmanyouareawesome!

316.

Nitikasays:
April28,2014at11:36am
HiOscar,
Thankyouverymuchforthismultiplevlookupvalueexample.IthelpedmealotintheexceliwasworkingandIlovedtheexplanationproved.
Thanksalot..
Greatstuff:)
Reply

317.

Tacasays:
April29,2014at10:54pm
HiI'mhavingahardtimeusingthisfunctionto"join"twotables.ThisiswhatI'mtryingtodo:
Ihavetwotables,forexample.Thefirsttableisthis:
idname
123ANNA
124jhun
125liza
129roy
789mary
123ANNA

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

69/73

11/14/2015
Andthesecondtableisthis:
idstatus
123active
124separated
125active
129separated
789separated
123separated

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

WhatfunctioncanIuseinordertomakesureforID123Idon'tget"active"statusbothtimes.
WhatI'vebeendoingsofaristhis(thethirdcolumnbelowconsistsof=VLOOKUP(A2,$H$2:$I$7,2,FALSE)
idnamestatus
123ANNAactive
124jhunseparated
125lizaactive
129royseparated
789maryseparated
123ANNAactive
Canyoupleasehelpme?IwouldattachafiletoshowyouexactlywhatI'vebeendoingbutI'mnotgivenanoptiontoattach.
Reply
Oscarsays:
April30,2014at1:46pm
Taca,

ArrayformulaincellI3:
=INDEX($E$3:$E$8,SMALL(IF(G3=$D$3:$D$8,MATCH(ROW($E$3:$E$8),ROW($E$3:$E$8)),""),COUNTIF($G$3:G3,G3)))
Downloadexcel*.xlsxfile
Taca.xlsx
318.

Tacasays:
April30,2014at5:05pm
Thisisamazing,thankyousomuchOscar!!!
Reply

319.

Stefineesays:
June3,2014at12:58pm
Invaluableadviceandshare!
Havetriedtomanipulateyourformulaesbutnotgettingveryfar:
Thisistryingtogetitworkingonthesamesheet..returnavaluewhere'X'searchcriteriaisbasedinthefirstcolumn.Ihavedonethearray
CTRL+SHIFT+ENTERbutgeta#NUM!returned..
=INDEX($A$4:$D$7,SMALL(IF($B$9=$D$4:$D$7,ROW($D$4:$D$7)MIN(ROW($D$4:$D$7))+1,""),ROW(C3)),COLUMN(C3))
Sceario:WhatIwanttoachieveisIhaveaSheet1withsourcetabledatawhichIwanttosplittheresultsintonewSheets
Sheet1:Sourcetabledata
ABCDE...etc
AAA1axX
BBB2a
CCC3bX
DDD4bX
Sheet2:ReturnvaluecolumnACwhereColumnD='X'
Sheet2:ReturnvaluecolumnACwhereColumnE='X'...etc
Yourinsightwouldbegreatlyappreciated!
Reply
Stefineesays:
June3,2014at4:05pm
SODslaw,Ihavefigureditout!IfonlyIinvestedtheextratimebeforeposting!
=INDEX(Summary!$A:$E,SMALL(IF($D$1=Summary!$E:$E,ROW(Summary!$E:$E)MIN(ROW(Summary!$E:$E))+1,""),
ROW(Summary!E1)),COLUMN(Summary!E1))

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

70/73

11/14/2015

320.

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource
Thanksforawesomeforum!:)

Brandonsays:
June11,2014at11:03pm
DearOscar,
Ihavebeentryingalldaytofigureouthowtoreturnmultiplerecordsfrom"multiplesheets(sameformat)"byreferencingyourpostsofthe"returnmultiple
records"and"Vlookupacrossmultiplesheetsinexcel"andIcouldn'tfigureitoutstill.Couldyoupleasehelpmetofigurethisout?
Brandon
Reply

321.

Alexsays:
July26,2014at5:02pm
HiOscar,
Firstofall,thankyouforyourtutorialsandtheyhavebeenveryhelpfulatmywork.
Inyouroriginalexampleonstationery,whatwouldtheformulabeifIaddedanothercolumnincolumnC,saybrandswherethefirstpenisAA,secondisBB
andtherestoftheitemsCC.IwouldliketheanswertobePenBBprice1.70andtheother"".IwouldlikemyanswerverticallyonC9andC10.Thanksin
advance.
Reply

322.

Alicesays:
August1,2014at7:47am
HelloOscar,
Thanksalotforyourwebsite,itisveryhelping.
Ihaveusedtheformulainoneonmydocument
=IFERROR(INDEX(data!$C$4:$C$1783,SMALL(IF(Sheet1!$A2=data!$B$4:$B$1783,ROW(data!$B$4:$B$1783)
MIN(ROW(data!$B$4:$B$1783)+1),""),COLUMN(data!A1))),"")
anditisworkingforalmostallofthemhowevertherearefewthathave"0,00"insteadoftheactualtext.ThedatabaseisfinesoIdon'tunderstandwhysome
don'tworkliketherest...anyidea?
Thanks,
Alice
Reply

323.

Tacasays:
September7,2014at8:08pm
Hi,
Ihaveatable(seebelow)andI'mtryingtocreateatablebelowit(notfinished,butIaddedthe2columnsasanexample).Mygoalistocreateoneformulain
onefieldandjustbeabletodragitwithoutchanginganything.I'vetriedacombinationofsum(if)andmatchandothersbutnothingseemstowork.Sofar,thisis
whatI'vecomeupwithC15={SUM(IF(MONTH($A$3:$A$10)=$A15,$B$3:$B$10,0))}
However,thisonlyworksforanswersincolumnC,Ican'tdragittoothercolumnswithoutchangingtheformula.Canyoupleasehelpme?
NewOld
ABCABC
1/1/201431126356
1/2/201462217
2/3/20144267234
2/4/2014412241
3/5/201421721
3/6/201461635
5/7/2014218667
7/8/2014416712
NewOld
ABCABC
1January91
2February1
3March8
4April
5May21
6June
7July4
Tatjana

Reply
324. FixGettingRefErrorVlookupWindowsXP,Vista,7,8[Solved]says:
November27,2014at3:22am
[]Howtoreturnmultiplevaluesusingvlookupinexcel|GetTheVLOOKUPfunctionisdesignedtoreturnonlythecorrespondingvalueofthefirst
instanceofalookupvalue.Butthereisaworkaroundtoidentifymultiple[]
Reply
325. FixGettingRefErrorInVlookupWindowsXP,Vista,7,8[Solved]says:
December13,2014at2:39pm
http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

71/73

11/14/2015
Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource
[]Howtoreturnmultiplevaluesusingvlookupinexcel|GetTheVLOOKUPfunctionisdesignedtoreturnonlythecorrespondingvalueofthefirst
instanceofalookupvalue.Butthereisaworkaroundtoidentifymultiplematches.[]

Reply
326. LOOKUPfunction|GetDigitalHelpMicrosoftExcelresourcesays:
January9,2015at5:21pm
[]Thelookupfunctionwontreturnmultiplematches.Thereisaworkaround,seethislink:Howtoreturnmultiplevaluesusingvlookup[]
Reply
327.

AlexisJamessays:
March20,2015at4:40pm
Howdoesthisworkwithaselectionfromalistboxonauserform?
Alexis
Reply

328.

Marlonsays:
May4,2015at2:44pm
Datatable:
BoxIDSkuSkuSkuSkuLocations
A123123456123Shop
b123456789123dock
C789456789456whse
D123123store1
Resultsneeded
Searchsku:123boxIDlocationsrecords
ashop3
bdock2
dstore12
Reply

329.

Marlonsays:
May4,2015at3:04pm
followup
Reply

330.

the_nibssays:
June5,2015at5:58pm
HiOscar,Iamnewtoexcelandarraysinparticular..Whatisthe"1048577"forinyournonarrayformula?IthinkIfollowtherestofitbutIdon'tunderstand
wherethisnumbercamefrom.
Thanks!
Reply
Oscarsays:
June12,2015at7:55am
the_nibs
Whatisthe"1048577"forinyournonarrayformula?
Thereare1048576rowsinexcel,ifIuseavalueabove1048576theformulareturns#refforvaluesthatIdontwanttoextract.

331.

Manisays:
September23,2015at7:52am
HiOscar
Yourhelpisamazinginthisregard.ButIhavesomecomplicatedtableasIexplainedbelow:
Imaginewehavethreecolumn:1somedatareferringtothebrandofequipment
2summarydescriptionofeachbrandinpreviouscolumn
3dateofdeliveryofeachequipment
Ihaveacheckboxinmyexcelforeachmonth.andalsocomboboxforbrands.byselectingonebrandandonemonth,Iwanttoshowthelistofdelivered
equipmentonthatmonth.
HowcanIdothis?
Thanksamillion
Reply
Name(required)

LeaveaReply
Howtoaddvbacodetoyourcomment:
[vb1="vbnet"language=","]
yourcode

Mail(willnotbepublished)(required)
Website

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

72/73

11/14/2015
[/vb]

Howtoreturnmultiplevaluesusingvlookupinexcel|GetDigitalHelpMicrosoftExcelresource

Howtoaddapicturetoyourcomment:
Uploadpicturetopostimage.org
Addpicturelinktocomment.
Howtouploadafile
Uploadfile

Notifymeoffollowupcommentsviaemail
Subscribe

Welcome!IamOscarandheretohelpyou!Feelfreetocommentandaskexcelquestions.
DontforgettoaddmyRSSfeedandsubscribetonewblogarticlesbyemail.
Search
Populararticles

1.Howtoreturnmultiplevaluesusingvlookup

2.Howtoextractauniquedistinctlistfromacolumn

3.Howtocreateadynamicchart(excel2003and2007)

4.Matchtwocriteriaandreturnmultiplerows

5.Howtocreatealistofrandomuniquenumbers

6.Createdependentdropdownlistscontaininguniquedistinctvalues

7.Createadropdownlistcontainingonlyuniquedistinctalphabeticallysortedtextvaluesusingexcelarrayformula

8.Concatenateacellrangewithoutvba

9.Autorefreshapivottable

10.Exceludf:Lookupandreturnmultiplevaluesconcatenatedintoonecell

http://www.getdigitalhelp.com/2009/10/25/howtoreturnmultiplevaluesusingvlookupinexcel/#explain

73/73

You might also like