Call Column for the data from the same group

jerung3000

New Member
Joined
Mar 2, 2021
Messages
3
Office Version
  1. 2019
Platform
  1. Windows
Hi all..

I need to call Column for the data that from the same group in that column.

Fruits Group.xlsx
ABCDEFGH
1FruitGroup
2GroupAGroupBGroupCGroupDBananaGroupA
3BananaOrangeGrapeBlueBerryLycheeGroupA , GroupD
4LycheeAppleOrangeSoursopStrawberyGroupA
5PomegranatePomegranateKiwiPomegranateOrangeGroupB , GroupC
6StrawberyMangoAvocadoLycheeAppleGroupB
7PomegranateGroupA , GroupB , GroupD
8MangoGroupB
9GrapeGroupC
10KiwiGroupC
11AvocadoGroupC
12BlueBerryGroupD
13SoursopGroupD
Sheet1
Cell Formulas
RangeFormula
H2H2=INDEX($B$2:$E$2,SUMPRODUCT(MAX(($B$3:$E$6=G2)*(COLUMN($B$3:$E$6))))-COLUMN($B$2)+1)


Already tried with this formula
Excel Formula:
=INDEX($B$2:$E$2,SUMPRODUCT(MAX(($B$3:$E$6=G2)*(COLUMN($B$3:$E$6))))-COLUMN($B$2)+1)

but this formula only call one group name only.

Hopefully someone can help me to resolve this..

Thank you..
 

Attachments

  • 123.png
    123.png
    21.6 KB · Views: 2

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Hi & welcome to MrExcel.
How about
+Fluff 1.xlsm
ABCDEFGH
1FruitGroup
2GroupAGroupBGroupCGroupDBananaGroupA
3BananaOrangeGrapeBlueBerryLycheeGroupA, GroupD
4LycheeAppleOrangeSoursopStrawberyGroupA
5PomegranatePomegranateKiwiPomegranateOrangeGroupB, GroupC
6StrawberyMangoAvocadoLycheeAppleGroupB
7PomegranateGroupA, GroupB, GroupD
8MangoGroupB
9GrapeGroupC
10KiwiGroupC
11AvocadoGroupC
12BlueBerryGroupD
13SoursopGroupD
Master
Cell Formulas
RangeFormula
H2:H13H2=TEXTJOIN(", ",,IF($B$3:$E$6=G2,$B$2:$E$2,""))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Solution
Thanks for your help Fluff.

I already tried the formula that you gave in the forum..But I didn't get the correct value like you do..

Fruits Group.xlsx
ABCDEFGH
1FruitGroup
2GroupAGroupBGroupCGroupDBanana#VALUE!
3BananaOrangeGrapeBlueBerryLychee#VALUE!
4LycheeAppleOrangeSoursopStrawbery#VALUE!
5PomegranatePomegranateKiwiPomegranateOrange#VALUE!
6StrawberyMangoAvocadoLycheeApple#VALUE!
7Pomegranate#VALUE!
8Mango#VALUE!
9Grape#VALUE!
10Kiwi#VALUE!
11Avocado#VALUE!
12BlueBerry#VALUE!
13Soursop#VALUE!
Sheet1
Cell Formulas
RangeFormula
H2:H13H2=TEXTJOIN(", ",,IF($B$3:$E$6=G2,$B$2:$E$2,""))
 
Upvote 0
It needs to be confirmed with Ctrl Shift Enter & not just Enter.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,001
Messages
6,122,648
Members
449,092
Latest member
peppernaut

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