Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CDiddy
 
Posts: n/a
Default Function to add multiple "."s with a cell?


Hi All,

I assume there is a quick and easy formula for this, but the only way I
have figured out how to do it requires three forumlas in 3 seperate
cells.

Basically, I need to turn a 8 digit number into an IP address.

So, Say in cell A1 I have 19216801. I need a formula that will make
cell A2 read 192.168.0.1

I assume that theres an easy way to do this, but I've yet to figure it
out.

Your help will be much appreciated!


--
CDiddy
------------------------------------------------------------------------
CDiddy's Profile: http://www.excelforum.com/member.php...o&userid=29492
View this thread: http://www.excelforum.com/showthread...hreadid=491925

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
John Michl
 
Posts: n/a
Default Function to add multiple "."s with a cell?

Two ways...

You could leave it as is but use a custom format. Right click on the
cell, choose Format Cells, pick Custom from the list and enter
###"."###"."#"."# in the Type box.

Or use a formula in another cell such as

=LEFT(A1,3)&"."&MID(A1,4,3)&"."&MID(A1,7,1)&"."&RI GHT(A1,1)

- John
www.JohnMichl.com

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Function to add multiple "."s with a cell?

What happens when 19216801represents 19.216.80.1, or there are more than 8
digits?

--

HTH

RP
(remove nothere from the email address if mailing direct)


"CDiddy" wrote in
message ...

Hi All,

I assume there is a quick and easy formula for this, but the only way I
have figured out how to do it requires three forumlas in 3 seperate
cells.

Basically, I need to turn a 8 digit number into an IP address.

So, Say in cell A1 I have 19216801. I need a formula that will make
cell A2 read 192.168.0.1

I assume that theres an easy way to do this, but I've yet to figure it
out.

Your help will be much appreciated!


--
CDiddy
------------------------------------------------------------------------
CDiddy's Profile:

http://www.excelforum.com/member.php...o&userid=29492
View this thread: http://www.excelforum.com/showthread...hreadid=491925



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CDiddy
 
Posts: n/a
Default Function to add multiple "."s with a cell?


This is exactly what I needed. Thanks very much!

I knew about Left/Right functions, but not the MID!

C

Two ways...

You could leave it as is but use a custom format. Right click on the
cell, choose Format Cells, pick Custom from the list and enter
###"."###"."#"."# in the Type box.

Or use a formula in another cell such as

=LEFT(A1,3)&"."&MID(A1,4,3)&"."&MID(A1,7,1)&"."&RI GHT(A1,1)

- John



--
CDiddy
------------------------------------------------------------------------
CDiddy's Profile: http://www.excelforum.com/member.php...o&userid=29492
View this thread: http://www.excelforum.com/showthread...hreadid=491925

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
John Michl
 
Posts: n/a
Default Function to add multiple "."s with a cell?

I wondered the same thing when I first posted but the original poster
asked specifically for an 8 character solution.

I don't know much about IP address standards but I believe that some
have two characters instead of one in those rightmost sections. If
there is a different number of characters or if the pattern is
different than the original poster suggested, I would think that you'd
be able to determine by your companies IP naming standards how to
modify the format or the parsing formula.

It begs the question is 123.123.1.1 the same as 123.123.01.01? If so,
I'd think you want to always use the leading zeros so that the formula
is consistent. On the otherhand, CDiddy may have had a one time need
and may not be concerned about future uses or IPs that look different
than the first example.

- John
www.JohnMichl.com



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Function to add multiple "."s with a cell?

Any part of the IP address can be 1 to 3 digits.

It seems that the last statement is true John as the OP seems happy.

Regards

Bob

"John Michl" wrote in message
ups.com...
I wondered the same thing when I first posted but the original poster
asked specifically for an 8 character solution.

I don't know much about IP address standards but I believe that some
have two characters instead of one in those rightmost sections. If
there is a different number of characters or if the pattern is
different than the original poster suggested, I would think that you'd
be able to determine by your companies IP naming standards how to
modify the format or the parsing formula.

It begs the question is 123.123.1.1 the same as 123.123.01.01? If so,
I'd think you want to always use the leading zeros so that the formula
is consistent. On the otherhand, CDiddy may have had a one time need
and may not be concerned about future uses or IPs that look different
than the first example.

- John
www.JohnMichl.com



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
Help: I need a function for finding next cell vertically with value tobriant Excel Worksheet Functions 1 July 12th 05 08:39 PM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
Hyperlinks using R[1]C[1] and offset function in its cell referenc Elijah-Dadda Excel Worksheet Functions 0 March 5th 05 03:31 AM
Hiding a function value in a cell until function used Paul Smithson Excel Worksheet Functions 1 February 25th 05 06:19 PM
Function making cell really "empty" Arvi Laanemets Excel Worksheet Functions 2 January 31st 05 05:23 PM


All times are GMT +1. The time now is 05:10 AM.

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"