Click here to Skip to main content
14,735,363 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I have an excel sheet like following:

animal1
ani-dog
ani-cat
ani-cow
ani-horse
animal2
ani-tiger
ani-lion
animal3
ani-elephant
ani-wolf
ani-fox



I need output as :

animal1	ani-dog	ani-cat	ani-cow	ani-horse
animal2	ani-tiger	ani-lion		
animal3	ani-elephant	ani-wolf	ani-fox


It means there will be transpose of cells when there is a new set of animals. Can this be achieved with single formula?

Thank you..!!

What I have tried:

Tried writing a macro which worked....but need a formula....
Posted
Updated 26-Dec-16 20:45pm
v2

1 solution

There's no chance to achieve that using single formula, because there's no relationship between data, which means that set of animals: {ani-elephant, ani-wolf, ani-fox} knows nothing about its group animal3.

You may be interested in OFFSET function - Office Support[^]
   
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900