Skip to main content

Conas litir a mhéadú go huathoibríoch chun an chéad litir eile a fháil in Excel?

Má tá cillín agat má tá litir AB agat, ní mór duit an litir dheireanach a mhéadú le ceann amháin chun an chéad litir eile AC, AD… agus mar sin de a fháil. Nó tá litir A agat, agus ba mhaith leat an litir a mhéadú go B, C… d’fhonn liosta litreacha a chruthú. Conas é a bhaint amach? Is féidir leis an alt seo cabhrú leat go mion.

Méadaigh litir AB le ceann amháin chun AC, AD… a fháil leis an bhfoirmle
Méadú litir le duine chun liosta na litreacha a fháil le foirmle
Méadú ar litir le duine chun liosta na litreacha a fháil le feidhm atá sainithe ag an Úsáideoir


Méadaigh litir AB le ceann amháin chun AC, AD… a fháil leis an bhfoirmle

Déan mar a leanas le do thoil chun litir a mhéadú le duine in Excel.

1. Roghnaigh cill bhán faoin litir a thugtar, cuir isteach an fhoirmle thíos agus ansin brúigh an Iontráil eochair. 

=IF(RIGHT($A2,1)="Z", CHAR(CODE(LEFT(A2,1))+1),LEFT(A2,1))&CHAR(65+MOD(CODE(RIGHT(A2,1))+1-65,26))

nótaí: San fhoirmle, is é A2 an chill ina bhfuil an litir a thugtar.

2. Coinnigh ort ag roghnú A3, tarraing an Láimhseáil Líon isteach chun liosta na litreacha a theastaíonn uait a fháil.


Litir A a mhéadú ceann ar cheann chun liosta na litreacha a fháil le foirmle

Is féidir leat úsáid an = CHAR (CÓD (A1) +1) foirmle chun litir a mhéadú faoi cheann in Excel. Déan mar a leanas le do thoil.

1. Roghnaigh cill bhán faoin litir a thugtar, iontráil an fhoirmle = CHAR (CÓD (A2) +1) isteach sa Bharra Foirmle agus ansin brúigh an Iontráil eochair. Féach an pictiúr:

2. Roghnaigh an chill toradh, tarraing an Láimhseáil Líon isteach chun an litir a theastaíonn uait a fháil.

nótaí: Leis an bhfoirmle seo, tar éis duit an litir Z a fháil, má choinníonn tú ag tarraingt an Láimhseáil Líon isteach, gheobhaidh tú roinnt carachtair speisialta mar atá thíos an pictiúr a thaispeántar. Más mian leat litir AA a fháil i ndiaidh Z, is féidir leis an bhfeidhm seo a leanas atá sainithe ag an úsáideoir cabhrú leat.


Méadú ar litir le duine chun liosta na litreacha a fháil le feidhm atá sainithe ag an Úsáideoir

Is féidir leis an bhfeidhm seo a leanas atá sainithe ag an úsáideoir cabhrú leat litir a mhéadú ceann in Excel.

1. Brúigh Eile + F11 eochracha ag an am céanna chun an Microsoft Visual Basic d’Fheidhmchláir fhuinneog.

2. Sa Microsoft Visual Basic d’Fheidhmchláir fuinneog, cliceáil Ionsáigh > Modúil. Ansin cóipeáil agus greamaigh an cód VBA thíos sa Modúil fhuinneog.

Cód VBA: Méadaigh litir le duine chun liosta na litreacha a fháil

Function ColLtrs(i As Long) As String
    ColLtrs = Replace(Cells(1, i).Address(False, False), "1", "")
End Function

3. Brúigh Eile + Q eochracha chun an Microsoft Visual Basic d’Fheidhmchláir fhuinneog.

4. Roghnaigh cill bhán faoin litir a thugtar, iontráil an fhoirmle = ColLtrs (ROW ()), agus ansin brúigh an Iontráil eochair chun an dara litir a fháil.

2. Roghnaigh an chill toradh, tarraing an Láimhseáil Líon isteach chun an litir a theastaíonn uait a fháil.

nótaí: Leis an modh seo, tá na litreacha a mhéadaigh tú bunaithe ar an tsraithuimhir. Ní mór duit an chéad litir A a thosú sa chéad tsraith den bhileog oibre, ar shlí eile, beidh neamhord ar an litir.

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 (21)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
is there any formula to increase or write ascending order like 1nc1, 1nc2, 1nc3.....
This comment was minimized by the moderator on the site
Hi,

To create an incrementing sequence like "1nc1", "1nc2", "1nc3", etc., in Excel, you can use a formula that leverages the row number to generate the numeric part of the sequence.

