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

excelos

Well-known Member
Joined
Sep 25, 2011
Messages
592
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!
 
So, are you saying that you cannot fix the format of column A?
Please explain the condition that you want to use for the COUNTIFS?
 
Last edited:
Upvote 0

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
So, are you saying that you cannot fix the format of column A?
Please explain the condition that you want to use for the COUNTIFS?

Yes, I want to avoid fixing the format of column A. I want to do it in a formula if possible.

The COUNTIFS is just a >65 condition.
 
Upvote 0
It's surprising how difficult it is to construct the equivalent COUNTIF(S) construction to:

=SUMPRODUCT(N(0+A1:A100>65))

The best I can come up with is:

=SUM(COUNTIFS(A:A,REPT("?",{0,1}+LEN(65))&{"","*"},A:A,">'"&{65,0}))

(replace the two instances of 65 as desired), though it's undoubtedly convoluted.

Regards
 
Upvote 0
It's surprising how difficult it is to construct the equivalent COUNTIF(S) construction to:

=SUMPRODUCT(N(0+A1:A100>65))

The best I can come up with is:

=SUM(COUNTIFS(A:A,REPT("?",{0,1}+LEN(65))&{"","*"},A:A,">'"&{65,0}))

(replace the two instances of 65 as desired), though it's undoubtedly convoluted.

Regards

I think it would be much easier with the VAL formula!
Any idea?
 
Upvote 0
Which formula? VAL's VBA, isn't it? I thought we were talking worksheet functions here?

There's a VALUE function, though, unlike with SUMPRODUCT, you cannot first apply functions to the ranges referenced as the criteria ranges within COUNTIF(S), SUMIF(S), etc. Hence my convoluted workaround.

Regards
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,021
Latest member
Mohamed Magdi Tawfiq Emam

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
Back
Top