IFTEXT

IFTEXT(Array,[Value_if_Text])
Array
Required. Range to check for text.
[Value_IF_Text]
Optional. Value to return for text cells; ignored=0.

IFTEXT is like IFERROR for text. It returns Value_If_Text for text cells and the array itself otherwise.

schardt679

Board Regular
Joined
Mar 27, 2021
Messages
58
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
  2. Mobile
  3. Web
IFTEXT is like IFERROR for text. It returns Value_If_Text for text cells and the array itself otherwise.

Calls IFBLANK.
Other functions on minisheet: AFORMULATEXT.

Screen Tip/ Comment: =IFTEXT(Array☛ range to check for text, [Value_If_Text]☛ value to return for text cells; ❎=0✅) ⁂[]=optional; ✅=default; ❎=omit

Excel Formula:
=LAMBDA(Array,[Value_If_Text],
      LET(Arr, Array,          Val, Value_If_Text,
             Return, IF(ISTEXT(Arr), Val,  IFBLANK(Arr, "")),
             Return
      )
  )
LAMBDA Examples.xlsx
ABCDEFGHI
1IFTEXT
2
3Original DataValue_If_TextResult
41 Numbers only1Numbers only
5 2Numbers only2
6#N/A#N/A
7
8123ABC123Numbers only
9
10B5 contain space
11C4 contains a non-breaking space
12C8 contains white text
13Formula in cell G4☛ =IFTEXT(B4:C8, E4)
14
IFTEXT
Cell Formulas
RangeFormula
G4:H8G4=IFTEXT(B4:C8, E4)
B13B13=AFORMULATEXT(G4)
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,223,575
Messages
6,173,148
Members
452,502
Latest member
PQCurious

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