Assuming you want to start this sequence in cell A1, you would enter the following formula in A1:
="1nc" & ROW(A1)
Then, drag this formula down to the desired number of rows. Each cell will generate a part of the sequence based on its row number. For example, cell A2 will display “1nc2”, A3 will display “1nc3”, and so on.

The logic behind this formula is:
ROW(A1) returns the row number of cell A1, which is 1.
"1nc" & ROW(A1) concatenates the string “1nc” with the row number, creating “1nc1”.
This comment was minimized by the moderator on the site
I need a code to help make my rows from 1-A to 1-Z please
This comment was minimized by the moderator on the site
Hi Mayra Lopez,
The VBA code provided in the post is still helpful, but you need to apply the following formula to get the results you need:
="1-"&ColLtrs(ROW())
This comment was minimized by the moderator on the site
How would I create a formula that advances like this?:

AAAAAAAAA
AAAAAAAAB
AAAAAAAAC
AAAAAAAAD
etc.
This comment was minimized by the moderator on the site
Hi Willie B,
You can try the VBA code provided in the post. After adding the code, use this formula to get the result you need:
="AAAAAAAA"&ColLtrs(ROW())
This comment was minimized by the moderator on the site
I need a code for increasing my row cell values from AA-01-A01, AA-01-A02 to AA-01-B01, AA-01-B02. And I also need a code for my colomn cell values from AA-01-A01, AA-01-A02 to AA-03-A01, A-03-A02. Help.
This comment was minimized by the moderator on the site
I need a code from A-Z, AA-ZZ, AAA to ZZZ, AAAA to ZZZZ
This comment was minimized by the moderator on the site
Hi,Sorry can't help with this problem. You can post the problem to the forum below to get help from other Excel enthusiasts.
https://www.extendoffice.com/forum/kutools-for-excel.html 
This comment was minimized by the moderator on the site
How do I get it to start over at A when Z is used?
This comment was minimized by the moderator on the site
This code will allow you to go from A to ZZ.

=IF(B2="Z","AA",IF(LEN(B2)=1,CHAR(CODE(B2)+1),IF(RIGHT(B2,1)="Z",CHAR(CODE(LEFT(B2,1))+1),LEFT(B2,1))&CHAR(65+MOD(CODE(RIGHT(B2,1))+1-65,26))))
This comment was minimized by the moderator on the site
Thank you Zac for the letter sequence formula, saved me a ton load of work
This comment was minimized by the moderator on the site
Is there a way to do this for entire words? Where every letter in the word moves up by X number of characters
This comment was minimized by the moderator on the site
Excel was the spreadsheet that superseded Lotus 1-2-3, and having been around that long, you would think that geniuses at Microsoft would have created a more simple means of retrieving a cells column number, without having to write your own function. Back in 2001, 2002 when I was programming in VBA there were only 65536 rows in an Excel spreadsheet, now the number has increased to a ridiculous 1.4 million rows. It's not how big the database is that counts, but how intelligent you manage the data on your hard drive, when accessing that data through Excel.

If that doesn't make you upset, then the Bankers Rounding scheme used by Excel should finish the job! We were taught math in school, basic rounding, come to find out, the Bankers "guild" wants to determine how cash amounts are rounded to better cater to their advantages. For instance, 1.5 is either closer to 1 or 2, but is rounded up to 2, being the even number. 0.5 is either closer to 0 or 1, but being the odd number, they round it down to 0. The entire system is corrupt, and they create the business software used by American businesses.



I read a comment below the one I'm addressing, and someone basically said, "I have a lot of banker friends, and they never heard of Bankers Rounding; They say they used a method called "5 Step Rounding" in the EU. So does that mean the Bankers Rounding is used only in the sabotage of the American Economy, but not good enough to ruin the European Economy that's trying to take over the world?! These money changers never cease to amaze me at how far they will go in their arrogance!
This comment was minimized by the moderator on the site
Everything man does is corrupt. Everything.
This comment was minimized by the moderator on the site
Dear Sir
When I run the function =ColLtrs(ROW()) in an excel sheet, I get perfect results, but if I want to call this function or cell value in VBA, then is it possible. So my variable could be i with values 1,2,3,4,....27,28, etc and result should be A,B,C,D....,AA,AB and so on. Is it possible?
Thanks
This comment was minimized by the moderator on the site
Hi,
Please select the number cells and run the below code to solve the problem.

Sub NumTOAZ()
Dim xRg As Range
Dim xStr As String
On Error Resume Next
For Each xRg In Selection
xStr = Replace(Cells(1, xRg.Value).Address(False, False), "1", "")
xRg.Value = xStr
Next
End Sub
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