Skip to main content

Conas limistéar clóite dinimiciúil a chruthú in Excel?

De ghnáth, bíonn an limistéar priontála seasmhach tar éis é a shocrú i do bhileog oibre. I roinnt cásanna, ba mhaith leat an limistéar priontála a choigeartú leis an ábhar priontála a scriosadh tú nó a chuir tú am ar bith. Conas é a bhaint amach? San Airteagal seo, táimid chun modh a thaispeáint duit chun limistéar priontála dinimiciúil a chruthú in Excel.

Limistéar priontála dinimiciúil a chruthú in Excel


mboilgeog cheart gorm saighead Limistéar priontála dinimiciúil a chruthú in Excel

Mar a thaispeántar thíos an pictiúr, ag glacadh leis gurb é A1: E5 do ghnáthlimistéar priontála, ach d’fhéadfadh go bhfásfaidh na sonraí raon go dtí sraith 10 agus colún G. Is féidir leat limistéar dinimiciúil priontála a chruthú leis na céimeanna seo a leanas.

1. Ní mór duit raon ainmnithe dinimiciúil a chruthú ar dtús. Cliceáil Foirmlí > Bainisteoir Ainm. Féach an pictiúr:

2. Sa Bainisteoir Ainm bosca dialóige, cliceáil an Nua cnaipe chun an Ainm Nua bosca dialóige. Agus sa bhosca dialóige Ainm Nua, iontráil Print_Area_Formula isteach sa Ainm bosca, agus cuir isteach an fhoirmle =OFFSET($A$1,0,0,COUNTA($A$1:$A$10),COUNTA($A$1:$G$1)) isteach sa Tagraíonn bosca, agus ar deireadh cliceáil ar an OK cnaipe. Féach an pictiúr:

nótaí: san fhoirmle, $ A $ 10 agus $ G $ 1 ciallaíonn sé nach bhfásfaidh an limistéar priontála níos mó ná as a chéile 10 agus colún G. Is féidir leat iad a athrú de réir mar is gá duit.

3. Nuair a fhillfidh sé ar an Bainisteoir Ainm bosca dialóige, dún é le do thoil.

4. Roghnaigh an raon le sonraí a shocróidh tú mar réimse priontála (sa chás seo, roghnóimid A1: E5), ansin cliceáil Leagan Amach Page > Limistéar Priontála > Socraigh Limistéar Priontála. Féach an pictiúr:

5. cliceáil Foirmlí > Bainisteoir Ainm a oscailt Bainisteoir Ainm dialóg.

6. Sa Bainisteoir Ainm bosca dialóige, roghnaigh an Priontála_Ceantar sa Ainm bosca, ansin cuir an fhoirmle bhunaidh in ionad = Print_Area_Formula (ainm an raon dinimiciúil a chruthaigh tú thuas) sa Tagraíonn bosca, agus ansin cliceáil ar an cnaipe chun an t-athrú a shábháil. Faoi dheireadh dún an Bainisteoir Ainm dialóg.

Anois cruthaítear an limistéar clóite dinimiciúil. Feiceann tú go bhfuil an limistéar priontála ag dul in oiriúint leis na sonraí a chuir tú leis nó a scriosadh go dtí go sroicheann sé an tsraith agus an colún sonraithe. 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 (10)
Rated 5 out of 5 · 1 ratings
This comment was minimized by the moderator on the site
Plain and simple, I've tried it a dozen times, made adjustments and still doesn't work. It won't take the formula. It keeps reverting, which means its reading the formula as an error. Don't get it. The name of my sheet is Contract Invoice. I don't see where you put that in the formula. I've tried replacine the COUNTA with the name of the sheet, tried putting it before and after COUNTA, but still nothing. My email is obviously listed above. If anyone has any suggestions, I'll try them.
This comment was minimized by the moderator on the site
Hi John,
If you wanted a print area for all non-blank rows, you might have something like
=OFFSET('Contract Invoice'!$A$1:$S$1,0,0,MAX(IF('Contract Invoice'!$A$1:$A$1005<>"",ROW('Contract Invoice'!$A$1:$A$1005),0)))

or whatever you like. The sheet name in the formula shouldn't matter.

You'd then define this name (say =my_print_area) as above mentioned above and set the "scope" to the workbook.

Then define your Print_Area to link to this formula and set the Scope to "Contract Invoice".

Hope that helps.
This comment was minimized by the moderator on the site
This was the best solution to this problem I found, after hours of searching
Rated 5 out of 5
This comment was minimized by the moderator on the site
this is definitely super usefull. However, each time I close and reopen the file, the Print_Area name configuration is gone. So each time I have to go to Define Names, and say Print_Area = Print_Area_Formula. Someone else with the same issue?? Thx!
This comment was minimized by the moderator on the site
Yeah, this is the only problem, but it only seems to happen when you open the Page Layout settings. Otherwise, it seems to be fine.
This comment was minimized by the moderator on the site
Ca ne fonctionne pas. A chaque fois qu'on faire le gestionnaire de noms et qu'on rentre dedans, il a remplacé la formule par la zone area de départ
This comment was minimized by the moderator on the site
Hi, just one thing, is your formula dynamic?. Would this be better =OFFSET($A$1,0,0,COUNTA($A:$A),COUNTA($1:$1))?

Then when the pivot changes or cells or columns are added the formula does not need to change.
This comment was minimized by the moderator on the site
First of all, thanks a lot!


Secondly: you don't need to define two "names" in the Mame Manager. As a simpler alternative, just select some random cells and set the print area (on those random cells), then open the Name Manager: it will have the print_area already in: here you can replace the content with the formula you want.
This comment was minimized by the moderator on the site
hi
thank you, it is great.

is there any way to have a conditional reference for the offset? I mean use the offset from the first cell in column A that contains a letter A, or equal to number 3 or filled by the color yellow.

I tried the following formula but it doesn't work.

offset(indirect(CELL("address",INDEX(A:A,MATCH("A",A:A,0)))),0,1,COUNTA(Sheet1!$b+Sheet1!$b:$b),7)

thanks

Mike
This comment was minimized by the moderator on the site
Hello,Its useful &exciting.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations