- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
Create an Excel + Python word cloud #excel #microsoftexcel #exceltips #exceltricks #corporate
Word clouds are a clever way to visualise text data, but they've always been tricky to build in Excel without relying on add-ins or VBA.
However, since Python integration landed, it's become a lot easier.
In the example, a collection of hotel reviews is housed in A3:A32.
To generate a word cloud in A1, start by typing =PY( to enter Python mode and then paste in the following code:
✄---
# Import WordCloud class from wordcloud library
from wordcloud import WordCloud
# Pull in reviews from A3:A32 using xl()
reviews_cells = xl("A3:A32")
# Merge all reviews into one text string, each separated by a space
reviews_text = ' '.join(reviews_cells[0])
# Generate and display word cloud
WordCloud(background_color='white').generate(reviews_text).to_image().show()
✄---
Press Ctrl + Return to confirm the code.
For the output to render inside the cell, change the Python Output option (next to the formula bar) to 'Excel Value'.
For customisation, the WordCloud library has parameters for formatting and styling.
For example, in the WordCloud class, use:
👉 background_color='yellow' for a yellow background.
👉 stopwords=set() to include insignificant words like "the", "and", and "was".
👉 min_word_length=10 to only include words with a letter length of 10 or greater.
The full list can be found here: https://amueller.github.io/word_cloud/generated/wordcloud.WordCloud.html.
---
Where to find me:
Website — https://andrewmoss.me
LinkedIn — https://www.linkedin.com/in/andrewcharlesmoss
Видео Create an Excel + Python word cloud #excel #microsoftexcel #exceltips #exceltricks #corporate канала Andrew Moss
However, since Python integration landed, it's become a lot easier.
In the example, a collection of hotel reviews is housed in A3:A32.
To generate a word cloud in A1, start by typing =PY( to enter Python mode and then paste in the following code:
✄---
# Import WordCloud class from wordcloud library
from wordcloud import WordCloud
# Pull in reviews from A3:A32 using xl()
reviews_cells = xl("A3:A32")
# Merge all reviews into one text string, each separated by a space
reviews_text = ' '.join(reviews_cells[0])
# Generate and display word cloud
WordCloud(background_color='white').generate(reviews_text).to_image().show()
✄---
Press Ctrl + Return to confirm the code.
For the output to render inside the cell, change the Python Output option (next to the formula bar) to 'Excel Value'.
For customisation, the WordCloud library has parameters for formatting and styling.
For example, in the WordCloud class, use:
👉 background_color='yellow' for a yellow background.
👉 stopwords=set() to include insignificant words like "the", "and", and "was".
👉 min_word_length=10 to only include words with a letter length of 10 or greater.
The full list can be found here: https://amueller.github.io/word_cloud/generated/wordcloud.WordCloud.html.
---
Where to find me:
Website — https://andrewmoss.me
LinkedIn — https://www.linkedin.com/in/andrewcharlesmoss
Видео Create an Excel + Python word cloud #excel #microsoftexcel #exceltips #exceltricks #corporate канала Andrew Moss
Комментарии отсутствуют
Информация о видео
18 сентября 2025 г. 14:23:26
00:02:09
Другие видео канала





















