• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

re-arrange the data by Formula

nandhamnk

New Member
Dear All,


I need a formula help to re-arrange the data


Below is the input:


A2 B2

1

2 Red

3

4 Green

5 Yellow,Blue,White

6

7

8 Black

9

10

11 Purple

12


Output (Formula in D2) as below:

C2 D2

Red 2

Green 4

Yellow 5

Blue 5

White 5

Black 8

Purple 11


Thanks for the support
 
You can use INDEX + MATCH with * wild card to do this.


In D2 write =INDEX($A$2:$A$13,MATCH("*"&C2&"*",$B$2:$B$13,0))


To know more about wildcard usage see - http://chandoo.org/wp/2010/11/01/using-wildcards-with-vlookup/
 
Back
Top