Extracting data

mahmed1

Well-known Member
Joined
Mar 28, 2009
Messages
2,302
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi

what formula can i have to extract 4,5,6,7 characters from a range
The range contains letters and numbers

123hgf456
4567

row numbers
4,5,6,7
what i need is to look at 123hyf456
and extract the 4,5,6,7 characters

the mid function allows to extract only one character but i need all those characters

thanks

thanks
 
Hmmm...

Maybe I'm not understanding what they want to do.

My interpretation is they want to EXTRACT the characters at specific character positions.

Sort of like this (if it were possible):

A1 = ABCDEFGHI

=MID(A1,{3,4,7,9},1)

And the expected result is CDGI

Thank you Biff. I think you are right and I messed up completely. :sad:

In fact now I read the thread with attention and Mahmed has even mentioned that he already knew how to delete the digits replacing them with blanks.

Sorry Mahmed.

If what you want is, like Biff said, to concatenate just an array of specific positions of a string, in that case, for a general solution I agree that it should be vba.

If your strings have a maximum number of characters that your previously know, then I guess you can also have a formula (maybe with auxilliary formulas) and you can do the same as I posted but deleting characters in specific positions (all but the ones in your array).
 
Upvote 0

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Thank you all for your help

much appreciated,

if you guys are ever in around the birmingham area in england i will treat you to a curry on the house in one of my restaurants
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,292
Members
452,902
Latest member
Knuddeluff

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