INDEX(MATCH) or something like that

strangedenial

New Member
Joined
Sep 15, 2014
Messages
39
Hi all,

I know it is so easy to do but I guess I can not ask the right question to dear friend Google so I can not find the right answer. So here I am.

What I want to do is below, please help.

Thanks in advance!

ClientsService 1Service 2Service 3
AAAEnlglishSpanish
BBBItalianEnglishSpanish
CCCSpanish
DDDEnglishItalian
EEESpanishEnglish
FFFItalian
GGGEnglish

<tbody>
</tbody>

that was the clients and services table, and the result I want is :

Results 1Results 2
CLIENTS FOR ENGLISHCLIENTS FOR SPANISH
AAAAAA
BBBBBB
DDDCCC
EEEEEE
GGG

<tbody>
</tbody>

I hope showing was more understandable than explaining in words.


Thanks for any help
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
Welcome to MrExcel.

Formula in F2 copied down and across:


Excel 2010
ABCDEFG
1ClientsService 1Service 2Service 3EnglishSpanish
2AAAEnglishSpanishAAAAAA
3BBBItalianEnglishSpanishBBBBBB
4CCCSpanishDDDCCC
5DDDEnglishItalianEEEEEE
6EEESpanishEnglishGGG
7FFFItalian
8GGGEnglish
Sheet1
Cell Formulas
RangeFormula
F2{=IFERROR(INDEX($A$2:$A$8,SMALL(IF(ISNUMBER(SEARCH(F$1,$B$2:$D$8)),ROW($B$2:$D$8)-ROW($B$2)+1),ROWS(F$2:F2))),"")}
Press CTRL+SHIFT+ENTER to enter array formulas.
 

strangedenial

New Member
Joined
Sep 15, 2014
Messages
39
Ok one more detail I fotgot;

I have some clients who take enligsh for 2 persons, so for them Service 1 and Service 2 show both english.
So this formula writes that client's name twice.

How not to duplicate the same client if they have 2 or more same services ?

Thanks!
 

squirrel31

New Member
Joined
Sep 15, 2014
Messages
30

ADVERTISEMENT

This formula should highlight the row/rows you don't need (Providing you do it in Conditional Formatting). Then all you would need to do is filter by colour and remove any duplicated records.

=COUNTIF($A$2:A2,A2)>1
 

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
How about?

=IFERROR(INDEX($A$2:$A$8,SMALL(IF((ISNUMBER(SEARCH(F$1,$B$2:$B$8))+ISNUMBER(SEARCH(F$1,$C$2:$C$8))+ISNUMBER(SEARCH(F$1,$D$2:$D$8))),ROW($B$2:$D$8)-ROW($B$2)+1),ROWS(F$2:F2))),"")

confirmed with Ctrl+Shift+Enter.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,139
Messages
5,835,632
Members
430,372
Latest member
contentment

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
Top