Skip i'r prif gynnwys

 Sut i ddychwelyd y gell gyntaf / olaf nad yw'n wag mewn rhes neu golofn?

Pan fyddwch chi'n gweithio gyda thaflen waith, weithiau, efallai yr hoffech chi gael gwerth celloedd cyntaf neu olaf rhes neu golofn. Mae'n hawdd ichi gael y gwerth os nad oes llawer o ddata mewn rhes neu golofn ar gip, ond bydd dychwelyd y data mewn colofn neu res hir yn dasg boenus. Yma, gallaf siarad â chi am rai dulliau defnyddiol i ddatrys y swydd hon.

Dychwelwch y gell gyntaf nad yw'n wag mewn rhes neu golofn gyda fformiwla

Dychwelwch y gell olaf nad yw'n wag mewn rhes neu golofn gyda fformiwla


swigen dde glas saeth Dychwelwch y gell gyntaf nad yw'n wag mewn rhes neu golofn gyda fformiwla

I echdynnu'r gell gyntaf gyda data, defnyddiwch y fformiwla ganlynol:

1. Rhowch y fformiwla ganlynol i mewn i gell wag ar wahân i'ch data: =INDEX(A1:A13,MATCH(TRUE,INDEX((A1:A13<>0),0),0)), gweler y screenshot:

doc-dychwelyd-cyntaf-data-gell-1

2. Yna pwyswch Rhowch allwedd, a byddwch yn cael y gwerth celloedd cyntaf gwag fel a ganlyn:

doc-dychwelyd-cyntaf-data-gell-1

Nodiadau:

1. Yn y fformiwla uchod, A1: A13 yw'r ystod golofn rydych chi am ei defnyddio, gallwch ei newid i'ch angen. Gellir defnyddio'r fformiwla hon hefyd i gael y gwerth celloedd cyntaf gwag yn olynol, mae angen ichi newid ystod y golofn i amrediad rhes.

2. Mae'r fformiwla hon yn gweithio'n gywir ar res sengl neu golofn sengl.


swigen dde glas saeth Dychwelwch y gell olaf nad yw'n wag mewn rhes neu golofn gyda fformiwla

Os ydych chi am ddychwelyd y gwerth celloedd olaf nad yw'n wag, dyma fformiwla arall a all ffafrio chi.

1. Teipiwch y fformiwla hon =LOOKUP(2,1/(A1:A13<>""),A1:A13) i mewn i gell wag ar wahân i'ch data, gweler y screenshot:

doc-dychwelyd-cyntaf-data-gell-1

2. Yna pwyswch Rhowch allwedd, bydd y gwerth celloedd olaf nad yw'n wag yn cael ei dynnu ar unwaith. Gweler y screenshot:

doc-dychwelyd-cyntaf-data-gell-1

Nodiadau:

1. Yn y fformiwla uchod, A1: A13 yw'r ystod golofn rydych chi am ei defnyddio, gallwch ei newid i'ch angen. Gellir defnyddio'r fformiwla hon hefyd i gael y gwerth celloedd olaf gwag yn olynol, mae angen ichi newid ystod y golofn i amrediad rhes.

2. Mae'r fformiwla uchod yn gweithio'n gywir ar res sengl neu golofn sengl.

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 (31)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
How do i use this formula to return the columns header of the first cell with a value >0 ?
This comment was minimized by the moderator on the site
Hello, Tom,
To solve your problem, please apply the below formula:
=INDEX($B$1:$H$1,MATCH(TRUE,$B2:$H2>0,0))
https://www.extendoffice.com/images/stories/comments/comment-skyyang/doc-return-column-headers.png

Please have a try, hope it can help you!
This comment was minimized by the moderator on the site
Como faço para obter o menor valor de um intervalo, onde pode haver células em branco ?
This comment was minimized by the moderator on the site
Thank you so much for your content! I don't know what I'm doing wrong but I can't seem to be able to do this (in Google sheets) :

I need to fill H1 with the value from the first non-empty cell from C1 to G1. Then I need to copy this for all next rows (H2, H3, H4 etc)

Thanking you in advance for your time, it would be very appreciated :)
This comment was minimized by the moderator on the site
Hi, Marissa,
If you want to get the first non blank value from a row in Google sheets, please apply any one of the following formulas:

=QUERY(transpose(C1:G1),"Select Col1 where Col1 is not null limit 1",0)
=index(C1:G1,MATCH(FALSE,ISBLANK(C1:G1),0))

Please try, hope it can help you!
This comment was minimized by the moderator on the site
Perfect answer. Have been looking for this for quite some time. Thank you!
This comment was minimized by the moderator on the site
Hi
I want to return the first non blank cell in a row but rather that with
information in top cell of the fist nin blank cell.
This comment was minimized by the moderator on the site
It works to find last non blank cell that has more than 255 characters, also. Helpful for me to solve issue.
Thanks a lot !
This comment was minimized by the moderator on the site
A1:A13<>0 returns an array of value that are either true or false
all values that are not 0 (eg <>0) in A1:A13 become true, and all else become false
So now you can look up the first 'true' in that array and use it to index
This comment was minimized by the moderator on the site
What does "INDEX((A1:A13<>0)" mean? The first parameter to INDEX is the set of cells A1 through A13 but with a test for not equal to zero appended. I can't find any explanation of this.
This comment was minimized by the moderator on the site
Hi can someone helpme on this,

I have a csv file or maybe a excel which has n number of data's in it from which i need few collective data's using formulas which should be automatic,and i need the output to be in a table form.can please anyone helpme on this??
This comment was minimized by the moderator on the site
I would really love to know why ,1/([RANGE]<>0) works :(
This comment was minimized by the moderator on the site
How To Return The Last Non Blank Cell from some selected cells In A Row
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations