Skip i'r prif gynnwys

Sut i newid neu drosi testun i rif yn Excel?

Pan fyddwch yn mewnforio data o ryw ffynhonnell, megis Mynediad neu ffeiliau testun, gellir fformatio rhifau fel testun mewn celloedd yn achlysurol. Bydd cyfrifiadau a didoli yn mynd yn anghywir os caiff rhifau eu fformatio neu eu storio fel testun. Dyma sawl dull i drosi testun yn rhifau yn Microsoft Excel.

doc-trosi-testun-i-rhif6 -2 doc-trosi-testun-i-rhif7

Trosi testun yn rhif gyda rheolau gwirio Gwallau yn Excel

Trosi testun yn gyflym i rif gyda Kutools ar gyfer Excel

Trosi testun yn rhif gyda Paste Special


Trosi testun yn rhif gyda rheolau gwirio Gwallau yn Excel

A siarad yn gyffredinol, pan fydd y rhifau'n cael eu fformatio neu eu storio mewn celloedd fel testun, bydd arwydd gwall doc-testun-i-rhif-7 yng nghornel chwith uchaf y gell. Ar ôl dewis y gell, mae'n dangos botwm gwall doc-newid-testun-rhif-5 cyn y gell hon. Cliciwch y botwm gwall doc-newid-testun-rhif-5, a bydd yn arddangos bwydlen, gallwch glicio ar Trosi i Rifeitem orchymyn i drosi'r testun yn y gell yn rhif. Gweler y screenshot:

doc-trosi-testun-i-rhif1

Yna mae'r rhif sydd wedi'i storio fel testun wedi'i drosi i rif. Ac yna ailadroddwch y ffordd hon ar gyfer celloedd eraill.

Os nad oes arwyddion gwall doc-testun-i-rhif-7 yng nghornel chwith uchaf y celloedd, gallwch hefyd ddefnyddio'r Gwirio Gwall gorchymyn dan Fformiwla tab i ddelio ag ef. Gwnewch fel hyn:

1. Cliciwch Fformiwlâu > Gwirio Gwall, gweler y screenshot:

doc-trosi-testun-i-rhif2

2. Yna yn y Gwirio Gwall blwch deialog, cliciwch Trosi i Rif botwm. A chliciwch ar y botwm hwn dro ar ôl tro i drosi testun arall yn rhifau.

doc-trosi-testun-i-rhif3

3. Pan fydd y testun cell olaf wedi'i newid i rif, bydd yn popio blwch prydlon i'ch atgoffa bod yr holl destun wedi'i drosi'n rhifau.

doc-trosi-testun-i-rhif4

Ond pan fydd blociau mawr o ddata y mae angen eu newid, bydd y dull hwn yn ddiflas ac yn cymryd llawer o amser.


Trosi testun yn gyflym i rif gyda Kutools ar gyfer Excel

Os ydych chi wedi gosod Kutools ar gyfer Excel ar eich cyfrifiadur, ei Gwerthoedd yr Heddlu mewn Celloedd bydd offeryn yn eich helpu i drosi'r holl rifau sy'n cael eu storio fel testun yn rhifau heb golli fformatau ac arddulliau gwreiddiol.

Kutools ar gyfer Excel yn cynnwys mwy na 300 o offer Excel defnyddiol. Am ddim i geisio heb unrhyw gyfyngiad mewn 30 diwrnod. Get it Now.

1. Cliciwch Kutools > Mwy > Gwerthoedd yr Heddlu mewn Celloedd…. Gweler y screenshot:

doc-trosi-testun-i-rhif8

2. Yna mae'n arddangos y Gwerth yr Heddlu mewn celloedd blwch deialog. Nodwch yr ystod sy'n cynnwys rhifau sydd wedi'u storio fel testun, a gwiriwch y Testun i rif opsiwn.

doc-trosi-testun-i-rhif9

3. Ac yna cliciwch OK or Gwneud cais, bydd yr holl rifau sy'n cael eu storio fel testun yn cael eu trosi'n rhifau yn yr ystod a ddewiswyd.

Tip: I ddefnyddio'r nodwedd hon, dylech osod Kutools ar gyfer Excel yn gyntaf, os gwelwch yn dda cliciwch i lawrlwytho a chael treial am ddim 30 diwrnod yn awr.

Trosi testun yn rhif gyda Paste Special

Y trydydd dull yw trosi rhifau sydd wedi'u storio fel testun trwy gyfrifo gyda gorchymyn Paste Special yn Microsoft Excel.

1. Rhowch rif 0 mewn cell wag a'i chopïo;

2. Dewiswch y celloedd amrediad sy'n cynnwys rhifau sydd wedi'u storio fel testun;

3. De-gliciwch yr ystod a ddewiswyd, a dewis y Gludo Arbennig opsiwn o'r ddewislen cyd-destun;

4. Yna mae'n dangos Gludo Arbennig blwch deialog, a gwiriwch y Popeth opsiwn a Ychwanegu opsiwn;

doc-trosi-testun-i-rhif5

5. Cliciwch OK, a bydd yr holl rifau sy'n cael eu storio fel testun yn cael eu trosi'n rhif. Gweler sgrinluniau:

doc-trosi-testun-i-rhif6 -2 doc-trosi-testun-i-rhif7
Awgrymiadau:
  • Os nad ydych chi am newid fformatio'r gell yn yr ystod ar ôl trosi testun yn rhif, dewiswch gludo fel Gwerth yn y Gludo opsiwn.
  • Yn y Gweithredu opsiynau, dewiswch y Ychwanegu opsiwn neu Tynnwch opsiwn.
  • Anfantais y dull hwn: os yw'r amrediad yn cynnwys celloedd gwag, bydd yn llenwi'r holl gelloedd gwag â rhif 0.
Comments (4)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
How to translate a number into text in different languages?How to translate a number into text in different languages on Excel ?I use an online service https://numbertowords.org/ and it's not very convenient for me.
Help me, Please!
This comment was minimized by the moderator on the site
Sir i want to change letter into number in excel 2007
i am working in shop where prices are mentioned in code
examle
ioxzz = prices 34800
a = 1
e = 2
i = 3
o = 4
u = 5
v = 6
w = 7
x = 8
y = 9
z = 0
plz send me formula i change these code price into value if any one now
This comment was minimized by the moderator on the site
Kathy, Your formula worked perfectly. This approach is exactly what I needed for my reports. THANK YOU!
This comment was minimized by the moderator on the site
I run a report weekly that requires copying and pasting approximately 7000 rows of data exported from a system. Recently some changes were made so that the numbers were coming out stored as text. The data includes a selection of actual text entries and the rest numbers stored as text. This data gets copied and pasted into a master template which then feeds other sheets/reports, but I needed the numbers to be stored as numbers. Due to the volume of the data and the fact that I'm not the only one performing this task (and some of the others are not Excel savvy) I needed to try and automate this process. I tried the =A1*1 formula and it worked for the numbers but the text I got a #VALUE! error. After much fiddling, I came up with the formula below and it works perfectly! =IF(AND(A1="Yes"),"Yes",IF(AND(A1="Not applicable"),"Not applicable",IF(AND(A1="No"),"No",A1*1)))
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations