Skip i'r prif gynnwys

Sut i echdynnu testun cyn / ar ôl yr ail ofod neu goma yn Excel? 

Yn Excel, gall y swyddogaeth Text To Columns eich helpu i dynnu pob testun o un gell i mewn i gelloedd ar wahân yn ôl gofod, coma neu amffinyddion eraill, ond, a ydych chi erioed wedi ceisio echdynnu'r testun cyn neu ar ôl yr ail ofod neu goma o gell. yn Excel fel y dangosir y screenshot canlynol? Yr erthygl hon, byddaf yn siarad am rai dulliau i ddelio â'r dasg hon.

dyfyniad doc cyn yr ail ofod 1

Tynnwch destun cyn yr ail ofod neu goma gyda fformiwla

Tynnwch destun ar ôl yr ail ofod neu goma gyda fformiwla


swigen dde glas saeth Tynnwch destun cyn yr ail ofod neu goma gyda fformiwla

I gael y testun cyn yr ail ofod, defnyddiwch y fformiwla ganlynol:

Rhowch y fformiwla hon: = OS (ISERROR (FIND ("", A2, FIND ("", A2,1) +1)), A2, CHWITH (A2, FIND ("", A2, FIND ("", A2,1) +1 ))) i mewn i gell wag lle rydych chi am ddod o hyd i'r canlyniad, C2, er enghraifft, ac yna llusgwch y ddolen llenwi i lawr i'r celloedd rydych chi am gynnwys y fformiwla hon, a'r holl destun cyn i'r ail ofod gael ei dynnu o bob cell, gweler y screenshot:

dyfyniad doc cyn yr ail ofod 2

Nodyn: Os ydych chi am echdynnu'r testun cyn yr ail atalnod neu wahanyddion eraill, rhowch goma neu amffinyddion eraill yn lle'r gofod yn y fformiwla yn ôl yr angen. Fel: =IF(ISERROR(FIND(",",A2,FIND(",",A2,1)+1)),A2,LEFT(A2,FIND(",",A2,FIND(",",A2,1)+1))).


swigen dde glas saeth Tynnwch destun ar ôl yr ail ofod neu goma gyda fformiwla

I ddychwelyd y testun ar ôl yr ail ofod, gall y fformiwla ganlynol eich helpu chi.

Rhowch y fformiwla hon: = MID (A2, FIND ("", A2, FIND ("", A2) +1) +1,256) i mewn i gell wag i ddod o hyd i'r canlyniad, ac yna llusgwch y ddolen llenwi i lawr i'r celloedd i lenwi'r fformiwla hon, a'r holl destun ar ôl i'r ail ofod gael ei dynnu ar unwaith, gweler y screenshot:

dyfyniad doc cyn yr ail ofod 3

Nodyn: Os ydych chi am echdynnu'r testun ar ôl yr ail atalnod neu wahanyddion eraill, does ond angen i chi ddisodli'r gofod â choma neu amffinyddion eraill yn y fformiwla yn ôl yr angen. Fel: = MID (A2, FIND (",", A2, FIND (",", A2) +1) +1,256).

Offer Cynhyrchiant Swyddfa Gorau

