Skip to main content

Conas sreang a bhaint idir dhá charachtar éagsúla in Excel?

Má tá liosta de shreangáin agat in Excel a chaithfidh tú cuid de shreang a bhaint idir dhá charachtar as an scáileán thíos a thaispeántar, conas é a láimhseáil chomh tapa agus is féidir? Anseo, tugaim isteach roinnt modhanna chun an post seo a réiteach.

Sliocht cuid de shreang idir dhá charachtar éagsúla le foirmlí

Sliocht cuid de shreang idir dhá charachtar céanna le foirmlí

Sliocht an chuid idir dhá charachtar le Kutools le haghaidh Excelsmaoineamh maith3


Sliocht cuid de shreang idir dhá charachtar éagsúla le foirmlí

Chun cuid de shreang a bhaint idir dhá charachtar éagsúla, is féidir leat é seo a dhéanamh:

Roghnaigh cill a chuirfidh tú an toradh air, clóscríobh an fhoirmle seo =MID(LEFT(A1,FIND(">",A1)-1),FIND("<",A1)+1,LEN(A1)), agus brúigh Enter eochair.
sreangán sleachta doc idir dhá charachtar 1

nótaí: Is é A1 an cill téacs, > agus < an bhfuil an dá charachtar ar mhaith leat sreang a bhaint astu.


Sliocht cuid de shreang idir dhá charachtar céanna le foirmlí

Más mian leat cuid de shreang a bhaint idir dhá charachtar chéanna, is féidir leat é seo a dhéanamh:

Roghnaigh cill a chuirfidh tú an toradh air, clóscríobh an fhoirmle seo =SUBSTITUTE(MID(SUBSTITUTE("/" & A3&REPT(" ",6),"/",REPT(",",255)),2*255,255),",",""), agus brúigh Enter eochair.
sreangán sleachta doc idir dhá charachtar 2

Nóta: Is é A3 an cill téacs, / an carachtar ba mhaith leat a bhaint as.

Sliocht an chuid idir dhá charachtar le Kutools le haghaidh Excel

Má tá tú Kutools for Excel, is féidir leat cuid de shreang a bhaint idir dhá théacs freisin.

Kutools le haghaidh Excel, le níos mó ná 300 feidhmeanna úsáideacha, déanann sé do phoist níos éasca. 

Tar éis a shuiteáil Kutools for Excel, déan mar atá thíos le do thoil:Download Kutools Íoslódáil saor in aisce do Excel Anois!)

1. Roghnaigh cill a chuirfidh an tsreang eastósctha, ansin cliceáil Kutools > Foirmle > Cúntóir Foirmle.
sreangán sleachta doc idir dhá charachtar 3

2. Sa Cúntóir Foirmle dialóg, .check scagairí bosca seiceála, ansin clóscríobh "ex" isteach sa bhosca téacs, liostálfar gach foirmle faoi eastóscadh Roghnaigh foirmle alt seo, a roghnú Sliocht teaghráin idir téacs sonraithe, ansin téigh ar dheis Ionchur argóintí roinn, roghnaigh an chill ar mhaith leat substring a bhaint aisti Cell, ansin clóscríobh an dá théacs is mian leat a bhaint astu.
sliocht doc kutools idir dhá théacs 2

3. cliceáil Ok, ansin gur baineadh an foshraith idir dhá théacs a shonraigh tú, tarraing an láimhseáil líonta síos chun dealú a bhaint as gach cealla thíos.
sliocht doc kutools idir dhá théacs 3

sliocht doc kutools idir dhá théacs 4

Uirlisí Táirgiúlachta Oifige is Fearr

🤖 Kutools AI Aide: anailís sonraí a réabhlóidiú bunaithe ar: Forghníomhú Chliste   |  Gin Cód  |  Cruthaigh Foirmlí Saincheaptha  |  Anailís a dhéanamh ar Sonraí agus Cairteacha a Ghin  |  Feidhmeanna Kutools a agairt...
Gnéithe Coitianta: Faigh, Aibhsigh nó Aithnigh Dúblaigh   |  Scrios Sraitheanna Bána   |  Comhcheangail Colúin nó Cealla gan Sonraí a Chailleadh   |   Babhta gan Foirmle ...
Cuardaigh Super: Ilchritéir VLookup    VLookup Illuachanna  |   VLookup Trasna Ilbhileoga   |   Amharc doiléir ....
Liosta anuas Casta: Go tapa Cruthaigh Liosta Anuas   |  Liosta anuas Cleithiúnach   |  Liosta Buail Isteach Ilroghnacha ....
Bainisteoir Colún: Cuir Líon Sonrach Colún leis  |  Colúin Bog  |  Scoránaigh Stádas Infheictheachta na gColún Ceilte  |  Déan comparáid idir Raonta & Colúin ...
Gnéithe Réadmhaoin: Fócas Eangaí   |  Amharc Dearaidh   |   Barra Mór na Foirmle    Leabhar Oibre & Bainisteoir Bileog   |  Leabharlann Acmhainní (Uaththéacs)   |  Piocálaí Dáta   |  Comhcheangail Bileoga Oibre   |  Criptigh/Díchriptigh Cealla    Seol Ríomhphost trí Liosta   |  Scagaire Super   |   Scagaire Speisialta (scagaire trom/iodálach/stailc tríd...) ...
Barr 15 Uirlisí12 Téacs uirlisí (Cuir Téacs, Bain Carachtair,...)   |   50 + Cairt cineálacha (Cairt Gantt,...)   |   40+ Praiticiúil Foirmlí (Ríomh aois bunaithe ar lá breithe,...)   |   19 Insertion uirlisí (Cuir isteach Cód QR, Ionsáigh Pictiúr ón gCosán,...)   |   12 Tiontú uirlisí (Uimhreacha le Focail, Comhshó Airgeadra,...)   |   7 Cumaisc & Scoilt uirlisí (Sraitheanna Comhcheangail Casta, Cealla Scoilt,...)   |   ... agus eile

Supercharge Do Scileanna Excel le Kutools le haghaidh Excel, agus Éifeachtúlacht Taithí Cosúil Ná Roimhe. Kutools le haghaidh Excel Tairiscintí Níos mó ná 300 Ardghnéithe chun Táirgiúlacht a Treisiú agus Sábháil Am.  Cliceáil anseo chun an ghné is mó a theastaíonn uait a fháil ...

Tuairisc


Tugann Tab Oifige comhéadan Tabbed chuig Office, agus Déan Do Obair i bhfad Níos Éasca

  • Cumasaigh eagarthóireacht agus léamh tabbed i Word, Excel, PowerPoint, Foilsitheoir, Rochtain, Visio agus Tionscadal.
  • Oscail agus cruthaigh cáipéisí iolracha i gcluaisíní nua den fhuinneog chéanna, seachas i bhfuinneoga nua.
  • Méadaíonn do tháirgiúlacht 50%, agus laghdaíonn sé na céadta cad a tharlaíonn nuair luch duit gach lá!
Comments (35)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Bonjour,

je souhaite extraire de ce texte (USD) 934.915765 (30-11-2022) le numero 934.915765, ce que je souhaite c'est faire un extrait de tout ce qui est entre (USD) et (30-11-2022)
This comment was minimized by the moderator on the site
Hi, please try this formula:
=LEFT((MID(I1,FIND(" ",I1)+1,256)),FIND(" ",(MID(I1,FIND(" ",I1)+1,256)),1)-1)
I1 is the cell that you want to extract number.
This comment was minimized by the moderator on the site
Hi, try this formula please:
=IFERROR(MID(A1,FIND("CG",A1),11),IFERROR(MID(A1,FIND("CP",A1),11),IFERROR(MID(A1,FIND("CV",A1),11),IFERROR(MID(A1,FIND("CD",A1),11),IFERROR(MID(A1,FIND("CC",A1),11),MID(A1,FIND("CO",A1),11))))))

If there is no match string, it returns #VALUE! error.
This comment was minimized by the moderator on the site
Hello, can you please help me with extracting a code from a cell? The code is always 11 characters long and it can start with either CC, CP, CV, CO, CG or CD. If it helps, it also ends with a number always. The code does not have a fixed position, it can be in the beginning, middle or end.
I tried this formula =MID(A2,FIND("CP",A2),11) but, as you see, it only finds the ones starting with CP.

An example of what the cell might contain is:
Text text CG1234dh201 text 123 text

Thank you!
This comment was minimized by the moderator on the site
Hi, I have an issue which i am struggling to solve. So I have a number of answers and i want to separate into separate cells.

i.e. A: XYZ|B*: SDR|C: AQS|

I can separate but my issue is there loads of line with the asterisk moving to the correct answer for each question. How do i get my head around this?

I am currently using the below formula

=MID(A5,SEARCH("A:",cell ref)+2,SEARCH("|",A5)-SEARCH(":",cell ref)-1)
This comment was minimized by the moderator on the site
Hi, Mohannmed Faisal, from my understanding, your question is to extract XYZ, SDR and AQS separately into three cells. If so, please use formulas below separately:
=MID(A7,SEARCH("A:",A7)+3,3)
=MID(A7,SEARCH("B*:",A7)+4,3)
=MID(A7,SEARCH("|C:",A7)+4,3)
A7 is the cell that you use to extract.
Hope it help you.
This comment was minimized by the moderator on the site
Bonjour,

