Skip to main content

Conas sonraí a ghreamú i sraitheanna bána malartacha in Excel?

I roinnt cásanna, le haghaidh as a chéile a chóipeáil, b’fhéidir go mbeidh ort é a ghreamú i sraitheanna iolracha bána gach re seach i raon nua in Excel mar a thaispeántar thíos an pictiúr. Conas is féidir leat a dhéanamh chun é a bhaint amach? Cabhróidh an t-alt seo leat.

Déan sonraí a ghreamú i sraitheanna malartacha bána le foirmle agus scagaire


Déan sonraí a ghreamú i sraitheanna malartacha bána le foirmle agus scagaire

Níl aon mhodh díreach ann chun an fhadhb seo a réiteach, ach is féidir leat é a bhaint amach leis an cleas beag san alt seo. Déan mar a leanas le do thoil.

1. Roghnaigh cill bhán (roghnaigh mé cill D2 anseo) sa raon nua a gcaithfidh tú na sonraí cóipeáilte a ghreamú isteach, ansin an fhoirmle a iontráil = MOD (ROW (A1), 2).

2. Coinnigh ag roghnú cill D2, tarraing an Láimhseáil Líon isteach go dtí na cealla colúin. Féach an pictiúr:

3. Ansin roghnaigh cill D1, cliceáil Dáta > scagairí chun an fheidhm Scagaire a chumasú.

4. Cliceáil an tsaighead anuas de chill D1, ansin scag an colún de réir uimhir 1 agus cliceáil ar an OK cnaipe ar deireadh. Féach an pictiúr:

5. Anois scagtar na sraitheanna malartacha bána amach. Cóipeáil na sonraí le do thoil, roghnaigh an raon scagtha, agus ansin brúigh Ctrl + V eochracha ag an am céanna chun na sonraí a ghreamú.

6. cliceáil Dáta > scagairí chun an fheidhm Scagaire a mhúchadh, agus ansin an colún cúntóra a scriosadh de réir mar is gá duit. Féach an pictiúr:

Uirlisí Táirgiúlachta Oifige is Fearr

🤖 Kutools AI Aide: anailís sonraí a réabhlóidiú bunaithe ar: Forghníomhú Chliste   |  Gin Cód  |  Cruthaigh Foirmlí Saincheaptha  |  Anailís a dhéanamh ar Sonraí agus Cairteacha a Ghin  |  Feidhmeanna Kutools a agairt...
Gnéithe Coitianta: Faigh, Aibhsigh nó Aithnigh Dúblaigh   |  Scrios Sraitheanna Bána   |  Comhcheangail Colúin nó Cealla gan Sonraí a Chailleadh   |   Babhta gan Foirmle ...
Cuardaigh Super: Ilchritéir VLookup    VLookup Illuachanna  |   VLookup Trasna Ilbhileoga   |   Amharc doiléir ....
Liosta anuas Casta: Go tapa Cruthaigh Liosta Anuas   |  Liosta anuas Cleithiúnach   |  Liosta Buail Isteach Ilroghnacha ....
Bainisteoir Colún: Cuir Líon Sonrach Colún leis  |  Colúin Bog  |  Scoránaigh Stádas Infheictheachta na gColún Ceilte  |  Déan comparáid idir Raonta & Colúin ...
Gnéithe Réadmhaoin: Fócas Eangaí   |  Amharc Dearaidh   |   Barra Mór na Foirmle    Leabhar Oibre & Bainisteoir Bileog   |  Leabharlann Acmhainní (Uaththéacs)   |  Piocálaí Dáta   |  Comhcheangail Bileoga Oibre   |  Criptigh/Díchriptigh Cealla    Seol Ríomhphost trí Liosta   |  Scagaire Super   |   Scagaire Speisialta (scagaire trom/iodálach/stailc tríd...) ...
Barr 15 Uirlisí12 Téacs uirlisí (Cuir Téacs, Bain Carachtair,...)   |   50 + Cairt cineálacha (Cairt Gantt,...)   |   40+ Praiticiúil Foirmlí (Ríomh aois bunaithe ar lá breithe,...)   |   19 Insertion uirlisí (Cuir isteach Cód QR, Ionsáigh Pictiúr ón gCosán,...)   |   12 Tiontú uirlisí (Uimhreacha le Focail, Comhshó Airgeadra,...)   |   7 Cumaisc & Scoilt uirlisí (Sraitheanna Comhcheangail Casta, Cealla Scoilt,...)   |   ... agus eile

Supercharge Do Scileanna Excel le Kutools le haghaidh Excel, agus Éifeachtúlacht Taithí Cosúil Ná Roimhe. Kutools le haghaidh Excel Tairiscintí Níos mó ná 300 Ardghnéithe chun Táirgiúlacht a Treisiú agus Sábháil Am.  Cliceáil anseo chun an ghné is mó a theastaíonn uait a fháil ...

Tuairisc


Tugann Tab Oifige comhéadan Tabbed chuig Office, agus Déan Do Obair i bhfad Níos Éasca

  • Cumasaigh eagarthóireacht agus léamh tabbed i Word, Excel, PowerPoint, Foilsitheoir, Rochtain, Visio agus Tionscadal.
  • Oscail agus cruthaigh cáipéisí iolracha i gcluaisíní nua den fhuinneog chéanna, seachas i bhfuinneoga nua.
  • Méadaíonn do tháirgiúlacht 50%, agus laghdaíonn sé na céadta cad a tharlaíonn nuair luch duit gach lá!
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