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

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
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.
 
Upvote 0
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!
 
Upvote 0
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
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,214,525
Messages
6,120,051
Members
448,940
Latest member
mdusw

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