Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
angelgrant
 
Posts: n/a
Default formulae for adding a forward slash automatically into a cell


Hi every1,

I'm sort new to excel and im looking for a formulae to automatically
add a forward slash after every 3rd number and before the 4th number.

If anyone can help it would be greatly appreciated

Thanks


--
angelgrant
------------------------------------------------------------------------
angelgrant's Profile: http://www.excelforum.com/member.php...o&userid=35620
View this thread: http://www.excelforum.com/showthread...hreadid=553984

  #2   Report Post  
Posted to microsoft.public.excel.newusers
CLR
 
Posts: n/a
Default formulae for adding a forward slash automatically into a cell

=LEFT(A1,3)&"\"&MID(A1,4,99)

Vaya con Dios,
Chuck, CABGx3



"angelgrant" wrote:


Hi every1,

I'm sort new to excel and im looking for a formulae to automatically
add a forward slash after every 3rd number and before the 4th number.

If anyone can help it would be greatly appreciated

Thanks


--
angelgrant
------------------------------------------------------------------------
angelgrant's Profile: http://www.excelforum.com/member.php...o&userid=35620
View this thread: http://www.excelforum.com/showthread...hreadid=553984


  #3   Report Post  
Posted to microsoft.public.excel.newusers
Max
 
Posts: n/a
Default formulae for adding a forward slash automatically into a cell

"angelgrant" wrote:
I'm sort new to excel and im looking for a formulae to automatically
add a forward slash after every 3rd number and before the 4th number.


One try ..

Assuming numbers in A1 down,

Put in B1:
=IF(LEN(A1)=0,"",IF(LEN(A1)<4,A1,LEFT(A1,3)&"\"&MI D(A1,4,99)))
Copy down

I've assumed that numbers less than 4 digits are to be left untouched
(the "99" in MID is just an arbitrary figure)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
  #4   Report Post  
Posted to microsoft.public.excel.newusers
CLR
 
Posts: n/a
Default formulae for adding a forward slash automatically into a cell

This one assumes that no slash should be desired it the value were TEXT.

=IF(ISTEXT(A1),A1,IF(LEN(A1)=0,"",IF(LEN(A1)<4,A1, LEFT(A1,3)&"\"&MID(A1,4,99))))

Vaya con Dios,
Chuck, CABGx3



"angelgrant" wrote:


Hi every1,

I'm sort new to excel and im looking for a formulae to automatically
add a forward slash after every 3rd number and before the 4th number.

If anyone can help it would be greatly appreciated

Thanks


--
angelgrant
------------------------------------------------------------------------
angelgrant's Profile: http://www.excelforum.com/member.php...o&userid=35620
View this thread: http://www.excelforum.com/showthread...hreadid=553984


  #5   Report Post  
Posted to microsoft.public.excel.newusers
Debra Dalgleish
 
Posts: n/a
Default formulae for adding a forward slash automatically into a cell

If the characters are all numbers, and the number of characters is
consistent, you could use cell formatting:

Select the cells, and choose FormatCells
On the Number tab, select the Custom category
In the text box, enter: 000"/"000
Click OK

angelgrant wrote:
Hi every1,

I'm sort new to excel and im looking for a formulae to automatically
add a forward slash after every 3rd number and before the 4th number.

If anyone can help it would be greatly appreciated

Thanks




--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

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
Row Expansion Susan Excel Worksheet Functions 11 February 28th 06 07:15 PM
cell color index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM
copy combobox - cell link to change automatically Bojana Excel Worksheet Functions 1 June 8th 05 02:35 PM
Automatically Put a Value in a specific cell. Shawn Excel Discussion (Misc queries) 2 May 23rd 05 09:05 PM
Edit cell automatically takes you to cell cgrant Excel Worksheet Functions 1 May 20th 05 04:30 PM


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

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

About Us

"It's about Microsoft Excel"