Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

Insert sequence number and embed it to my data

$
0
0

I have this data:

AB
1XBIRD
2XLION
3YFISH
4ZCHICKEN
5XDUCK
6YSNAKE
7XTIGER
8XCROCODILE
9ZELEPHANT
10ZDRAGON
11ZWORM

I use this formula:

=index( trim( split( transpose(query ( QUERY ( FILTER ( {A1:A&"@@" , B1:B&"," }  , A1:A<>"") ,"select max(Col2) group by Col2 pivot Col1" ), , 100)), "@@")))

and this is what I got as expected :

enter image description here

but I want to do some modification : I want to insert sequence numbers in front of every animal items (replacing the comma) like this :

enter image description here

How to modify my formula to get this result ?


Viewing all articles
Browse latest Browse all 9782

Trending Articles