Finding a value in a table and selecting the cell containing it

kfilippo

New Member
Joined
Jan 9, 2018
Messages
11
Hello,

I would like to run a search and find cells in my column A that contais the following text: "account - xxxx - services".
Then I would like to extract these "xxxx" value from the cells in the original sheet and place it in cells in another sheet.

Thank you,

Karen
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
I would like to run a search and find cells in my column A that contais the following text: "account - xxxx - services".
Then I would like to extract these "xxxx" value from the cells in the original sheet and place it in cells in another sheet.
Is that text the only text in the cells or could there be other text surrounding it?

Are you looking for a VBA macro or worksheet formula solution?

What is the name of the sheet with the data and what is the name of the sheet where the output is to go to?
 
Upvote 0
Is that text the only text in the cells or could there be other text surrounding it?

Are you looking for a VBA macro or worksheet formula solution?

What is the name of the sheet with the data and what is the name of the sheet where the output is to go to?


Hi Rick

Yes, this is the only text in the cells.

I'm looking for a VBA macro, since I need it to do other actions.

The name of the sheet with the original data is "RawData". And the name of the sheet where my output table is "TreatedData".

Thank you!
 
Upvote 0
Hi Rick

Yes, this is the only text in the cells.

I'm looking for a VBA macro, since I need it to do other actions.

The name of the sheet with the original data is "RawData". And the name of the sheet where my output table is "TreatedData".
Sorry, three more questions...

What is represented by the xxxx... all digits or a mixture of text and digits?

Is the value represented by the xxxx always four characters long?

What is in the cells that do not match what you are looking for... text or numbers?
 
Upvote 0
Sorry, three more questions...

What is represented by the xxxx... all digits or a mixture of text and digits?

Is the value represented by the xxxx always four characters long?

What is in the cells that do not match what you are looking for... text or numbers?


No problem!

xxxx are all digits

The value represented by xxxx are actually 8 characters long

In the cells I'm not looking for, there are either texts or numbers

Thank you!
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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