Note: The other languages of the website are Google-translated. Back to English
Logáil isteach  \/ 
x
or
x
Cláraigh  \/ 
x

or

Conas suíomh na chéad / na huimhreach deireanaí a fháil i sreangán téacs in Excel?

Mar shampla, tá liosta de shreangán téacs agat atá ina meascán de litreacha agus uimhreacha. Más mian leat suíomh na chéad uimhreach nó na huimhreach deiridh i ngach sreang a fháil, cad a dhéanfá? I ndáiríre, cuideoidh an fhoirmle seo leat suíomh na chéad / na huimhreach deireanaí a fháil i sreangán téacs sonraithe. Sa rang teagaisc seo, taispeánfaimid duit na sonraí maidir le déileáil leis an bhfadhb seo.

Faigh suíomh na chéad uimhreach i sreangán téacs in Excel
Faigh suíomh na huimhreach deireanaí i sreangán téacs in Excel


Faigh suíomh na chéad uimhreach i sreangán téacs in Excel


Mar a thaispeántar an pictiúr thíos, chun suíomhanna na chéad uimhreacha sna teaghráin téacs a fháil, déan mar a leanas le do thoil.

1. Roghnaigh an chill B2, cóipeáil agus greamaigh ceann den fhoirmle thíos sa Bharra Foirmle:

1). Foirmle 1: = MIN (CUARDACH ({0,1,2,3,4,5,6,7,8,9}, A2 & "0123456789"));

2). Foirmle 2: =MATCH(TRUE,ABS(CODE(MID(A2,ROW($A$1:INDEX(A:A,LEN(A2))),1))-52.5)<5,0) + Ctrl + Shift + Iontráil;

3). Foirmle 3: =MIN(IF(ISERROR(FIND({1;2;3;4;5;6;7;8;9;0},A2)),"",FIND({1;2;3;4;5;6;7;8;9;0},A2))).

2. Ansin taispeántar suíomh na chéad uimhreach den chéad sreang sa chill B2. Anois tarraing an Láimhseáil Líon isteach go cill B7 chun an raon thíos a líonadh.

Ansin liostáiltear gach suíomh céaduimhir de na teaghráin iomlána.


Faigh suíomh na huimhreach deireanaí i sreangán téacs in Excel

Tar éis dúinn seasamh na chéad uimhreach a fháil, tosaímid anois ag aimsiú suíomh na huimhreach deireanaí i dtéada.

Sa chuid seo, tá dhá fhoirmle ann duit.