J'ai un texte AAMMJJ que je souhaite transformer en JJMMAAAA
This comment was minimized by the moderator on the site
Hi, GG, try this formula =TEXTE(date; "jj/mm/aaaa")
This comment was minimized by the moderator on the site
Hi How to get specific value from description like
Desc: Date: 2022-07-22 23:59:51 Node: VA10TWPSQL026 Type: TSM SM_SERVER_EVENT 2579 Resource: 1700 Message Key: TSM_VA10TWPSQL026

I want to get node value as VA10TWPSQL026
This comment was minimized by the moderator on the site
Hi, Sandhya, if the node value always has a fixed length (14-chars), you can try this formula: =MID(A1,SEARCH("Node",A1)+5,14) hope it do a favor for you.
This comment was minimized by the moderator on the site
Hola,

Me encantan tus foros.

Me podrias ayudar con esto?

Tengo una serie de columnas asi:

U CALIPER R/H/R 1J0615424H Es
N DOOR WINDOW SWITCH R/H/F 8E0959851D5PR Ebbett Audi
N TAILIGHT L/H - LENS & BODY - ON QTR - W/XENON H/LAMP 63217217311 Coombes Johnson European Ltd
U*GUARD R/H/F - REPLACE RET NUT ALSO 5G0821106A (V) Private Purchase

Lo que necesito extraer es el numero de parte de cada celda pero siempre esta en una posicion diferente, por ejemplo de la primer celda necesito solo 1J0615424H, de la segunda necesito extraer 8E0959851D5PR, de la tercera 63217217311 y de la ultima 5G0821106A

Muchas gracias

Anderson
This comment was minimized by the moderator on the site
Hallo,

Ik moet een stuk tekst extraheren uit een cel, maar kom er niet aan uit.

51420647 Ondersteuner Kringdirectie (Unfilled)
P_00040501 Productmanager Wendbare Pool Bedrijven (Unfilled)

De tekst die ik nodig heb ik is het middelste deel tussen de cijfers en (unfilled).
Welke formuler kan ik hiervoor gebruiken?
This comment was minimized by the moderator on the site
HelloI have an issue where I am trying to extract a number from a set of text and numbers in excel. This is an excerpt from the data I have:AUS23-7W
GER490-8W
MEX114-2M
MEX444-5M
MEX331-3W
US118-15W
ARG572-16W
Japan122-6W
Japan526-13W
ARG585-7W
Japan398-16W
Japan320-15W
ARG141-3Mo
Canada329-5W
US421-17Mo
Canada427-14W
I need to be able to extract just the number to the right of the dash. For example, I need Japan320-15W to return just the 15 in its own column. Is there a formula you could provide me with that can accomplish this? Many thanks!

This comment was minimized by the moderator on the site
Hello, Duggled, to solve your job, just need two steps. Firstly, select the text strings, and apply Text to Columns under Data tab, choose Delimited > Other, and type - into the textbox beside Other option, click Finish. In this step, your data has been split into two columns by deliliter -. Secondly, use the formula  =SUMPRODUCT(MID(0&B1, LARGE(INDEX(ISNUMBER(--MID(B1, ROW(INDIRECT("1:"&LEN(B1))), 1)) * ROW(INDIRECT("1:"&LEN(B1))), 0), ROW(INDIRECT("1:"&LEN(B1))))+1, 1) * 10^ROW(INDIRECT("1:"&LEN(B1)))/10)(A1 is the cell that you want to extract the number from, here you change it to your second column cell)then the numbers after - have been extracted. Or in the second step, you can apply VBA, or our handy tool, for more details, please visit:https://www.extendoffice.com/documents/excel/1622-excel-extract-number-from-string.html
This comment was minimized by the moderator on the site
This formula works well for pretty much everything except these data :MEX114-2M
MEX444-5M
MEX373-15M
MEX540-8M
MEX396-11M
MEX386-10M
MEX369-14M
MEX446-3M
MEX75-12M
MEX372-3M
MEX178-6M
MEX510-7M
MEX361-17M
MEX501-13M
MEX221-17M
Is there any way you could revise that formula to include these? Thank you so much!
This comment was minimized by the moderator on the site
Hi! Sorry if I reposted this and thank you so much for the formula.
But I'm not sure how to do this, I have this in a cell:

random comment;24/nov/21 2:34 PM;random ID;3240

and I need to get in separate cells the date without the hour, like 24/nov/21 . And, in another cell, the last numer; in this case 3240 (The format is alway the same, and the date is always 9 characters long, the only thing that might change is the last number, as is the number of seconds it took to do something)

How should I do it?
Thank you!! 
This comment was minimized by the moderator on the site
Hi, to extract date, please use formula =MID(A1,16,9), A1 is the cell that the original data places, to extract ID number, please use formula =MID(A1,44,10),, for more details, you can refer to this articel https://www.extendoffice.com/documents/excel/3639-excel-extract-part-of-string.html
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations