Skip i'r prif gynnwys

Sut i ddileu pob rhes arall yn Excel yn gyflym?

Os ydych chi am ddileu pob rhes neu golofn arall yn Excel yn gyflym, y prif bwynt yw sut allwch chi ddewis pob rhes neu golofn arall yn gyflym yn gyntaf ac yna cymhwyso'r gweithrediad dileu iddyn nhw. A bydd yr erthygl hon yn dangos rhai pethau anodd i chi ynglŷn â sut i ddewis pob rhes neu golofn arall yn gyntaf ac yna eu dileu yn gyflym.

Dileu pob rhes arall yn Excel gyda gorchymyn Hidlo

Dileu pob rhes arall yn Excel gyda chod VBA

Dileu pob rhes neu golofn arall yn Excel gyda Kutools ar gyfer Excel


swigen dde glas saeth Dileu pob rhes arall yn Excel gyda gorchymyn Hidlo

Microsoft Excel Hidlo gall gorchymyn eich helpu i hidlo pob rhes arall yn gyflym ac yna eu dileu ar unwaith, gwnewch fel a ganlyn:

1. Mewn colofn wag ar wahân i ddata gwreiddiol, nodwch 0,1,0,1…, 0,1. Yn yr achos hwn, rydyn ni'n nodi'r rhifau yng Ngholofn C. y cynorthwyydd. Gweler y screenshot canlynol:

2. Dewiswch y golofn C, a chliciwch ar y Hidlo botwm o dan Dyddiad tab. Yna cliciwch y botwm saeth wrth ymyl C1, a gwiriwch y 0 O dan y Dewis Popeth opsiwn. Gweler y screenshot:

3. Yna mae pob rhes ag 1 wedi'i chuddio. Dewiswch y rhesi gweladwy gyda 0, a chliciwch ar y Hafan > Dileu > Dileu rhesi dalen i ddileu'r rhesi hyn. Yna mae'n dileu pob rhes arall, ac mae angen i chi glicio Hidlo botwm eto i ddangos y rhesi yn unig gyda 1. Gweler sgrinluniau:

doc-delete-bob-arall-rhes5 -2 doc-delete-bob-arall-rhes12

4. O'r diwedd, gallwch ddileu'r golofn cynorthwyydd C yn ôl yr angen.


Dewiswch bob rhes neu nawfed rhes, colofn ac yna eu dileu ar unwaith

Kutools ar gyfer Excel's Dewiswch Rhesi a Cholofnau Cyfnod gall cyfleustodau eich helpu chi i ddod o hyd i a dewis pob rhes neu golofn arall neu nawfed, ac yna gallwch chi wneud rhai gweithrediadau yn ôl yr angen. Cliciwch i lawrlwytho Kutools ar gyfer Excel!


swigen dde glas saeth Dileu pob rhes arall yn Excel gyda chod VBA

Mewn gwirionedd, mae macro VBA hefyd yn ddewis da i ddatrys y broblem hon.

1. Dal i lawr y Alt + F11 allweddi yn Excel, ac mae'n agor y Microsoft Visual Basic ar gyfer Ceisiadau ffenestr.

2. Cliciwch Mewnosod > Modiwlau, a gludwch y macro canlynol yn y Modiwlau Ffenestr.

Cod VBA: Dileu pob rhes arall wrth ddewis:

Sub DeleteEveryOtherRow()
'Updateby Extendoffice
Dim rng As Range
Dim InputRng As Range
xTitleId = "KutoolsforExcel"
Set InputRng = Application.Selection
Set InputRng = Application.InputBox("Range :", xTitleId, InputRng.Address, Type:=8)
Application.ScreenUpdating = False
For i = InputRng.Rows.Count To 1 Step -2
    Set rng = InputRng.Cells(i, 1)
    rng.EntireRow.Delete
Next
Application.ScreenUpdating = True
End Sub

3. Gwasgwch y F5 allwedd i redeg y macro hwn. Yna mae deialog yn ymddangos ar gyfer dewis ystod. Gweler y screenshot:

4. Yna cliciwch OK, mae pob rhes arall yn yr ystod a ddewiswyd o'r ail res yn cael ei dileu ar unwaith, gweler y screenshot:

