Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

More excel help !!!!

Thread Tools
 
Search this Thread
 
Old 21 July 2009, 06:16 PM
  #1  
druddle
Scooby Regular
Thread Starter
 
druddle's Avatar
 
Join Date: Mar 2001
Location: Berkshire
Posts: 5,528
Likes: 0
Received 0 Likes on 0 Posts
Default More excel help !!!!

Hello all

Can I ask for some more help from the Excel wizards ?

I am trying to use the replace function but I am not sure its the right thing, and even if it can do what I want.

I have a cell, A1 with the contents "bf400_p4unulf01", A2 has "28". In A3 I want to have the resulting output that says "9.0.0.28", where...

9.0. is entered as text
0. is generated because of the 1 in the string "bf400_p4unulf01"
28 is taken from cell A2

in the same manner, I have a cell, B1 with the contents "bf400_p4unulf02", A2 has "43". In A3 I want to have the resulting output that says "9.0.1.43", where...

9.0. is entered as text
1. is generated because of the 2 in the string "bf400_p4unulf02"
43 is taken from cell A2

I have tried with REPLACE and I cant get the 0. or 1. to appear in the right place.

Does anyone understand what I want to get, and how to do it ?

Thanks

Dave
Old 22 July 2009, 09:08 AM
  #2  
DJ Dunk
Moderator
Support Scoobynet!
iTrader: (5)
 
DJ Dunk's Avatar
 
Join Date: Nov 2001
Location: Not all those who wander are lost
Posts: 17,863
Received 0 Likes on 0 Posts
Default

Dave,

Can you confirm the rules for the 3rd part of the IP address?

1 = 0
2 = 1

Minus one each time?

If so:


=CONCATENATE("9.0.",RIGHT(A1,1)-1,".",B1)

. . . in cell C1 and drag it down.
Old 22 July 2009, 11:54 AM
  #3  
druddle
Scooby Regular
Thread Starter
 
druddle's Avatar
 
Join Date: Mar 2001
Location: Berkshire
Posts: 5,528
Likes: 0
Received 0 Likes on 0 Posts
Default

Hi Dunk,

Yes you are correct , 1=0, 2=1.

Dave
Old 22 July 2009, 11:56 AM
  #4  
DJ Dunk
Moderator
Support Scoobynet!
iTrader: (5)
 
DJ Dunk's Avatar
 
Join Date: Nov 2001
Location: Not all those who wander are lost
Posts: 17,863
Received 0 Likes on 0 Posts
Default

Originally Posted by druddle
Hi Dunk,

Yes you are correct , 1=0, 2=1.

Dave
This should work a treat then

=CONCATENATE("9.0.",RIGHT(A1,1)-1,".",B1)


Last edited by DJ Dunk; 22 July 2009 at 12:00 PM.
Old 22 July 2009, 06:56 PM
  #5  
bioforger
Scooby Regular
iTrader: (1)
 
bioforger's Avatar
 
Join Date: Jan 2002
Location: Pig Hill, Wiltsh1te
Posts: 16,995
Received 5 Likes on 5 Posts
Default

Looks like a good formula to me
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Mattybr5@MB Developments
Full Cars Breaking For Spares
28
28 December 2015 11:07 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
12
18 November 2015 07:03 AM
leg200
Subaru Parts
5
07 October 2015 07:31 AM
has-scooby
Subaru Parts
4
06 October 2015 03:47 PM
bluebullet29
General Technical
9
05 October 2015 02:17 PM



Quick Reply: More excel help !!!!



All times are GMT +1. The time now is 01:17 PM.