Comparing two rows in Excel for a particular word and returning the content found in that cell where the word is in a new row

Sailadarohit

New Member
Joined
Sep 7, 2022
Messages
39
Office Version
  1. 365
  2. 2021
  3. 2019
  4. 2016
Platform
  1. Windows
I want to compare two rows in Excel for a particular word and return the entire content found in that cell where the word is present in the new rows.
So i am searching with the word nike in the two rows, the formula should search both the rows for the word nike and if found return the entire content found along with the word nike in the new rows else return NULL.
Row A and B are my inputs, output should look like row C and D
Please refer the attachment for more information.
 

Attachments

  • word_finding.jpg
    word_finding.jpg
    40.9 KB · Views: 12
No rules change peter i want to be cautious this time as these use cases are coming soon. I don't want to bother you for the same thing again and again that's why being proactive while you are already working on that. As i type this i get one such request
 

Attachments

  • wrk2.PNG
    wrk2.PNG
    24.3 KB · Views: 4
Upvote 0

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Yes peter I am working on fix so that i can share the snippet from XL2BB. My new question whenever i post again it will have the snippet from XL2BB

For the rules i meant the rules related to the results that is it should return the entire string in which the word is present
I have highlighted the 3 use cases which needs to be addressed.
Sorry for addition of new use cases. I can promise these are the last additions.
Thanks in advance!!
 
Upvote 0
Book1
ABCD
1ActualAssumedWordPresent ActualWordPresent Assumed
2Dress, brand_nike_costly_new, StoreJeans, brand_nike_air_cheap_Used, Onlinebrand_nike_costly_newbrand_nike_air_cheap_Used
3Online, brand_puma_shirt, PaidStore, brand_puma_jeans, ReturnNULLNULL
4Offline, brand_nike_jeans, CardShirt, brand_nike_tshirtsbrand_nike_jeansbrand_nike_tshirts
5Dress, brand_moniker_costly_new, StoreJeans, brand_moniker_costly_newNULLNULL
6black_nike_problack_nike_betablack_nike_problack_nike_beta
7online,black_nike_problack_nike_airblack_nike_problack_nike_air
8offline,red_nike,pantsshop,red_nike_air,shirtsred_nikered_nike_air
9Dress, Hyderabad,brand_nike_costly_new, StoreJeans, Hyd, brand_nike_air_cheap_Used, Onlinebrand_nike_costly_newbrand_nike_air_cheap_Used
10Online, Banglore, Return, brand_puma_shirt, PaidStore, Chennai, brand_puma_jeans, Returnbrand_puma_shirtbrand_puma_jeans
11online,Jeans, Hyderabad,black_nike_proonline,Hyderabad,black_nike,shirtblack_nike_problack_nike
Sheet1
 
Upvote 0
Thanks. Your profile lists 4 versions of Excel. Which one(s) does the formula have to work in? It may be that there are 'better' solutions that work in the later versions.

Why isn't the expected result in C10 and D10 "NULL" since "_nike" does not appear in A10 or B10?
 
Upvote 0
My bad peter in hurry i wrote the brand name wrong.. please read them as nike
 
Upvote 0
What is the answer to my first question in post 28?
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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