انتقل إلى المحتوى الرئيسي

كيفية استخراج النص قبل / بعد المسافة الثانية أو الفاصلة في إكسيل؟ 

في Excel ، قد تساعدك وظيفة Text To Columns على استخراج كل نص من خلية واحدة إلى خلايا منفصلة عن طريق المسافة أو الفاصلة أو المحددات الأخرى ، ولكن هل سبق لك أن حاولت استخراج النص قبل أو بعد المسافة الثانية أو الفاصلة من خلية في Excel كما تظهر لقطة الشاشة التالية؟ في هذا المقال سوف أتحدث عن بعض الطرق للتعامل مع هذه المهمة.

doc extract قبل الفضاء الثاني 1

استخرج النص قبل المسافة الثانية أو الفاصلة بالصيغة

استخراج النص بعد المسافة الثانية أو الفاصلة باستخدام الصيغة


السهم الأزرق الحق فقاعة استخرج النص قبل المسافة الثانية أو الفاصلة بالصيغة

للحصول على النص قبل الفراغ الثاني ، يرجى تطبيق الصيغة التالية:

أدخل هذه الصيغة: = IF (ISERROR (FIND (""، A2، FIND (""، A2,1،1) +2)))، A2، LEFT (A2، FIND (""، A2,1، FIND (""، A1،XNUMX) +XNUMX) ))) في خلية فارغة حيث تريد تحديد النتيجة ، C2، على سبيل المثال ، ثم اسحب مقبض التعبئة لأسفل إلى الخلايا التي تريد أن تحتوي على هذه الصيغة ، وسيتم استخراج كل النص قبل المسافة الثانية من كل خلية ، انظر لقطة الشاشة:

doc extract قبل الفضاء الثاني 2

ملاحظات: إذا كنت تريد استخراج النص قبل الفاصلة الثانية أو الفواصل الأخرى ، فيرجى فقط استبدال المسافة في الصيغة بفاصلة أو محددات أخرى حسب حاجتك. مثل: =IF(ISERROR(FIND(",",A2,FIND(",",A2,1)+1)),A2,LEFT(A2,FIND(",",A2,FIND(",",A2,1)+1))).


السهم الأزرق الحق فقاعة استخراج النص بعد المسافة الثانية أو الفاصلة باستخدام الصيغة

لإرجاع النص بعد المسافة الثانية ، يمكن أن تساعدك الصيغة التالية.

الرجاء إدخال هذه الصيغة: = MID (A2، FIND (""، A2، FIND (""، A2) +1) +1,256،XNUMX) في خلية فارغة لتحديد النتيجة ، ثم اسحب مقبض التعبئة لأسفل إلى الخلايا لملء هذه الصيغة ، وكل النص بعد استخراج المساحة الثانية مرة واحدة ، انظر لقطة الشاشة:

doc extract قبل الفضاء الثاني 3

ملحوظة: إذا كنت تريد استخراج النص بعد الفاصلة الثانية أو الفواصل الأخرى ، فأنت تحتاج فقط إلى استبدال المسافة بفاصلة أو محددات أخرى في الصيغة حسب حاجتك. مثل: = MID (A2، FIND ("،"، A2، FIND ("،"، A2) +1) +1,256،XNUMX).

أفضل أدوات إنتاجية المكتب

🤖 مساعد Kutools AI: إحداث ثورة في تحليل البيانات على أساس: التنفيذ الذكي   |  إنشاء التعليمات البرمجية  |  إنشاء صيغ مخصصة  |  تحليل البيانات وإنشاء الرسوم البيانية  |  استدعاء وظائف Kutools...
الميزات الشعبية: البحث عن التكرارات أو تمييزها أو تحديدها   |  حذف الصفوف الفارغة   |  دمج الأعمدة أو الخلايا دون فقدان البيانات   |   جولة بدون صيغة 
سوبر بحث: معايير متعددة VLookup    VLookup ذات القيمة المتعددة  |   VLookup عبر أوراق متعددة   |   بحث غامض ....
قائمة منسدلة متقدمة: إنشاء القائمة المنسدلة بسرعة   |  القائمة المنسدلة التابعة   |  قائمة منسدلة متعددة التحديد ....
مدير العمود: إضافة عدد محدد من الأعمدة  |  نقل الأعمدة  |  تبديل حالة رؤية الأعمدة المخفية  |  مقارنة النطاقات والأعمدة 
الميزات المميزة: التركيز على الشبكة   |  عرض تصميم   |   شريط الفورمولا الكبير    مدير المصنفات والأوراق   |  مكتبة الموارد (النص السيارات)   |  منتقي التاريخ   |  اجمع أوراق العمل   |  تشفير/فك تشفير الخلايا    إرسال رسائل البريد الإلكتروني عن طريق القائمة   |  سوبر تصفية   |   مرشح خاص (تصفية غامق / مائل / يتوسطه خط ...) ...
أفضل 15 مجموعة أدوات12 نص الأدوات (إضافة نص, إزالة الأحرف، ...)   |   +50 رسم الأنواع (مخطط جانت، ...)   |   40+ عملي الصيغ (احسب العمر على أساس تاريخ الميلاد، ...)   |   19 إدخال الأدوات (أدخل رمز الاستجابة السريعة, إدراج صورة من المسار، ...)   |   12 تحويل الأدوات (أرقام إلى كلمات, نتيجة تحويل عملة، ...)   |   7 دمج وتقسيم الأدوات (الجمع بين الصفوف المتقدمة, تقسيم الخلايا، ...)   |   ... و اكثر

عزز مهاراتك في Excel باستخدام Kutools for Excel، واختبر كفاءة لم يسبق لها مثيل. يقدم Kutools for Excel أكثر من 300 ميزة متقدمة لتعزيز الإنتاجية وتوفير الوقت.  انقر هنا للحصول على الميزة التي تحتاجها أكثر...

الوصف


يجلب Office Tab الواجهة المبوبة إلى Office ، ويجعل عملك أسهل بكثير

  • تمكين التحرير والقراءة المبوبة في Word و Excel و PowerPointوالناشر والوصول و Visio والمشروع.
  • فتح وإنشاء مستندات متعددة في علامات تبويب جديدة من نفس النافذة ، بدلاً من النوافذ الجديدة.
  • يزيد من إنتاجيتك بنسبة 50٪ ، ويقلل مئات النقرات بالماوس كل يوم!
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