🤖 Kutools AI Aide: Chwyldro dadansoddi data yn seiliedig ar: Cyflawniad Deallus   |  Cynhyrchu Cod  |  Creu Fformiwlâu Personol  |  Dadansoddi Data a Chynhyrchu Siartiau  |  Invoke Swyddogaethau Kutools...
Nodweddion Poblogaidd: Darganfod, Amlygu neu Adnabod Dyblygiadau   |  Dileu Rhesi Gwag   |  Cyfuno Colofnau neu Gelloedd heb Colli Data   |   Rownd heb Fformiwla ...
Super-edrych: VLookup Meini Prawf Lluosog    VLookup Gwerth Lluosog  |   VLookup Ar Draws Taflenni Lluosog   |   Edrych Niwlog ....
Rhestr gwympo Uwch: Creu Rhestr Gollwng yn Gyflym   |  Rhestr Gollwng Dibynnol   |  Rhestr Gollwng Aml-ddewis ....
Rheolwr Colofn: Ychwanegu Nifer Penodol o Golofnau  |  Symud Colofnau  |  Toglo Statws Gwelededd Colofnau Cudd  |  Cymharwch Ystodau a Cholofnau ...
Nodweddion dan Sylw: Ffocws ar y Grid   |  Golwg Dylunio   |   Bar Fformiwla Mawr    Rheolwr Llyfr Gwaith a Thaflen   |  Llyfrgell Adnoddau (Testun Auto)   |  Dewiswr Dyddiad   |  Cyfuno Taflenni Gwaith   |  Amgryptio/Dadgryptio Celloedd    Anfon E-byst trwy Restr   |  Hidlo Super   |   Hidlo Arbennig (hidlo mewn print trwm/italig/strikethrough...) ...
15 Set Offer Gorau12 Testun offer (Ychwanegu Testun, Dileu Cymeriadau,...)   |   50 + Siart Mathau (Siart Gantt,...)   |   40+ Ymarferol Fformiwlâu (Cyfrifwch oedran yn seiliedig ar ben-blwydd,...)   |   19 mewnosod offer (Mewnosod Cod QR, Mewnosod Llun o'r Llwybr,...)   |   12 Trosi offer (Rhifau i Eiriau, Trosi arian cyfred,...)   |   7 Uno a Hollti offer (Rhesi Cyfuno Uwch, Celloedd Hollt,...)   |   ... a mwy

Supercharge Eich Sgiliau Excel gyda Kutools ar gyfer Excel, a Phrofiad Effeithlonrwydd Fel Erioed Erioed. Kutools ar gyfer Excel Yn Cynnig Dros 300 o Nodweddion Uwch i Hybu Cynhyrchiant ac Arbed Amser.  Cliciwch Yma i Gael Y Nodwedd Sydd Ei Angen Y Mwyaf...

Disgrifiad


Mae Office Tab yn dod â rhyngwyneb Tabbed i Office, ac yn Gwneud Eich Gwaith yn Haws o lawer

  • Galluogi golygu a darllen tabbed yn Word, Excel, PowerPoint, Cyhoeddwr, Mynediad, Visio a Phrosiect.
  • Agor a chreu dogfennau lluosog mewn tabiau newydd o'r un ffenestr, yn hytrach nag mewn ffenestri newydd.
  • Yn cynyddu eich cynhyrchiant 50%, ac yn lleihau cannoedd o gliciau llygoden i chi bob dydd!
Comments (28)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hi, I want to extract each values after underscore. How do I do that. I am familiar with delimiter, but want to learn the formula to do that.

Brush_25mm_Orange_Skid_110cm
Polish_25mm_Orange_Toast_100cm
Car_25mm_White_Tyre_120cm
Paint_25mm_Red_Reflective_95cm
This comment was minimized by the moderator on the site
Edit - I see this was already addressed by Dave - thank you sir! skyyang can you please edit the incorrect solution to "Extract Text Before The Second Delimiter" with the correct equation logic?
This comment was minimized by the moderator on the site
Hello There

I have a scenario in 4 types as below in a excel chart

Type 1 : FX01865-CWB-22F
Type 2 : CD30250-AJX-2D-AB
Type 3 : DF10250-MUR-JH-B
Type 4 : YZ00250-MDS-4T-BHR

To all cases, I want to extract only the BOLD TEXT as an answer in the adjacent cells

Please help share formula

ThanksSaran

This comment was minimized by the moderator on the site
I have the text like this
LAXMI RANI DELHI DELHI CG012054567IN CA
so, I want the text to be arranged in excel like this
LAXMI RANI(1st cell ) DELHI(2nd cell) DELHI (3rd cell) CG012054567IN (4th cell) CA(5th cell)
This comment was minimized by the moderator on the site
Hi, rangaih,To deal with your problem, first, you can split your cell values based on space by using the Text to Columns feature, after spliting the text strings, you just need to combine the fisrt two cell values as you need.Please try, thank you!
This comment was minimized by the moderator on the site
Hi, I have a long string in a single cell and want to extract all the information after each Product ID. Product ID: 686, Product Qty: 1, Product SKU: RUB 100, Product Name: Emu Oil Rub 100g, Product Weight: 0.2000, Product Variation Details: |Product ID: 691, Product Qty: 1, Product SKU: MOIST 100, Product Name: Emu Oil Moisturiser 100g, Product Weight: 0.1900, Product Variation Details: , |Product ID: 705, Product Qty: 3, Product SKU: WASH 250, Product Name: Natural Hand & Body Wash with Emu Oil 250ml, Product Weight: 0.4000, Product Variation Details: I need the quantity in one cell and the product name in another cell for each of the products after Product ID. Can you help?
This comment was minimized by the moderator on the site
In my scenario There are three “-“ and sometimes one “-“
before second “-“ text should be enter
if in cell only one “-“ it should be blank

e.g As-01-14-32 answers like thisAs-01

e.g As-01 answer Blank cell

what will be farmula?
This comment was minimized by the moderator on the site
Hello, Bil,
To solve your problem, please apply the below formula:
=IFERROR(LEFT(A1,FIND("#",SUBSTITUTE(A1,"-","#",2))-1),"")
Please try it, thank you!
This comment was minimized by the moderator on the site
Hi
I need help if i want to extract anything after first comma and before last comma.
"Flat 135 Nevendon Road, Sally,Wickford, SS12 0NL"

Column A = Flat 135 Nevendon Road
Column B = Sally,Wickford
Columns C = SS12 0NL
This comment was minimized by the moderator on the site
Hello, Jayaswal,
To solve your porblem, please apply the following formulas:
First part--Cell B1: =LEFT(A1,FIND(",",A1,1)-1)
Second part--Cell C1: =MID(A1,FIND(",",A1)+1,LOOKUP(1,0/(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)=","),ROW(INDIRECT("1:"&LEN(A1))))-FIND(",",A1)-1)
Third part--Cell D1: =MID(A1,FIND("=",SUBSTITUTE(A1,",","=",LEN(A1)-LEN(SUBSTITUTE(A1,",",""))))+1,256)

