Xlookup or Match and Index

neasds

New Member
Joined
Nov 16, 2009
Messages
43
I need to do a Vlookup in a column to get results on year and camp number in the following table: Suggestions?

YearRegionAreaCamp_NumberCamp_Name
2010Northeast25U32003Ahoskie
2011Northeast25U32003Ahoskie
2012Northeast25U32003Ahoskie
2013Northeast25U32003Ahoskie
2014Northeast25U32003Ahoskie
2015Northeast25U32003Ahoskie
2016Northeast25U32003Ahoskie
2017Northeast25U32003Ahoskie
2018Northeast25U32003Ahoskie
2019Northeast25U32003Ahoskie
2020Northeast25U32003Ahoskie
2010North Central13U32001Alamance East
2011North Central13U32001Alamance East
2012North Central13U32001Alamance East
2013North Central13U32001Alamance East
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
You haven't said what you want returned, but how about.

+Fluff New.xlsm
ABCDEFGH
1YearRegionAreaCamp_NumberCamp_Name
22010Northeast25U32003AhoskieYear2012
32011Northeast25U32003AhoskieCampU32001
42012Northeast25U32003AhoskieResultAlamance East
52013Northeast25U32003Ahoskie
62014Northeast25U32003Ahoskie
72015Northeast25U32003Ahoskie
82016Northeast25U32003Ahoskie
92017Northeast25U32003Ahoskie
102018Northeast25U32003Ahoskie
112019Northeast25U32003Ahoskie
122020Northeast25U32003Ahoskie
132010North Central13U32001Alamance East
142011North Central13U32001Alamance East
152012North Central13U32001Alamance East
162013North Central13U32001Alamance East
Main
Cell Formulas
RangeFormula
H4H4=XLOOKUP(H2&"|"&H3,A2:A16&"|"&D2:D16,E2:E16)
 
Upvote 0
Thank you so much Fluff.

To be explicit, I am looking for items in another workbook that matches the year and camp name and inserting them in column f.
 
Upvote 0
Can you please use the XL2BB add-in to post some sample data from both books, along with expected results?
 
Upvote 0
Forgive me for my ignorance but is this what you asked for?

History of Placements.xlsx
L
9
SSP1132_201105


Historical Results.xlsx
ABCDEFGHIJKLMNOPQRSTU
1YearRegionAreaCamp_NumberCamp_NameScripture_Funds_GoalScripture_ReceiptsPercentage_GoalChurchGideonCardFaith_FundDesignated_CampDesignated_ServiceAuxiliary_ScriptureScripture_Fund_BalancePresentationsDonorsGideonsAuxiliaryGid_PWTAUX_PWT
22010Northeast25U32003Ahoskie $ 22,660 $ 27,073 119.47 $ 15,486 $ 5,728 $ 5,249 $ - $ - $ 610 431433916
32011Northeast25U32003Ahoskie $ 28,470 $ 18,924 66.47 $ 8,878 $ 3,575 $ 5,812 $ - $ - $ 659 231433515
42012Northeast25U32003Ahoskie $ 19,510 $ 19,197 98.4 $ 7,324 $ 4,360 $ 6,834 $ - $ - $ 680 251263315
52013Northeast25U32003Ahoskie $ 19,740 $ 29,588 149.89 $ 16,932 $ 7,555 $ 4,424 $ - $ - $ 678 351792912
62014Northeast25U32003Ahoskie $ 31,630 $ 20,171 63.77 $ 9,634 $ 4,247 $ 5,037 $ 625 $ 628 221053013
72015Northeast25U32003Ahoskie $ 21,680 $ 17,429 80.39 $ 7,284 $ 5,285 $ 4,358 $ - $ - $ 503 221102711
82016Northeast25U32003Ahoskie193001403172.7441332755613240049012812811
92017Northeast25U32003Ahoskie $ 15,985 $ 18,137 113.46 $ 7,285 $ 4,870 $ 5,487 $ - $ 495 182610
Camps
 
