0% found this document useful (0 votes)
68 views

Text Formulas

The document discusses various text formulas in Microsoft Excel that allow users to manipulate and analyze text data. It covers formulas to change the case of text (UPPER, LOWER, PROPER), check if a cell contains text (ISTEXT), check if a cell matches specific text (IF), check if part of a cell matches text (SEARCH, IF, ISNUMBER), connect strings (CONCATENATE, &), convert text to different formats using TEXT(), count occurrences of a value using COUNTIF, and trim spaces using TRIM. Examples are provided for each formula.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PPSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
68 views

Text Formulas

The document discusses various text formulas in Microsoft Excel that allow users to manipulate and analyze text data. It covers formulas to change the case of text (UPPER, LOWER, PROPER), check if a cell contains text (ISTEXT), check if a cell matches specific text (IF), check if part of a cell matches text (SEARCH, IF, ISNUMBER), connect strings (CONCATENATE, &), convert text to different formats using TEXT(), count occurrences of a value using COUNTIF, and trim spaces using TRIM. Examples are provided for each formula.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PPSX, PDF, TXT or read online on Scribd
You are on page 1/ 18

Topic :- Text Formulas (Ms-Excel)

Mr. Nilesh Dinkar


Computer Department
Dhruv Academy
Change case Change the case of text
Let's say you want to convert text from uppercase to lowercase or
Check Cell from lowercase to proper case to make it more readable. To change
the case of text, use the UPPER, LOWER, or PROPER functions

Match Text 1
A2
Match Text 2
Name
nancy Davolio
Connect Strings
Formula Description (Result)

Remove Spaces Changes text to all UPPERCASE


=UPPER(A2)
(NANCY DAVOLIO)
Changes text to all lowercase
=LOWER(A2)
Count (nancy davolio)

=PROPER(A2) Changes text to Title Case


(Nancy Davolio)
Use of Text()
Change case Check if a cell has any text in it
To do this task, use the ISTEXT function.
Check Cell
Example
Match Text 1

Match Text 2 A
1 Data

Connect Strings 2 Davolio


