Count how many times any word is present in a list

Hi I don’t know how can I do this

I have a list like this:-

1- Mango/strawberry
2- Lichi
3- Lichi/banana/strawberry
4- Banana
5- Banana/Lichi

You can see there are 5 items in a list and I want that it some how show how many times any item is repeated. I mean the output should be like this in two lists:-

[Output]

List1:
Mango
Strawberry
Lichi
Banana

List2:
1
2
3
3

It’s really complex, like if there is one mango so on the same index there should be one but on the other hand where lichi was repeated 3 times, so on the same index it was 3 value

I was trying myself but don’t know how can I make a list with this data like this

Mango/strawberry
Lichi/banana/berry

It can be more after slash I mean infinite

To a list like this:
Mango
Strawberry
Lichi
Banana
Berry

go with for each items in the list + use split text at / and add items in the list also

Yes working, but how can I know how many times any item is present @Still-learning

do you want to achieve it without extn or with extension?

Extension makes your work easier

image

ListNinja Extension

From the return out put you can make any changes. because the return also Yailist.
Suppose if you like this extension, hit heart in the first post of the extension page

Screenshot_2025-06-10-02-08-44-47_3d0fbc90c54dc712111be22de2bfc24f

Sorted by count using the same extn.

2 Likes

Hi Karanvir,

Try this for two separated lists (no extension)

or if you don’t want to complicate your life, use the very useful @Still-learning extension

2 Likes

Thnks,
Is there any way to arrange the list 1 and list 2 according to list 2 in descending order of number.

1 Like

There are tons of tutorials on how to sort lists of numbers and strings, try to see if these help you

https://community.kodular.io/t/bubble-sort-list-without-an-extension-numbers-strings/64057?u=rayzzz

or

https://community.kodular.io/search?q=sort%20list

or

If you don’t find what you are looking for we can try to solve it together

I have two lists, list 1 and list 2
I want that when my list 1 is getting sorted(having numbers) that time I want my list 2 also sorted with respect to list 1 .
How is this possible with this method? Because my other list is getting sorted on his own

@RaYzZz

https://community.kodular.io/t/very-easy-way-to-ascending-sort-a-list/98055/9?u=rayzzz

you can set value fore key to the numbers and value to the name of the item

blocks (9)
I did like this but both are sorting own on his own
@RaYzZz

Let me know if you understand everything

sortProject.aia (170.7 KB)

2 Likes