Pad the number with dashes : REPT « Text functions « Microsoft Office Excel 2007 Tutorial
Home
Microsoft Office Excel 2007 Tutorial
1.
Introduction
2.
Editing
3.
Format Style
4.
Table
5.
Chart
6.
Formula
7.
Workbook Worksheet
8.
Wordart Clip Art Shape Picture
9.
PivotTable PivotChart
10.
Data Analysis
11.
Macro ActiveX Add in
12.
Security
13.
Collaboration
14.
Database functions
15.
Date Time functions
16.
Engineering functions
17.
Information functions
18.
Logical functions
19.
Lookup Reference functions
20.
Math Trigonometry functions
21.
Statistical functions
22.
Text functions
VBA / Excel / Access / Word
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
»
Text functions
»
REPT
22.18.5.Pad the number with dashes
Input the formula: =REPT
(
"-"
,
25
-LEN
(
TEXT
(
A1,
"$0.00*-"
)))
&TEXT
(
A1,
"0.00*-"
)
22.18.REPT
22.18.1.
REPT(text,number_times) repeats text a given number of times
22.18.2.
Pad the number with asterisks on the left
22.18.3.
Display asterisk padding on both sides of the number
22.18.4.
Display the value along with the asterisk padding on the left:
22.18.5.
Pad the number with dashes
22.18.6.
To pad the number with asterisks, use two asterisks
www.java2java.com
|
Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.