doc-delete-bob-arall-rhes5 -2 doc-delete-bob-arall-rhes12

swigen dde glas saeth Dileu pob rhes neu golofn arall yn Excel gyda Kutools ar gyfer Excel

Ar gyfer defnyddiwr cychwynnol Microsoft Excel, mae defnyddio macro VBA ychydig yn gymhleth. Mae'r Dewiswch Rhesi a Cholofnau Cyfnod cyfleustodau Kutools ar gyfer Excel yn gallu eich helpu i ddileu pob rhes arall yn gyflym.

Kutools ar gyfer Excel : gyda mwy na 300 o ychwanegiadau Excel defnyddiol, am ddim i geisio heb unrhyw gyfyngiad mewn 30 diwrnod. 

Ar ôl gosod Kutools ar gyfer Excel, gwnewch fel a ganlyn:

1. Dewiswch yr ystod rydych chi am ddileu pob rhes arall, ac yna defnyddio'r cyfleustodau hwn trwy glicio ar y Kutools > dewiswch > Dewiswch Rhesi a cholofnau Cyfnod ....

2. Yn Dewiswch Rhesi a Cholofnau Cyfnod blwch deialog, nodwch y gosodiadau fel y screenshot canlynol a ddangosir, a chlicio OK botwm i ddewis pob rhes arall yn gyntaf.

3. Yna mae pob rhes arall yn y detholiad yn cael ei ddewis a'i amlygu. Gweler y screenshot:

4. Yna gallwch chi ddileu'r rhesi a ddewiswyd bob yn ail yn gyflym trwy glicio ar y Hafan > Dileu > Dileu rhesi dalen i ddileu'r holl resi hyn. Gweler sgrinluniau:

doc-delete-bob-arall-rhes5 -2 doc-delete-bob-arall-rhes12

Cliciwch i wybod mwy am y nodwedd Select Interval Rows & Columns.

Gyda'r nodwedd hon, gallwch hefyd ddileu pob nawfed rhes neu golofn yn ôl yr angen.

Dadlwythwch a threial am ddim Kutools ar gyfer Excel Nawr!


swigen dde glas saethDemo: Dileu pob rhes neu golofn arall gyda Kutools ar gyfer Excel

Kutools ar gyfer Excel: gyda mwy na 300 o ychwanegiadau Excel defnyddiol, am ddim i geisio heb unrhyw gyfyngiad mewn 30 diwrnod. Dadlwythwch a threial am ddim Nawr!

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 (11)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
An easy way to put 0 or 1 in the column instead is to add a formula column: =IF(MOD(ROW(), 2) = 0, 0, 1). That might help if you'd rather not type 0,1,01, etc.
This comment was minimized by the moderator on the site
another way is to add a new column in front of your data, so column A is blank, then just enter a b a b a b as you go down the rows in column A - so "a" in A1, "b" in A2, "a" in A3, "b" in A4. then you can drag the new "a" and "b" cells down for all rows of data. then sort column A alphabetically, and you get all the odd rows with an "a" at the top and all the even rows with a "b" at the bottom. this is probably the easiest way.
This comment was minimized by the moderator on the site
You're genious :)
This comment was minimized by the moderator on the site
Easiest? How is that different from the 0,1 method? ;-)
This comment was minimized by the moderator on the site
This is actually very useful if you have a large number of rows and can't enter the 2 settings in manually. if you drag 0,1 down, it continues to 2, 3, 4...but if you drag a,b down, it will repeat as a,b,a,b...all the way down. Thanks!
This comment was minimized by the moderator on the site
That would be great, except column C is all 0
This comment was minimized by the moderator on the site
This is really really helpful. thanks
This comment was minimized by the moderator on the site
Great trick...thank you. I love simple sneaky tricks like this
This comment was minimized by the moderator on the site
This was really helpful. thanks,
This comment was minimized by the moderator on the site
In cell B1: =row(A1) Drag this down all of column B. In cell C1: =mod(B1,2) Drag this down all of column C. Apply a filter and in column C select all 0s or 1s as required.
This comment was minimized by the moderator on the site
Richarddddd, Sneaky! I like that, and it was useful to me today. Thanks.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations