Index & Match to produce multiple results from multiple column under 2 criteria

pulut

New Member
Joined
Sep 5, 2014
Messages
2
Hello Everyone!

I've been trying to get several values from several column which meets 2 criteria , concatenate them in one cell
ABCDEFGHIJKLM
105/09/201406/09/201407/09/2014
2MarketAppleripefiji$0.60GrapesgreenSweet$1.00lemonripesour$0.25
3FarmOrangeripeNaval$0.50lemonripesour$0.25Appleripefiji$0.60
4FriendsGrapesgreenSweet$1.00Appleripefiji$0.60GrapesgreenSweet$1.00
5Vendorlemonripesour$0.25OrangeripeNaval$0.50lemonripesour$0.25
6
7LocationMarketFruitsGrapesGreenGreen
8Date06/09/2014Fruits(Grapes)-green-sweet-$1.00

<tbody>
</tbody>



on cellE7=INDEX(B2:M5,MATCH(B7,A2:A5,0),MATCH(B8,B1:M1,0))
cellF7 =INDEX(B2:M5,MATCH(B7,A2:A5,0),MATCH(B8,A1:M1,0))
cellG7 = I don't know how to get "sweet"

Questions
1.How do I do index & match for cell G7 to get the result as "sweet"
2.Why do I need to change the col array from B1 to A1 in order to get "green"
3. How do I concatenate these 4 values from several columns that share the same date?

Thank you so much for your help!
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Here's a solution.


Excel 2010
ABCDEFGHIJKLM
15/9/20146/9/20147/9/2014
2MarketAppleripefiji$0.60GrapesgreenSweet$1.00lemonripesour$0.25
3FarmOrangeripeNaval$0.50lemonripesour$0.25Appleripefiji$0.60
4FriendsGrapesgreenSweet$1.00Appleripefiji$0.60GrapesgreenSweet$1.00
5Vendorlemonripesour$0.25OrangeripeNaval$0.50lemonripesour$0.25
6
7LocationMarketFruitsGrapesgreenSweet$1.00
8Date6/9/2014Fruits(Grapes)-green-Sweet-$1.00
Sheet3
Cell Formulas
RangeFormula
E7=INDEX($B$2:$M$5,MATCH($B$7,$A$2:$A$5,0),MATCH($B$8,$B$1:$M$1,0))
E8="("&E7&")-"&F7&"-"&G7&"-"&DOLLAR(H7)
F7=INDEX($B$2:$M$5,MATCH($B$7,$A$2:$A$5,0),MATCH($B$8,$B$1:$M$1,0)+COLUMNS($F$7:F7))
G7=INDEX($B$2:$M$5,MATCH($B$7,$A$2:$A$5,0),MATCH($B$8,$B$1:$M$1,0)+COLUMNS($F$7:G7))
H7=INDEX($B$2:$M$5,MATCH($B$7,$A$2:$A$5,0),MATCH($B$8,$B$1:$M$1,0)+COLUMNS($F$7:H7))
 
Upvote 0
Thank you Bruce. I am wondering is it possible for me to directly concatenate the combination from E7 to H7 in one cell that would yield result of E8 rather than do it at individual cells and concatenate later?

Again thank you so much for your help
 
Upvote 0

Forum statistics

Threads
1,213,560
Messages
6,114,306
Members
448,564
Latest member
ED38

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