Find text in a worksheet

tss

New Member
Joined
Dec 8, 2009
Messages
2
I want to find a text "Style#" in a worksheet and return the value next to "Style#". The value is supposed to be returned in, say, column H, for each row I found the text "Style#".
Below is the sample:

Col A Col B Col C Col D Col E Col F Col G Col H Col I Col H
123 Style# 1111 Shipping 5.95 1111
456 Size# 32 Style Long Type Career Style# 2222 2222
789 Style Capri Style# 3333 Shipping 7.95 3333
101 Brand BCBG Color Black Style# 4444 4444

How do I do it with excel formula? If no formula, how do I do it with macro/VBA?
Thank you very much.
 
Last edited:

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Try this:

Excel Workbook
ABCDEFGHIJ
1123Style#1111Shipping5.951111
2456Size#32StyleLongTypeCareerStyle#22222222
3789StyleCapriStyle#3333Shipping7.953333
4101BrandBCBGColorBlackStyle#44444444
Sheet1
 
Upvote 0

Forum statistics

Threads
1,214,971
Messages
6,122,517
Members
449,088
Latest member
RandomExceller01

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