3 123
Remove Spaces Formula Description
Checks to see if cell A2 has
=ISTEXT(A2) text (TRUE)
Count
Checks to see if cell A3 has
=ISTEXT(A3)
text (FALSE)
Use of Text()
CONTINUE…
Change case
Check if a cell matches
Check Cell
specific text
To do this task, use the IF function. The IF function returns results
that you specify based on a condition
Match Text 1
A
Match Text 2
Data
Connect Strings 1 Computer
2 comp Description
Remove Spaces =IF(A2=“Computer","OK", "Not Checks to see if A2 is Computer
OK") (OK)

Count =IF(A2=“comp", TRUE, FALSE) Checks to see if A2 is comp


(FALSE)

Use of Text()
Change case
Check if part of a cell matches
specific text
Check Cell To do this task, use the IF, SEARCH and ISNUMBER functions.

Match Text 1 EXAMPLE :-


A B

Match Text 2 1 Data


2 Davolio
3 BD123
Connect Strings
Formula Description (Result)
=IF(ISNUMBER(SEARCH("v",A2))," Checks to see if A2 contain the
Remove Spaces OK", "Not OK") letter v (OK)
Checks to see if A3 contains BD
=ISNUMBER(SEARCH("BD",A3))
Count (TRUE)

Use of Text()
Change case Connect the strings.
Let's say you want to create a single Full Name column by
Check Cell combining two other columns, First Name and Last Name. To
combine first and last names, use the CONCATENATE
Match Text 1 function or the ampersand (&) operator.

Example
Match Text 2
A B
1 First Name Last Name
Connect Strings 2 Nancy Davolio
3 Andrew Fuller
Remove Spaces Formula Description (Result)
Combines the names above,
=A2&" "&B2
separated by a space (Nancy Davolio)
Count Combines the names above,
=B3&", "&A3 separated by a comma (Fuller,
Andrew)
Use of Text() Combines the names above,
=CONCATENATE(A2," ",B2)
separated by a space (Nancy Davolio)
TEXT FUNCTION
Change case

Check Cell In Excel, the Text function returns a value


converted to text with a specified format.
Match Text 1
The syntax for the Text function is:
Match Text 2
=Text( value, format )
Connect Strings
value is the value to convert to text.
Remove Spaces format is the format to display the results in.

Count

Use of Text()
CONTINUE
Change case
Convert dates to the text for the day
of the week.
Check Cell
A
Date
Match Text 1
19-Feb-2010
3-Jan-2010
Match Text 2
Formula Description (Result)

Connect Strings Calculates the day of the week


=TEXT(A2, "dddd") for the date and returns the
full name of the day of the
Remove Spaces week (Friday)

Calculates the day of the week


Count =TEXT(A3, "ddd") for the date and returns the
abbreviated name of the day
of the week (Sun)
Use of Text()
Uses of Text ( )
Change case

Check Cell

Match Text 1

Match Text 2

Connect Strings Based on the Excel


spreadsheet above:
Remove Spaces =Text(A1, "$#,##0.00") would return "$7,678.87"
=Text(A1, "0") would return "7679"
Count =Text(A2, "0.0") would return "123.7"
=Text(1277, "#,##0") would return "1,277"
Use of Text() =Text(C1, "yyyy/mm/dd") would return "2003/12/31"
=Text(C1, "mmm dd, yyyy") would return "Dec 31, 2003"
Trim Function
Change case

Check Cell In Excel, the Trim function returns a text value


with the leading and trailing spaces removed.
Match Text 1 The syntax for the Trim function is:

Match Text 2 =Trim( text )


text is the text value to remove the leading and
Connect Strings trailing spaces from.
 
Remove Spaces

Count

Use of Text()
Count how often a single value occurs by
Change case using a function
• Use the COUNTIF function to perform this task
Check Cell • This function counts the number of cells within a range that
meet a single criterion that you specify.

Match Text 1 A B
Salesperson Invoice
Match Text 2 Buchanan 15,000
Buchanan 9,000
Connect Strings
Suyama 8,000

Remove Spaces Formula Description (Result)


Number of entries for
=COUNTIF(A2:A7,"Buchanan")
Buchanan
Count
=COUNTIF(A2:A7,A4) Number of entries for Suyama
Number of invoice values less
Use of Text() =COUNTIF(B2:B7,"< 20000")
than 20,000.
ISTEXT( ) - HELP -
ISNUMBER( )  One of Excel's most useful features is that it
allows users to create custom formulas to
IF( )
perform calculations on their data.
 Excel also contains built-in formulas called
functions that make it easy to perform common
calculations on data.
 Here you will find step by step tutorials and tips
SEARCH( )
on how to use formulas and the common and

TRIM( ) less common functions available in Excel.

COUNT( )
ISTEXT( ) - HELP -
ISNUMBER( )
What Excel's ISTEXT function does?
IF( ) The ISTEXT formula checks whether a value entered is text or not.
If the formula validates a value as text, ISTEXT returns "TRUE." If
not, it returns a value of "FALSE.“

Syntax:-
 
=ISTEXT(value)
SEARCH( ) Example :-

TRIM( ) =ISTEXT("abc") TRUE


=ISTEXT(“1000") TRUE
COUNT( ) =ISTEXT(100) FALSE
ISTEXT( )
- HELP -
ISNUMBER( )
In Excel, the If function returns one value if a
specified condition evaluates to TRUE, or another
IF( )
value if it evaluates to FALSE.

The syntax for the If function is:

If( condition, value_if_true, value_if_false )


For Example :-
SEARCH( )
=If(A1>10, "Larger", "Smaller")
TRIM( ) =If(A1=20, "Equal", "Not Equal")

COUNT( )
ISTEXT( ) - HELP -
ISNUMBER( )
What Excel's ISNUMBER function does?
IF( ) The ISNUMBER formula checks whether a value entered is
number or not. If the formula validates a value as number,
ISNUMBER returns "TRUE." If not, it returns a value of "FALSE.“

Syntax:-
 
=ISNUMBER(value)
SEARCH( ) Example :-

TRIM( ) =ISNUMBER ("abc") TRUE


=ISNUMBER (“1000") TRUE
COUNT( ) =ISNUMBER (100) FALSE
ISTEXT( ) - HELP -
What Excel's SEARCH function does?
ISNUMBER( )
 In Excel, the Search function returns the location of a
IF( ) substring in a string.
 The search is NOT case-sensitive.

Syntax:-
 
=Search( text1, text2, start_position )

text1 is the substring to search for in text2.


SEARCH( )
text2 is the string to search.
start_position is the position in text2 where the
TRIM( ) search will start.
COUNT( ) The first position is 1.
If the Search function does not find a match, it will return a
#VALUE! error.
ISTEXT( ) - HELP -
ISNUMBER( )

IF( )

SEARCH( )

TRIM( )

COUNT( )
ISTEXT( ) - HELP -
ISNUMBER( )

IF( )

SEARCH( )

TRIM( )

COUNT( )

You might also like