ไปยังเนื้อหาหลัก

วิธีการวางข้อมูลในแถวว่างอื่นใน Excel

ในบางกรณีสำหรับแถวที่คัดลอกคุณอาจต้องวางในแถวว่างหลายแถวสลับกันในช่วงใหม่ใน Excel ดังภาพด้านล่างที่แสดง คุณจะทำอย่างไรเพื่อให้บรรลุ? บทความนี้จะช่วยคุณ

วางข้อมูลในแถวว่างอื่นด้วยสูตรและตัวกรอง


วางข้อมูลในแถวว่างอื่นด้วยสูตรและตัวกรอง

ไม่มีวิธีการโดยตรงในการแก้ปัญหานี้ แต่คุณสามารถบรรลุได้ด้วยเคล็ดลับเล็ก ๆ น้อย ๆ ในบทความนี้ กรุณาดำเนินการดังนี้

1. เลือกเซลล์ว่าง (ที่นี่ฉันเลือกเซลล์ D2) ในช่วงใหม่ที่คุณต้องวางข้อมูลที่คัดลอกลงในจากนั้นป้อนสูตร = MOD (แถว (A1), 2).

2. เลือกเซลล์ D2 ต่อไปลาก Fill Handle ลงไปที่เซลล์คอลัมน์ ดูภาพหน้าจอ:

3. จากนั้นเลือกเซลล์ D1 คลิก ข้อมูล > ตัวกรอง เพื่อเปิดใช้งานฟังก์ชันตัวกรอง

4. คลิกลูกศรแบบเลื่อนลงของเซลล์ D1 จากนั้นกรองคอลัมน์ตามหมายเลข 1 แล้วคลิกปุ่มตกลง ดูภาพหน้าจอ:

5. ตอนนี้แถวว่างอื่น ๆ จะถูกกรองออก กรุณาคัดลอกข้อมูลเลือกช่วงที่กรองแล้วกด Ctrl + V พร้อมกันเพื่อวางข้อมูล

6 คลิก ข้อมูล > ตัวกรอง เพื่อปิดฟังก์ชันตัวกรองจากนั้นลบคอลัมน์ตัวช่วยตามที่คุณต้องการ ดูภาพหน้าจอ:

สุดยอดเครื่องมือเพิ่มผลผลิตในสำนักงาน

🤖 Kutools AI ผู้ช่วย: ปฏิวัติการวิเคราะห์ข้อมูลโดยยึดตาม: การดำเนินการที่ชาญฉลาด   |  สร้างรหัส  |  สร้างสูตรที่กำหนดเอง  |  วิเคราะห์ข้อมูลและสร้างแผนภูมิ  |  เรียกใช้ฟังก์ชัน Kutools...
คุณสมบัติยอดนิยม: ค้นหา เน้น หรือระบุรายการที่ซ้ำกัน   |  ลบแถวว่าง   |  รวมคอลัมน์หรือเซลล์โดยไม่สูญเสียข้อมูล   |   รอบโดยไม่มีสูตร ...
การค้นหาขั้นสูง: VLookup หลายเกณฑ์    VLookup หลายค่า  |   VLookup ข้ามหลายแผ่น   |   การค้นหาที่ไม่ชัดเจน ....
รายการแบบเลื่อนลงขั้นสูง: สร้างรายการแบบหล่นลงอย่างรวดเร็ว   |  รายการแบบหล่นลงขึ้นอยู่กับ   |  เลือกหลายรายการแบบหล่นลง ....
ผู้จัดการคอลัมน์: เพิ่มจำนวนคอลัมน์เฉพาะ  |  ย้ายคอลัมน์  |  สลับสถานะการมองเห็นของคอลัมน์ที่ซ่อนอยู่  |  เปรียบเทียบช่วงและคอลัมน์ ...
คุณสมบัติเด่น: กริดโฟกัส   |  มุมมองการออกแบบ   |   บาร์สูตรใหญ่    สมุดงานและตัวจัดการชีต   |  ห้องสมุดทรัพยากร (ข้อความอัตโนมัติ)   |  เลือกวันที่   |  รวมแผ่นงาน   |  เข้ารหัส/ถอดรหัสเซลล์    ส่งอีเมลตามรายการ   |  ซุปเปอร์ฟิลเตอร์   |   ตัวกรองพิเศษ (กรองตัวหนา/ตัวเอียง/ขีดทับ...) ...
ชุดเครื่องมือ 15 อันดับแรก12 ข้อความ เครื่องมือ (เพิ่มข้อความ, ลบอักขระ, ... )   |   50 + แผนภูมิ ประเภท (แผนภูมิ Gantt, ... )   |   40+ ใช้งานได้จริง สูตร (คำนวณอายุตามวันเกิด, ... )   |   19 การแทรก เครื่องมือ (ใส่ QR Code, แทรกรูปภาพจากเส้นทาง, ... )   |   12 การแปลง เครื่องมือ (ตัวเลขเป็นคำ, การแปลงสกุลเงิน, ... )   |   7 ผสานและแยก เครื่องมือ (แถวรวมขั้นสูง, แยกเซลล์, ... )   |   ... และอื่น ๆ

เพิ่มพูนทักษะ Excel ของคุณด้วย Kutools สำหรับ Excel และสัมผัสประสิทธิภาพอย่างที่ไม่เคยมีมาก่อน Kutools สำหรับ Excel เสนอคุณสมบัติขั้นสูงมากกว่า 300 รายการเพื่อเพิ่มประสิทธิภาพและประหยัดเวลา  คลิกที่นี่เพื่อรับคุณสมบัติที่คุณต้องการมากที่สุด...

รายละเอียด


แท็บ Office นำอินเทอร์เฟซแบบแท็บมาที่ Office และทำให้งานของคุณง่ายขึ้นมาก

  • เปิดใช้งานการแก้ไขและอ่านแบบแท็บใน Word, Excel, PowerPoint, ผู้จัดพิมพ์, Access, Visio และโครงการ
  • เปิดและสร้างเอกสารหลายรายการในแท็บใหม่ของหน้าต่างเดียวกันแทนที่จะเป็นในหน้าต่างใหม่
  • เพิ่มประสิทธิภาพการทำงานของคุณ 50% และลดการคลิกเมาส์หลายร้อยครั้งให้คุณทุกวัน!
Comments (12)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Instead of using 1s and 0s you can just use 1,2,3,4,... next to the cells you want to alternate.
Then paste the exact same sequence under underneath (like this)
1
2
3
4
1
2
3
4

Then just with the data filter (like in the original example) just sort by ascending or descending and you will have blank rows

(Credit to my friend Angus)
This comment was minimized by the moderator on the site
Thanks a lot Chris! This is a great idea!
This comment was minimized by the moderator on the site
Hi Chris,
Thank you very much for sharing your method.
This comment was minimized by the moderator on the site
I just get the first line of the data I'm copying filling all the rows. Tried using 'skip blanks' but it doesn't work.
This comment was minimized by the moderator on the site
It only works if you copy a single cell, which pretty is useless. For a range of data it doesn't work.
This comment was minimized by the moderator on the site
Thanks. Works with Google Sheets (April 2020). Use formula =MOD(ROW(),2) to create the alternating pattern.

The cell you create your filter in gets turned into a header, so you want to select the cell ABOVE your range and in the data menu choose create filter. It should auto-detect your number range and add a filter. Or you could just highlight your whole range (+ 1 cell above it) beforehand.

Click the little filter icon that appears in the header cell to adjust settings of what to display.

When done you can then copy paste your result into another program if needed.
This comment was minimized by the moderator on the site
didnt work for me either
This comment was minimized by the moderator on the site
Hi,
This method works well in my case.
Which Office version do you use?
This comment was minimized by the moderator on the site
shows alternate rows but when i paste, it pastes normal way, doesnt skip cells.
This comment was minimized by the moderator on the site
You have to keep space between copied cells, in order for this to work!
This comment was minimized by the moderator on the site
It doesn't work
This comment was minimized by the moderator on the site
This doesn't work for me. I have Microsoft Office 2010, so whichever version of excel comes with that I am not quite sure but either way it doesn't work. When I paste it pastes to ALL rows. So, when I paste I only see half of what I pasted, when I turn the filter off I see everything I pasted =/
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations