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

كيفية تحويل قائمة الأعمدة إلى قائمة مفصولة بفواصل في إكسيل؟

إذا كنت تريد تحويل قائمة أعمدة من البيانات إلى قائمة مفصولة بفاصلة أو فواصل أخرى ، وإخراج النتيجة في خلية كما هو موضح أدناه ، يمكنك إنجازها عن طريق وظيفة CONCATENATE أو تشغيل VBA في Excel.


تحويل قائمة الأعمدة إلى قائمة مفصولة بفواصل باستخدام وظيفة TEXTJOIN

تربط دالة Excel TEXTJOIN عدة قيم من صف أو عمود أو نطاق من الخلايا بمحدد معين.

لاحظ أن الوظيفة متاحة فقط في Excel لـ Office 365 و Excel 2021 و Excel 2019.

لتحويل قائمة الأعمدة إلى قائمة مفصولة بفواصل ، يرجى تحديد خلية فارغة ، على سبيل المثال ، الخلية C1 ، واكتب هذه الصيغة = TEXTJOIN ("،"، TRUE، A1: A7) (A1: A7 هو العمود الذي ستحوله إلى قائمة مسننة بفاصلة ، "" يشير إلى الكيفية التي تريد بها فصل القائمة). انظر اللقطة في الاسفل:


تحويل قائمة الأعمدة إلى قائمة مفصولة بفواصل مع وظيفة CONCATENATE

في Excel ، يمكن لوظيفة CONCATENATE تحويل قائمة الأعمدة إلى قائمة في خلية مفصولة بفواصل. يرجى القيام بما يلي:

1. حدد خلية فارغة بجوار البيانات الأولى للقائمة ، على سبيل المثال ، الخلية C1 ، واكتب هذه الصيغة = CONCATENATE (TRANSPOSE (A1: A7) & "،") (A1: A7 هو العمود الذي ستحوله إلى قائمة مسننة بفاصلة ، "،" يشير إلى الفاصل الذي تريد فصل القائمة). انظر لقطات أدناه:

2. تسليط الضوء على TRANSPOSE (A1: A7) & "،" في الصيغة ، واضغط على F9 الرئيسية.

3. إزالة الأقواس المتعرجة {و } من الصيغة ، واضغط على أدخل الرئيسية.

الآن ، يمكنك رؤية جميع القيم الموجودة في قائمة الأعمدة تم تحويلها إلى قائمة في خلية ومفصولة بفاصلة. انظر لقطة الشاشة أعلاه.

قم بتحويل قائمة الأعمدة بسرعة إلى قائمة مفصولة بفواصل باستخدام Kutools for Excel

كوتولس ل إكسيل ادمج الأعمدة أو الصفوف دون فقد البيانات يمكن أن تساعد الأداة المساعدة مستخدمي Excel على دمج أعمدة أو صفوف متعددة بسهولة في أعمدة / صف واحد دون فقد البيانات. بالإضافة إلى ذلك ، يمكن لمستخدمي Excel التفاف هذه السلاسل النصية المجمعة بأحرف أو إرجاع ثابت.


تحويل قائمة الأعمدة إلى قائمة مفصولة بفواصل باستخدام VBA

إذا كانت وظيفة CONCATENATE مملة بعض الشيء بالنسبة لك ، فيمكنك استخدام VBA لتحويل قائمة الأعمدة بسرعة إلى قائمة في خلية.

1. معلق ALT زر واضغط F11 على لوحة المفاتيح لفتح ملف Microsoft Visual Basic للتطبيق نافذة.

2. انقر إدراج > وحدة، وانسخ VBA في الوحدة النمطية.

فبا: تحويل قائمة الأعمدة إلى قائمة مفصولة بفواصل

Sub ChangeRange()
'Updateby20140310
Dim rng As Range
Dim InputRng As Range, OutRng As Range
xTitleId = "KutoolsforExcel"
Set InputRng = Application.Selection
Set InputRng = Application.InputBox("Range :", xTitleId, InputRng.Address, Type:=8)
Set OutRng = Application.InputBox("Out put to (single cell):", xTitleId, Type:=8)
outStr = ""
For Each rng In InputRng
    If outStr = "" Then
        outStr = rng.Value
    Else
        outStr = outStr & "," & rng.Value
    End If
Next
OutRng.Value = outStr
End Sub

3. انقر يجري زر أو اضغط F5 لتشغيل VBA.

4. يتم عرض مربع حوار على الشاشة ، ويمكنك تحديد قائمة الأعمدة التي تريد تحويلها. انظر لقطة الشاشة:

5. انقر OK، ثم انبثق مربع حوار آخر لتحديد خلية. انظر لقطة الشاشة:

6. انقر OK، وتم تحويل جميع القيم الموجودة في قائمة الأعمدة إلى قائمة مفصولة بفاصلة في خلية.

معلومه- سرية: في VBA أعلاه ، تشير "،" إلى الفاصل الذي تحتاجه ، ويمكنك تغييره حسب حاجتك.


تحويل قائمة الأعمدة إلى قائمة مفصولة بفواصل باستخدام Kutools for Excel

يمكنك أيضًا تطبيق Kutools for Excel دمج أداة لدمج قائمة الأعمدة ، وفصل كل قيمة بفاصلة بسهولة.

كوتولس ل إكسيل - شحن برنامج Excel بأكثر من 300 أداة أساسية. استمتع بتجربة مجانية كاملة المواصفات لمدة 30 يومًا دون الحاجة إلى بطاقة ائتمان! احصل عليه الآن

1. حدد قائمة الأعمدة التي ستقوم بتحويلها إلى قائمة مفصولة بفواصل ، وانقر فوق كوتولس > دمج وتقسيم> الجمع بين الصفوف أو الأعمدة أو الخلايا دون فقد البيانات.

2. في مربع حوار فتح أعمدة أو صفوف ، تحتاج إلى:
(1) تحقق من اجمع الصفوف الخيار في لدمج الخلايا المحددة وفقًا للخيارات التالية قسم.
(2) في حدد فاصل القسم، تحقق من فاصل آخر الخيار واكتب الفاصلة , في المربع التالي ؛

3. انقر على Ok .

سترى الآن أن جميع القيم الموجودة في قائمة الأعمدة المحددة مدمجة في خلية واحدة وتحويلها إلى قائمة مفصولة بفاصلة.

كوتولس ل إكسيل - شحن برنامج Excel بأكثر من 300 أداة أساسية. استمتع بتجربة مجانية كاملة المواصفات لمدة 30 يومًا دون الحاجة إلى بطاقة ائتمان! احصل عليه الآن


عرض توضيحي: تحويل قائمة الأعمدة إلى قائمة مفصولة بفواصل في Excel


كوتولس ل إكسيل: أكثر من 300 أداة مفيدة في متناول يدك! ابدأ تجربتك المجانية لمدة 30 يومًا دون أي قيود على الميزات اليوم. تحميل الآن!

عكس التسلسل وتحويل خلية واحدة (قائمة مسننة بفاصلة) إلى قائمة صف / عمود في Excel

عادةً يمكن لمستخدمي Excel تطبيق نص إلى أعمدة ميزة لتقسيم خلية واحدة إلى عدة أعمدة ، ولكن لا توجد طريقة مباشرة لتحويل خلية واحدة إلى عدة صفوف. ومع ذلك ، Kutools for Excel's تقسيم الخلايا يمكن أن تساعدك الأداة المساعدة في إنجازها بسهولة كما هو موضح أدناه.



مقالات ذات صلة:

Comments (34)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
This comment was minimized by the moderator on the site
Hi Eric,
Thanks for you feedback. Since the TEXTJOIN is a rather new function, it was not there when we wrote the instruction. I will include the function in the article. Thanks so much.
Amanda
This comment was minimized by the moderator on the site
Major time saving technique - thank you!
This comment was minimized by the moderator on the site
Doesn't work, too many arguments in function.
This comment was minimized by the moderator on the site
This was a life saver! Thanks
This comment was minimized by the moderator on the site
Can someone help in converting a cell wish Value

Football, Baseball, Cricket

into


1. Football, 2. Baseball, 3. Cricket
This comment was minimized by the moderator on the site
Hi ADMINDIVISION,
You can use the Text to Columns (Excel built-in feature) or Split Cells (of Kutools for Excel) to split the cell to three columns or rows, and then apply the Insert Bullets or Numbering feature of Kutools for Excel to quickly insert numbering for the new cells/columns/rows.

Btw, there is an article introducing several solutions to inserting bullets or numberings into cells:https://www.extendoffice.com/documents/excel/950-excel-apply-bullets-numbering.html
This comment was minimized by the moderator on the site
I need to get my numbers to look like this ('1234567', '1234567') instead of ("1234567", "1234567") - any ideas!?
This comment was minimized by the moderator on the site
=SUBSTITUTE(value,CHAR(34),CHAR(39))
This comment was minimized by the moderator on the site
Hi,
There are no double quotas or quotas in the conversation results with any one of methods in this article.
This comment was minimized by the moderator on the site
Absolutely magic!Thanks!
This comment was minimized by the moderator on the site
Used This one: "Convert column list to comma separated list with VBA", worked perfect for converting rows (1000+) of email addresses into a combined list that my email client works well with. Just changed the "," to "; " and it was good to go. Thanks!
This comment was minimized by the moderator on the site
I would like to know how did you manage to copy the comma separated values from Excel Spreadsheet to Outlook/other main client. The reason being whenever I copy, the only formula gets copied but not the comma separated values. Please support.
This comment was minimized by the moderator on the site
Hi, Ravindran, you shold copy the formula result and the paste it into a cell as value firstly, then copy the pased value to other devices.
https://www.extendoffice.com/images/stories/comments/sun-comment/paste%20as%20value.png?1697765930000
This comment was minimized by the moderator on the site
Hi All, So for a few columns this formula is great, but if you were trying to figure this out on more cloumns more than 100. putting "&" is a waste of time. For me i needed sepration through "," (comma). for that, all you need to do is to separate the file in CSV, Open it on a Notepad, Copy and paste in in Word, then Copy again from Word and paste it on Excel. Hope you like to the suggested, Have a great day. Thank you, Mayank Bhargava
This comment was minimized by the moderator on the site
The VBA helped out so much! I am experiencing an issue if you try to close the pop up box or cancel it, it will show that the vba needs debugged. This also happens if the value is blank. Any ideas on how to fix this? Thanks!
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