Foirmle 1: = MAX (IF (ISNUMBER (VALUE (MID (A2, ROW (INDIRECT ("1:" & LEN (A2)), 1))), ROW (INDIRECT ("1:" & LEN (A2)))) ) + Ctrl + Shift + Iontráil;

Foirmle 2: =MAX(IFERROR(FIND({1,2,3,4,5,6,7,8,9,0},A2,ROW(INDIRECT("1:"&LEN(A2)))),0)) + Ctrl + Shift + Iontráil

1. Roghnaigh cill B2, cóipeáil agus greamaigh ceann de na foirmlí thuas sa Bharra Foirmle, ansin brúigh Ctrl + Shift + Iontráil eochracha ag an am céanna. Ansin is féidir leat na taispeántais toraidh i B2 a fheiceáil.

2. Roghnaigh an B2, tarraing an Láimhseáil Líon isteach go cill B7 chun an raon a líonadh go huathoibríoch.

Ansin gheobhaidh tú suíomhanna de na huimhreacha deireanacha go léir den téad téacs iomlán láithreach.


Déan téacs agus uimhir a scaradh go héasca ó chill amháin ina dhá cholún in Excel:

Le Kutools le haghaidh Excel'S Cealla Scoilt áirgiúlacht, is féidir leat raon cealla a roinnt ina sraitheanna nó ina gcolúin de réir deighilteora ar leith, téacs roinnte agus uimhreacha nó téacs a roinnt de réir faid deimhnithe. Íoslódáil agus bain triail as anois! (Conair saor in aisce 30 lá)


Earraí gaolmhara:


Na hUirlisí Táirgiúlachta Oifige is Fearr

Réitíonn Kutools for Excel an chuid is mó de do chuid Fadhbanna, agus Méadaíonn sé do Tháirgiúlacht 80%

  • Athúsáid: Cuir isteach go tapa foirmlí casta, cairteacha agus aon rud a d'úsáid tú roimhe seo; Cealla a Chriptiú le pasfhocal; Cruthaigh Liosta Ríomhphoist agus seol ríomhphoist ...
  • Barra Foirmle Super (cuir línte iolracha téacs agus foirmle in eagar go héasca); Leagan Amach Léitheoireachta (líon mór cealla a léamh agus a chur in eagar go héasca); Greamaigh go dtí an Raon Scagtha...
  • Cumaisc Cealla / Sraitheanna / Colúin gan Sonraí a chailleadh; Ábhar Cealla Scoilt; Comhcheangail Sraitheanna / Colúin Dúblacha... Cill Dúblach a Chosc; Déan comparáid idir Ranganna...
  • Roghnaigh Dúblach nó Uathúil Sraitheanna; Roghnaigh Blank Rows (tá na cealla uile folamh); Aimsigh Super agus Fuzzy Aimsigh i go leor Leabhar Oibre; Roghnaigh go randamach ...
  • Cóip Díreach Cealla Il gan tagairt fhoirmle a athrú; Tagairtí Cruthaigh Auto chuig Bileoga Il; Cuir Urchair isteach, Boscaí Seiceála agus go leor eile ...
  • Sliocht Téacs, Cuir Téacs leis, Bain de réir Poist, Bain Spás; Subtotals Paging a chruthú agus a phriontáil; Tiontaigh Idir Ábhar Cealla agus Tráchtanna...
  • Scagaire Super (scéimeanna scagaire a shábháil agus a chur i bhfeidhm ar bhileoga eile); Ard-Sórtáil de réir míosa / seachtaine / lae, minicíocht agus níos mó; Scagaire Speisialta le cló trom, iodálach ...
  • Comhcheangail Leabhair Oibre agus Bileoga Oibre; Cumaisc Táblaí bunaithe ar eochaircholúin; Roinn Sonraí i Ilbhileoga; Baisc Tiontaigh xls, xlsx agus PDF...
  • Níos mó ná 300 gné chumhachtach. Tacaíochtaí Office / Excel 2007-2019 agus 365. Tacaíonn sé le gach teanga. Imscaradh éasca i d’fhiontar nó d’eagraíocht. Gnéithe iomlána triail saor in aisce 30 lá. Ráthaíocht ar ais airgid 60 lá.
cluaisín kte 201905

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á!
bun officetab
Say something here...
symbols left.
You are guest
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Mehidy Hassan · 2 months ago
    @George Many Thanks , Great
  • To post as a guest, your comment is unpublished.
    madgrappler · 1 years ago
    Thought I would let everyone know that I needed to find the last position of the house numbers in an address field in access. The only way I could do this was to export a short query to excel and run this formula. I know there is a way to get the excel functions in access but this was much easier. I had addresses that had varying house number lengths and then you throw in the 1st, 2nd, 3rd...St., Ave into the mix within the street name and you got a major problem parsing a very bad formatted address string.

    address examples 1234 nw (or NW) 4th St.
    12 West St North (or N)
    123,456, and 789 Heritage Circle (or Crc)
    123 & 456 N 1st. St

    I figured out a way to parse off the first and second example real quick with some research (I would give credit, but right now I can't remember where I got the answer). It involved creating a VBA function to accomplish it. That worked great but I came to a problem when we come to the first "," or "and" or "&".

    Using this formula in excel found the last number I needed without choosing the street number. Since most house numbers ended with a space " " between them and the direction segment or the street name segment, I added --- &" " after the find formula. Like this: in an array formula
    =MAX(IFERROR(FIND({1,2,3,4,5,6,7,8,9,0}&" ",E2,ROW(INDIRECT("1:"&LEN(E2)))),0))
    A quick export back to an access table and wala! you have the number.
    202 & 206 N Blanche Ave = 9

    Now I know I could probably parse the rest of the address in excel but it actually worked real well in Access, so I just decided to do the rest there.

    If there is a way to do it all in Access, I couldn't find it or figure it out.
  • To post as a guest, your comment is unpublished.
    Borja · 2 years ago
    goood, thanks
  • To post as a guest, your comment is unpublished.
    crystal · 2 years ago
    @Guess You are welcome O(∩_∩)O
  • To post as a guest, your comment is unpublished.
    Guess · 2 years ago
    That's what I needed =MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A2&"0123456789"));

    thank you very much!
  • To post as a guest, your comment is unpublished.
    Wajid · 2 years ago
    @Jon Adams Hats off mate..
  • To post as a guest, your comment is unpublished.
    crystal · 2 years ago
    @Francis Hi,
    Sorry can't help with this.
  • To post as a guest, your comment is unpublished.
    Francis · 2 years ago
    how to get this to work in powerpivot
  • To post as a guest, your comment is unpublished.
    Datta · 4 years ago
    @George Hi George,

    your formula is may meet my requirement.

    I need similar formula to find out digit position in the string listed in "A" row in B row

    Required output
    8
    5
    1
    4
    3
    1 3
    2
    5 5
    6
    6 1
    7
    9
    9 1
    1 6
    0
    9 3
    0 2
    7 4
    9 3
    6 5
    5 7
    4 9
    8 10
    2 10
    0 8
    1 9
  • To post as a guest, your comment is unpublished.
    LanaMadAboutExcel · 4 years ago
    .... and here I thought that I knew Excel well. Bravo!!!!!
  • To post as a guest, your comment is unpublished.
    George · 4 years ago
    And here is a formula for finding the position of the last numeric character in a string, but WITHOUT using an array formula:

    =MAX(SEARCH(CHAR(9),SUBSTITUTE("0123456789"&A1,{0,1,2,3,4,5,6,7,8,9},CHAR(9),LEN(A1)+10-LEN(SUBSTITUTE("0123456789"&A1,{0,1,2,3,4,5,6,7,8,9},"")))))-10

    The number 10 appearing in this formula, are due to the length of the constant string "0123456789", that is concatenated in this formula.
  • To post as a guest, your comment is unpublished.
    Ashabel · 4 years ago
    This was exactly what I wanted. Thank you.
  • To post as a guest, your comment is unpublished.
    Jon Adams · 5 years ago
    The function

    1). Formula 1: =MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A2&"0123456789"));

    It's absolutely what i needed and extremely cool!

    Thanks so much!

    Jon