NUMTEXT

=NUMTEXT(ARRAY)

Array
Required. Range to return numbers, text, and/or blanks

NUMTEXT leaves text including blanks alone, converts yes's/true's to 1's, no's/false's to 0's, and converts numbers stored as text to numbers

schardt679

Board Regular
Joined
Mar 27, 2021
Messages
58
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
  2. Mobile
  3. Web
NUMTEXT leaves text including blanks alone, converts yes's/true's to 1's, no's/false's to 0's, and converts numbers stored as text to numbers

Excel Formula:
=LAMBDA(Array,
     LET(Arr, Array,
        Return, SWITCH(Arr&"", "", "",  "YES", 1,  "NO", 0,  IFERROR(--(Arr), Arr)),
        Return
     )
  )
LAMBDA Functions.xlsx
ABCDEFG
1Original DataResults
2applebananaapplebanana
3123-456pear123123-456pear123
478627862
54/3/20214/3/20214428944289
61010
7YESNO10
8yesno10
NUMTEXT
Cell Formulas
RangeFormula
E2:F8E2=NUMTEXT(B2:C8)
C5C5=TODAY()
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,224,829
Messages
6,181,222
Members
453,024
Latest member
Wingit77

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