return value two cells left of value

kylefoley76

Well-known Member
Joined
Mar 1, 2010
Messages
1,550
I'm trying to go down column a, look for a certain word, let's say 'excel', then return the value in the cell four cells to the right.

My best guest was

=offset(search("excel",a:a),0,4)

But the search function and the find function really aren't built for that.
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type

Son

Active Member
Joined
Mar 19, 2010
Messages
284
let's say you have the following, starting from range A1 with apple, and you need to get the value 8 in range G1, then you type in G1 =INDEX(E:E,MATCH("excel",A:A,0))



apple13s68
orange13s7
excel5678
apple13s9
excel13s10

<tbody>
</tbody>


but be careful, this formula will bring the value which corresponds only to the first appearance of "excel" in column A.
 

Forum statistics

Threads
1,172,032
Messages
5,878,825
Members
433,374
Latest member
strichpunkt

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
Top