Upvote 0
Thanks for that, but I also need to know what the other workbook looks like & what results you want.
 
Upvote 0
History of Placements.xlsx
ABCDEFG
1YearRegionAreaCamp_NumberCamp_NameG_PWTAux_PWT
22011Northeast25U32003Ahoskie302100
32011North Central13U32001Alamance East38201000
42011North Central13U32002Alamance West3500
52011North Central09U32006Alleghany County147290
62011South Central17U32004Anson County109100
72011North Central12U32007Archdale50100
82011West05U32172Ashe North535100
92011West05U32087Ashe South506250
102011Far West02U32010Asheville71725
112011Far West04U32013Avery County20050
122011Southeast19U32017Bladen County5150
132011West05U32020Boone207300
142011Far West03U32022Brevard11500
152011Southeast19U32024Brunswick County665100
162011Far West02U32026Buncombe East00
172011Far West02U32011Buncombe North1000200
182011Far West02U32025Buncombe West39000
192011Far West04U32028Burke East30050
202011Far West04U32005Burke North400100
212011Far West04U32027Burke West156100
222011North Central13U32030Burlington1000
232011South Central16U32031Cabarrus East625150
242011South Central16U32169Cabarrus Northwest2000
252011South Central16U32038Cabarrus South400400
262011South Central16U32032Cabarrus West650200
272011West05U32033Caldwell South501150
282011North Central11U32034Caswell County601100
292011West07U32035Catawba East7000
302011West07U32018Catawba West00
312011West08U32008Charlotte East4750
322011West08U32040Charlotte North1363100
332011West08U32039Charlotte Northeast1100
342011West08U32009Charlotte South221170
352011West08U32042Charlotte Southeast301215
362011West08U32043Charlotte Southwest4180
372011West08U32041Charlotte West4010
SSP1132_201105


I want to lookup up the G_PWT and Aux_PWT amounts and place them in the correct years and camps.
 
Upvote 0
Ok, how about

+Fluff New.xlsm
ABCDEFGHIJKLMNOPQRSTU
1YearRegionAreaCamp_NumberCamp_NameScripture_Funds_GoalScripture_ReceiptsPercentage_GoalChurchGideonCardFaith_FundDesignated_CampDesignated_ServiceAuxiliary_ScriptureScripture_Fund_BalancePresentationsDonorsGideonsAuxiliaryGid_PWTAUX_PWT
22010Northeast25U32003Ahoskie2266027073119.47154865728524900610431433916  
32011Northeast25U32003Ahoskie284701892466.4788783575581200659231433515302100
42012Northeast25U32003Ahoskie195101919798.473244360683400680251263315  
52013Northeast25U32003Ahoskie1974029588149.89169327555442400678351792912  
62014Northeast25U32003Ahoskie316302017163.77963442475037625628221053013  
72015Northeast25U32003Ahoskie216801742980.3972845285435800503221102711  
82016Northeast25U32003Ahoskie193001403172.7441332755613240049012812811  
92017Northeast25U32003Ahoskie1598518137113.467285487054870495182610  
Camps
Cell Formulas
RangeFormula
T2:T9T2=XLOOKUP($A2&"|"&$D2,SSP1132_201105!$A$2:$A$100&"|"&SSP1132_201105!$D$2:$D$100,SSP1132_201105!F$2:F$100,"",0)
U2:U9U2=XLOOKUP($A2&"|"&$D2,SSP1132_201105!$A$2:$A$37&"|"&SSP1132_201105!$D$2:$D$37,SSP1132_201105!G$2:G$37,"",0)
 
Upvote 0
Another option, if the year & camp only occur once, would be

=SUMIFS(SSP1132_201105!F:F,SSP1132_201105!$A:$A,$A2,SSP1132_201105!$D:$D,$D2)
 
Upvote 0

Forum statistics

Threads
1,215,634
Messages
6,125,938
Members
449,275
Latest member
jacob_mcbride

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top