How to extract a set of 6 numbers from a set of 7 to 15 numbers.

john84811

New Member
Joined
Apr 10, 2012
Messages
2
Earlier I had alpha numeric data. I looked up a solution on your website and deleted all the text from the alpha-numbers (http://www.mrexcel.com/forum/showthread.php?t=545660) (Thanks to respondents, i learnt something new.)

Now this is where i am. I have the below mentioned data with me.


6600042
25600032
83483600042
149600017
17632600092
4981184600078

The data that i want to extract from this range has the following pattern.
The set of numbers i am looking for from this string all have 600 as the first 3 numbers. I need to return the 600 value and the next 3 numbers next to it.

So my output from the above data would then be

600042
600032
600042
600017
600092
600078

Thanks and your response would be much appreciated.
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Are they all at they all of that pattern where the number is the last 6 digits...

e.g. =RIGHT(A1,6)+0

if not, then:

=MID(A1,FIND("600",A1),6)+0
 
Upvote 0
this works for me data in a1

=MID(A1,FIND("600",A1&"600")*1,20)

dave
 
Upvote 0
If the first value 6600042 is in cell A1, try this:

Code:
=MID(TEXT(a1,"####"),FIND(600,TEXT(a1,"####")),6)

Hope that helps.
 
Upvote 0
Earlier I had alpha numeric data. I looked up a solution on your website and deleted all the text from the alpha-numbers (http://www.mrexcel.com/forum/showthread.php?t=545660) (Thanks to respondents, i learnt something new.)

Now this is where i am. I have the below mentioned data with me.


6600042
25600032
83483600042
149600017
17632600092
4981184600078

The data that i want to extract from this range has the following pattern.
The set of numbers i am looking for from this string all have 600 as the first 3 numbers. I need to return the 600 value and the next 3 numbers next to it.

So my output from the above data would then be

600042
600032
600042
600017
600092
600078

Thanks and your response would be much appreciated.
Maybe this...

Book1
AB
26600042600042
325600032600032
483483600042600042
5149600017600017
617632600092600092
74981184600078600078
Sheet1

This formula entered in B2 and copied down:

=--MID(A2,FIND(600,A2),6)
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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