Write several words in a cell conditionned to statements in several other cells

SylvainFB

New Member
Joined
Apr 4, 2018
Messages
3
Hello guys! I am currently doing a qualitative analysis of short comments. I have created a spreadsheet with comments as rows and categories (or 'codes') as columns; so that for the comment "I like ice cream and tea", I will tick the category "food" and "beveridge" ("ice cream" being included in the "food" category, and "tea" in "beveridge").

I am automatising the categorisation through keyword search, with the formula for the "food" column:
=(SUMPRODUCT(--ISNUMBER(SEARCH({"ice cream"};A1)))>0)
So that the cell returns TRUE when the keyword appears. It works well.

Now, I would like to create a column next to the comment column where the names of the categories would be written if an attached keyword appears in the comment. For instance, next to the comment "I like ice cream and tea", there would be a cell reading: "food - beveridge".

Does anyone have any idea how to do that? You would have my outmost gratitude and I'll send you some ice cream.
Have a good day!
Sylvain
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Where your results = food in A1 and beveridge =B1 ect: try using the formula '=CONCATENATE(A1,B1,ect...)' to display the result in a single cell if you want a dash in between words add =CONCATENATE(A1," - ",B1,ect...) however without an 'IF' formula this will always the dashes so you could end up with "Food - - -" as a result if you have that many variations in results.
 
Upvote 0

Forum statistics

Threads
1,215,604
Messages
6,125,792
Members
449,260
Latest member
Mrw1

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top