Pleasr try, hope it can help you!
This comment was minimized by the moderator on the site
It’s working, thanks
This comment was minimized by the moderator on the site
One more thing
after third”-“all text should remain even 1 or 10 otherwise blank
e.g A-01-12-As answer As
e.g A-01-12-Asty answer Asty
e.g A-01 answer blank
This comment was minimized by the moderator on the site
Hi,
May be the below formula can solve your task, please try:
=IFERROR(TRIM(MID(A1,FIND("#",SUBSTITUTE(A1,"-","#",3))+1,255)),"")
This comment was minimized by the moderator on the site
Fine thanks
This comment was minimized by the moderator on the site
How can I extract Text 1 and Text 2 from a string like Text 1_Text 2_Text 3_Text 4
This comment was minimized by the moderator on the site
how do I do this from right to left. Basically, want to extract last two words.
This comment was minimized by the moderator on the site
Hi, demo,
To extract and return the last two words from text strings, please apply the below formula:
=IF((LEN(A1)-LEN(SUBSTITUTE(A1," ","")))<2,A1,RIGHT(A1,LEN(A1)-FIND("/",SUBSTITUTE(A1," ","/",(LEN(A1)-LEN(SUBSTITUTE(A1," ",""))-1)))))

Please try, hope it can help you!
This comment was minimized by the moderator on the site
THANK YOU!!!
This comment was minimized by the moderator on the site
Is there a way to extract various pieces of this string? 123ABC.01.02.03.04 ---- for example, to pull the 123ABC, and then in the next column pull 123ABC.01, and then 123ABC.01.02, then 123ABC.01.02.03, and so on.
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