#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default adding a character

Just add another check:

=IF(A1="","",IF(LEN(A1)8,A1,RIGHT(REPT("z",8)&A1, 8)))

"enrico via OfficeKB.com" wrote:

what if there are a lot of characters? i don't want to truncate the other
values. all i want is if my variable inside the cell is less than 8
characters then it will add another one to make it 8

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200910/1


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel insists on adding character to formula Pierre Excel Worksheet Functions 5 April 1st 09 08:03 PM
adding up a particular character in a row rkalabokes Excel Discussion (Misc queries) 3 May 9th 07 04:53 PM
Adding a character to a defined name with a formula or macro InfinityDesigns Excel Discussion (Misc queries) 20 June 24th 05 06:36 AM
Adding overscore to character in a cell in an Excell spreadsheet DrJoe Excel Discussion (Misc queries) 0 March 30th 05 04:47 PM
Adding a character to the beginning and end of txt in a cell Duracell Bunnies Excel Worksheet Functions 1 March 18th 05 06:27 PM


All times are GMT +1. The time now is 05:29 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"