Skip i'r prif gynnwys

Sut i greu ardal argraffu ddeinamig yn Excel?

Fel rheol, mae'r ardal argraffu yn gyson ar ôl ei gosod yn eich taflen waith. Mewn rhai achosion, hoffech i'r ardal argraffu addasu gyda'r cynnwys print y gwnaethoch ei ddileu neu ei ychwanegu unrhyw amser. Sut i'w gyflawni? Yn yr erthygl hon, rydyn ni'n mynd i ddangos dull i chi o greu ardal argraffu ddeinamig yn Excel.

Creu ardal argraffu ddeinamig yn Excel


swigen dde glas saeth Creu ardal argraffu ddeinamig yn Excel

Fel isod llun a ddangosir, gan dybio mai A1: E5 yw eich ardal argraffu arferol, ond gall y data amrediad dyfu tan res 10 a cholofn G. Gallwch greu ardal argraffu ddeinamig gyda'r camau canlynol.

1. Mae angen i chi greu ystod ddynodedig ddeinamig ar y dechrau. Cliciwch Fformiwlâu > Rheolwr Enw. Gweler y screenshot:

2. Yn y Rheolwr Enw blwch deialog, cliciwch y Nghastell Newydd Emlyn botwm i agor y Enw Newydd blwch deialog. Ac yn y blwch deialog Enw Newydd, nodwch Argraffu_Ardal_Fformiwla i mewn i'r Enw blwch, a nodwch fformiwla =OFFSET($A$1,0,0,COUNTA($A$1:$A$10),COUNTA($A$1:$G$1)) i mewn i'r Yn cyfeirio at blwch, ac yn olaf cliciwch y OK botwm. Gweler y screenshot:

Nodyn: yn y fformiwla, $ A $ 10 ac $ G $ 1 yn golygu na fydd yr ardal argraffu yn tyfu'n fwy na rhes 10 a cholofn G. Gallwch eu newid yn ôl yr angen.

3. Pan fydd yn dychwelyd i'r Rheolwr Enw blwch deialog, caewch ef os gwelwch yn dda.

4. Dewiswch yr ystod gyda data y byddwch chi'n ei osod fel ardal argraffu (yn yr achos hwn, rydyn ni'n dewis A1: E5), yna cliciwch Layout Tudalen > Ardal Argraffu > Gosod Ardal Argraffu. Gweler y screenshot:

5. Cliciwch Fformiwlâu > Rheolwr Enw i agor y Rheolwr Enw blwch deialog.

6. Yn y Rheolwr Enw blwch deialog, dewiswch y Argraffu_Ardal yn y Enw blwch, yna disodli'r fformiwla wreiddiol gyda = Argraffu_Area_Fformiwla (enw'r ystod ddeinamig y gwnaethoch chi ei chreu uchod) yn y Yn cyfeirio at blwch, ac yna cliciwch ar y botwm i achub y newid. O'r diwedd cau'r Rheolwr Enw blwch deialog.

Nawr mae'r ardal argraffu ddeinamig yn cael ei chreu. Gallwch weld bod yr ardal argraffu yn addasu gyda'r data y gwnaethoch ei ychwanegu neu ei ddileu nes iddo gyrraedd y rhes a'r golofn benodol. Gweler y screenshot:

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 (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