get 4 words before a match found included match word

satish78

Board Regular
Joined
Aug 31, 2014
Messages
218
In ColumnA I have sentences wrapped and in columnB list of words

formula should lookup range of words in columnA and get 4 words including matched word.
for example.

Robert is honored in computer science and Robert earned GPA 3.6 and he has a bachelors degree (ColumnA)

3.5 (ColumnB Range)
3.6
3.7
4.9

Robert earned GPA 3.6 (ColumnC result)
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Upvote 0
i would like to get data where "3.6" is matched in Row1 the formula should get "robert earned gpa" including "3.6" data in ColumnC

This is what you are linking us to, instead of posting it as data directly here:

Row\Col
A​
B​
C​
D​
1​
Robert is honored in computer science and Robert earned GPA 3.6 and he has a bachelors degree
3.5
Robert earned GPA 3.6
2​
3.6
3​
3.7
4​
4.9
5​

<tbody>
</tbody>


Note that you don't mention what the conditions are to output the result that you show...
 
Upvote 0
Hi Aladin,

I want to find "3.6" in columnA, if found, the formula should get "Robert earned GPA" from ColumnA along with "3.6" in preceding ColumnC.(row1)

Hope you understand now.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,099
Messages
6,128,820
Members
449,469
Latest member
Kingwi11y

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