Index Match help

davidmor

New Member
Joined
Nov 20, 2020
Messages
30
Office Version
  1. 365
Platform
  1. Windows
Hi

i posted a messy question yesterday and have got to a point where certain things make sense but still cant get the index match to work as i want.

on the sheet below i need cells AC, AD and AE to report the information from cells A, I and U.

at present the example is blank but on the report i run this has unrequired information in it.

i have tried using an index match formula which Fluff helped with for another similar sheet, and for some reason it wont pull the date, customer or destination across.

is there a way that i can get the sheet to compare AA to F and then report the information from cell D into AC, Cell a into AD and Cell U into AE.

Thanks for any assistance


Declarations sheet chep.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAE
1CustomerDespatch DateShipping ReqNo of palletsDestinationshipping refQtyDateCustomerDestination
2Park Cakes Ltd Oldham12/08/20223558754Oldham3558754#N/A#N/A
3Park Cakes Ltd Oldham12/08/20223438581Oldham3438582#N/A#N/A
4Park Cakes Ltd Oldham12/08/20223438581Oldham34797826#N/A#N/A
5Lindt & Sprungli UK Ltd12/08/202234797826Coventry3557775#N/A#N/A
6Park Cakes Ltd Oldham12/08/20223557772Oldham35655315#N/A#N/A
7Park Cakes Ltd Oldham12/08/20223557772Oldham3565901#N/A#N/A
8Park Cakes Ltd Oldham12/08/20223557771Oldham3569073#N/A#N/A
9Mars Wrigley Confectionery UK Ltd12/08/202235655315NELSON35690819#N/A#N/A
10Park Cakes Ltd Bolton12/08/20223565901Bolton3569182#N/A#N/A
11TATA CONSUMER PRODUCTS GB LIMITED12/08/20223569073Stockton-on-Tees3570116#N/A#N/A
12Finlay Beverages12/08/20223569081Pontefract3570433#N/A#N/A
13Finlay Beverages12/08/20223569083Pontefract3571131#N/A#N/A
14Finlay Beverages12/08/20223569081Pontefract35716711#N/A#N/A
15Finlay Beverages12/08/20223569081Pontefract3572712#N/A#N/A
16Finlay Beverages12/08/20223569081Pontefract35729124#N/A#N/A
17Finlay Beverages12/08/20223569081Pontefract35730914#N/A#N/A
18Finlay Beverages12/08/20223569081Pontefract35731423#N/A#N/A
19Finlay Beverages12/08/20223569081Pontefract35731520#N/A#N/A
20Finlay Beverages12/08/20223569081Pontefract35731620#N/A#N/A
21Finlay Beverages12/08/20223569081Pontefract3573208#N/A#N/A
22Finlay Beverages12/08/20223569081Pontefract35732421#N/A#N/A
23Finlay Beverages12/08/20223569082Pontefract3573465#N/A#N/A
24Finlay Beverages12/08/20223569081Pontefract3573132#N/A#N/A
25Finlay Beverages12/08/20223569082Pontefract3573362#N/A#N/A
26Finlay Beverages12/08/20223569081Pontefract3573401#N/A#N/A
27Fox's Biscuits Limited12/08/20223569182West Yorkshire3573431#N/A#N/A
28Fox's Biscuits Limited12/08/20223570112West Yorkshire34792517#N/A#N/A
29Fox's Biscuits Limited12/08/20223570112West Yorkshire34797926#N/A#N/A
30Fox's Biscuits Limited12/08/20223570112West Yorkshire3491613#N/A#N/A
31Magna Specialist Confectioners Ltd12/08/20223570433Telford3573373#N/A#N/A
32Fox's Biscuits Limited12/08/20223571131West Yorkshire3573381#N/A#N/A
MASTER
Cell Formulas
RangeFormula
AA2:AA453AA2=UNIQUE(FILTER(LEFT(F2:F10000,8),F2:F10000<>""))
AE2:AE453AE2=INDEX(U2:U10000,MATCH(AA2#&"*",F2:F10000,0))
AB2:AB32AB2=SUMIFS(I:I,F:F,AA2)
AD2AD2=INDEX(A$2:A$10000,MATCH(AA2&"*",F$2:F$10000))
AD3:AD32AD3=INDEX(A$2:A$10000,MATCH(AA3&"*",F$2:F$10000,0))
Dynamic array formulas.
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Why are you using LEFT(F2:F10000,8) in the first formula? I can see no reason for it and it will be the reason (or at least part of) why the other formulas are failing.

See if this does what you need.

(post edited with revised formula)
Book1
AAABACADAE
1shipping refQtyDateCustomerDestination
2355875412/08/2022Park Cakes Ltd OldhamOldham
3343858212/08/2022Park Cakes Ltd OldhamOldham
43479782612/08/2022Lindt & Sprungli UK LtdCoventry
5355777512/08/2022Park Cakes Ltd OldhamOldham
63565531512/08/2022Mars Wrigley Confectionery UK LtdNELSON
7356590112/08/2022Park Cakes Ltd BoltonBolton
8356907312/08/2022TATA CONSUMER PRODUCTS GB LIMITEDStockton-on-Tees
93569081912/08/2022Finlay BeveragesPontefract
10356918212/08/2022Fox's Biscuits LimitedWest Yorkshire
11357011612/08/2022Fox's Biscuits LimitedWest Yorkshire
12357043312/08/2022Magna Specialist Confectioners LtdTelford
13357113112/08/2022Fox's Biscuits LimitedWest Yorkshire
Sheet2
Cell Formulas
RangeFormula
AA2:AA13AA2=UNIQUE(F2:INDEX(F:F,MATCH(1E+100,F:F)))
AB2:AB13AB2=SUMIFS(I2:I10000,F2:F10000,AA2#)
AC2:AE13AC2=INDEX(A2:U10000,MATCH(AA$2#,F2:F10000,0),{4,1,21})
Dynamic array formulas.
 
Upvote 0
Solution
Hi Jason

thanks for the response, i was using the Left as its what was in a previous sheet but the Ref nos were slightly different.

what you have given works great.

would there be a way that i could exclude certain customers from this or is it easier just to filter them out ?

Thanks Again
 
Upvote 0
You could possibly use the filter function within the formulas to exclude some customers. Do you have a list of the customers to exclude in your sheet somewhere?
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,239
Members
452,621
Latest member
Laura_PinksBTHFT

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