Is it possible to read numbers stored as text with a formula?

excelos

Well-known Member
Joined
Sep 25, 2011
Messages
579
Office Version
  1. 365
Platform
  1. Windows
Hello!

Is there a formula that will read the numbers from a column that contains numbers but stored as text?

Thanks!
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

DanteAmor

Well-known Member
Joined
Dec 3, 2018
Messages
16,605
Office Version
  1. 2013
Platform
  1. Windows
If you have cell B3 this: '123.
In cell C3 put the formula: =--B3

It will give you the number 123
 
Upvote 0

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
68,097
Office Version
  1. 365
Platform
  1. Windows
You can also convert the whole column to "numbers entered as numbers and not text" all at once by highlighting the column, selecting "Text to Columns" from the "Data" menu, and clicking "Finish".
 
Upvote 0

DanteAmor

Well-known Member
Joined
Dec 3, 2018
Messages
16,605
Office Version
  1. 2013
Platform
  1. Windows
Or Access to error checking box and Convert to Number

Remove-leading-zeros-Excel-2.png
 
Upvote 0

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
68,097
Office Version
  1. 365
Platform
  1. Windows
ADVERTISEMENT
Or Access to error checking box and Convert to Number
Can that be applied to the whole column at once, or do you need to go cell-by-cell?
 
Upvote 0

DanteAmor

Well-known Member
Joined
Dec 3, 2018
Messages
16,605
Office Version
  1. 2013
Platform
  1. Windows
Can that be applied to the whole column at once, or do you need to go cell-by-cell?

Yes, select all cells Access to error checking box and Convert to Number
 
Upvote 0

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
68,097
Office Version
  1. 365
Platform
  1. Windows
ADVERTISEMENT
Yes, select all cells Access to error checking box and Convert to Number
Cool! I never knew you could do that on multiple cells at once.
I learned a new trick today! ;)
Thank you!
 
Upvote 0

DanteAmor

Well-known Member
Joined
Dec 3, 2018
Messages
16,605
Office Version
  1. 2013
Platform
  1. Windows
Cool! I never knew you could do that on multiple cells at once.
I learned a new trick today! ;)
Thank you!

A friend from the office showed it to me :LOL:. It is always possible to learn something new every day.
 
Upvote 0

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
68,097
Office Version
  1. 365
Platform
  1. Windows
It is always possible to learn something new every day.
Yes, especially with Excel.
You never stop learning!:cool:
 
Upvote 0

excelos

Well-known Member
Joined
Sep 25, 2011
Messages
579
Office Version
  1. 365
Platform
  1. Windows
I need to refer to a column that has numbers stored as text for a COUNTIFS.

Can I use e.g. --$A:$A to refer to the column A and use it as numbers?
 
Upvote 0

Forum statistics

Threads
1,195,924
Messages
6,012,339
Members
441,691
Latest member
starlightmuse

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top