Look for a value in a multiple line cells

AliaNi

New Member
Joined
Oct 19, 2022
Messages
32
Office Version
  1. 2010
Platform
  1. Windows
Hi

I have a dataset of 200 rows.
Each cell has multiple lines, I want to write a formula that finds the line which has a specific word, and then get the corresponding value from the cell next to it. Is that possible?

Row 1:
Cell 1 Cell 2
A v
B d
C e

Row 2:
Cell 1 Cell 2
B d
C e

I want to find the vals (d) from cell 2 based on cell 1 (B)

Is this possible?
 

Attachments

  • Capture.PNG
    Capture.PNG
    2.3 KB · Views: 4

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Welcome to the MrExcel board!

Your description, sample data and image do not seem to match each other very well.

Any chance that you could clarify by providing new sample data and the expected result with XL2BB and provide a new, clear, explanation of why that is the expected result?
 
Upvote 0
If the lookup value is B and is in the 2nd line of row1, find what's in the 2nd line in the next cell of the same row1. At least that's my interpretation.
If a formula can handle this I will once again be amazed with what people around here can do in a formula.
 
Upvote 0
Welcome to the MrExcel board!

Your description, sample data and image do not seem to match each other very well.

Any chance that you could clarify by providing new sample data and the expected result with XL2BB and provide a new, clear, explanation of why that is the expected result?
1666225878635.png

Thank you for answering. This is a part of the dataset I have.

I want to take out the times corresponding to scheduled, started and ended. I have 200 rows so I can't do it manually. Text to column does not work as not all the data is organized the same.

How would you do it?
 
Upvote 0
Looks like you have shown new sample data, but not ..

and the expected result with XL2BB and provide a new, clear, explanation of why that is the expected result?

XL2BB would also be better because then we could esily copy the data for testing. ;)
 
Upvote 0
Looks like you have shown new sample data, but not ..



XL2BB would also be better because then we could esily copy the data for testing. ;)
Book1.xlsx
ABCDE
1StartedEndedScheduled
2Scheduled Started Ended10:00 am 10:15 am 11:00 am
3Started Ended3:00 pm 4:00 pm
4Started Ended Scheduled1 pm 2 pm 3 pm
Sheet1
 
Upvote 0
Thanks for getting XL2BB going but you still have not included the expected result(s) and told us how you got those results manually
 
Upvote 0
Looks like you have shown new sample data, but not ..



XL2BB would also be better because then we could esily copy the data for testing. ;)
Book1.xlsx
ABCDE
1StartedEndedScheduled
2Scheduled Started Ended10:00 am 10:15 am 11:00 am10:15 AM11:00 AM10:00 AM
3Started Ended3:00 pm 4:00 pm3:00 PM4:00 PM
4Started Ended Scheduled1 pm 2 pm 12 pm 1:00 PM2:00 PM12:00 PM
Sheet1
 
Upvote 0
Thanks for getting XL2BB going but you still have not included the expected result(s) and told us how you got those results manually
I just uploaded XL2BB with the expected results. I did it manually for the first 3 rows.
 
Upvote 0
That is exactly what I expected as of post 4 when it was noted that text to columns would not work. Likely because not all rows are going to have all 3 values, nor would they necessarily be in the same order if they did. I can only imagine a code solution but if there's a formula for it, I know I won't understand it. :(
 
Upvote 0

Forum statistics

Threads
1,215,161
Messages
6,123,375
Members
449,098
Latest member
Jabe

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