I'm currently working with a large dataset based on people's reviews. The dataset includes 25 thousand individuals' reviews of different books, and each row on the text column is unique and has lots of sentences.
My issue is that I'd like to code for whether the text contains any ALL CAPS words. For instance, someone could say: "This book is AMAZING! I loved it!." Normally, excel allows you to directly identify when the cell is entirely written in all caps, but this situation is a bit more unique than that, given that I want to be able to see whether any word within the text is written in all caps. Any suggestions would be appreciated.
I googled possible solutions, and also ask ChatGPT3.5 and GPT4. Nothing that came out gave me an implementable suggestion (GPT was giving codes that were too long for excel to carry out, and the shorter ones it gave were plain wrong)
Assuming you can put your data into a Table in Excel you can utilise PowerQuery to do this pretty easily, using some dummy data as shown below.
Select a cell in your table then go to Data => Get &Transform Data => From Table.Range
This will load up the Power Query editor and if you go to Add Column => Custom Column and enter the following it'll add a True/False column that indicates if there's any capital words for each row
Then go to File => Close & Load To...
and choose to load it to a Table on a new or existing sheet and it'll give you the data

The HasCaps code works by splitting the text column at every space " " and creating a list, it then checks if each item in that list is the same when you capitalise it, and then checks if there are any 'trues' in the list.