PC Review


Reply
Thread Tools Rate Thread

Adding data to a cell next to another cell with specific value

 
 
Gerhard Kriek
Guest
Posts: n/a
 
      9th May 2009
Hi I need to know how I can do the above.

Example I have a list of Ip Address 10.70.60.121 , 10.70.60.125 ,
10.70.10.50 etc

Now What I want to do is using a Macro if posiible add a cell next the the
one containing the IP address which will give me the location that I will
specify it should be .

Reason for this is we get a lot of lists with Ip address and we can only see
where these IP belong by manually searching the Gateways and then typing the
Sites in the next Colums next to the Ip colums .. will make my life easier if
I can run a Macro that can do this for me ...
Any help will be appreciated.

Regards Gerhard
 
Reply With Quote
 
 
 
 
Bernie Deitrick
Guest
Posts: n/a
 
      9th May 2009
Gerhard,

Easier, I think, would be to make a list of IP addresses and locations, then
use VLOOKUP formulas to extract that data. Your list could be expanded as
needed. Also, it could be based on all or part of the IP.

Something like this to find the entire address:

=VLOOKUP(A2,IPData!A:B,2,False)

Or, based on the first three numbers:
=VLOOKUP(LEFT(A2,FIND(".",A2,FIND(".",A2,FIND(".",A2)+1)+1)-1),IPData!A:B,2,False)
First two numbers:
=VLOOKUP(LEFT(A3,FIND(".",A3,FIND(".",A3)+1)-1),IPData!A:B,2,False)
First number only:
=VLOOKUP(LEFT(A4,FIND(".",A4)-1),IPData!A:B,2,False)

where your data table is on a sheet named IPData, in columns A and B.

HTH,
Bernie
MS Excel MVP


"Gerhard Kriek" <Gerhard (E-Mail Removed)> wrote in message
news:6C367F72-F930-4564-807F-(E-Mail Removed)...
> Hi I need to know how I can do the above.
>
> Example I have a list of Ip Address 10.70.60.121 , 10.70.60.125 ,
> 10.70.10.50 etc
>
> Now What I want to do is using a Macro if posiible add a cell next the the
> one containing the IP address which will give me the location that I will
> specify it should be .
>
> Reason for this is we get a lot of lists with Ip address and we can only
> see
> where these IP belong by manually searching the Gateways and then typing
> the
> Sites in the next Colums next to the Ip colums .. will make my life easier
> if
> I can run a Macro that can do this for me ...
> Any help will be appreciated.
>
> Regards Gerhard


 
Reply With Quote
 
ryguy7272
Guest
Posts: n/a
 
      9th May 2009
Look at this:
http://www.contextures.com/xlFunctions03.html

This is worth a look too:
http://www.ozgrid.com/VBA/ExcelRanges.htm

Finally, this is very good!
http://www.rondebruin.nl/find.htm

HTH,
Ryan---

--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"Bernie Deitrick" wrote:

> Gerhard,
>
> Easier, I think, would be to make a list of IP addresses and locations, then
> use VLOOKUP formulas to extract that data. Your list could be expanded as
> needed. Also, it could be based on all or part of the IP.
>
> Something like this to find the entire address:
>
> =VLOOKUP(A2,IPData!A:B,2,False)
>
> Or, based on the first three numbers:
> =VLOOKUP(LEFT(A2,FIND(".",A2,FIND(".",A2,FIND(".",A2)+1)+1)-1),IPData!A:B,2,False)
> First two numbers:
> =VLOOKUP(LEFT(A3,FIND(".",A3,FIND(".",A3)+1)-1),IPData!A:B,2,False)
> First number only:
> =VLOOKUP(LEFT(A4,FIND(".",A4)-1),IPData!A:B,2,False)
>
> where your data table is on a sheet named IPData, in columns A and B.
>
> HTH,
> Bernie
> MS Excel MVP
>
>
> "Gerhard Kriek" <Gerhard (E-Mail Removed)> wrote in message
> news:6C367F72-F930-4564-807F-(E-Mail Removed)...
> > Hi I need to know how I can do the above.
> >
> > Example I have a list of Ip Address 10.70.60.121 , 10.70.60.125 ,
> > 10.70.10.50 etc
> >
> > Now What I want to do is using a Macro if posiible add a cell next the the
> > one containing the IP address which will give me the location that I will
> > specify it should be .
> >
> > Reason for this is we get a lot of lists with Ip address and we can only
> > see
> > where these IP belong by manually searching the Gateways and then typing
> > the
> > Sites in the next Colums next to the Ip colums .. will make my life easier
> > if
> > I can run a Macro that can do this for me ...
> > Any help will be appreciated.
> >
> > Regards Gerhard

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i find specific data in a cell and its colocated cell data sfself Microsoft Excel Worksheet Functions 4 27th Mar 2009 08:23 AM
Lock data in a cell a specific cell based on selection on other ce =?Utf-8?B?Q3JpbXNvblBsYWd1ZTI5?= Microsoft Excel Worksheet Functions 0 10th May 2006 11:06 AM
How to do conditional validation on one cell, dependant on specific data in a second cell tiburon guy Microsoft Excel Misc 3 9th Apr 2004 07:23 PM
Re: How do I extract specific data out of a cell to another cell Dave Peterson Microsoft Excel Worksheet Functions 3 15th Sep 2003 07:02 AM
Re: How do I extract specific data out of a cell to another cell red bioroid Microsoft Excel Worksheet Functions 0 11th Sep 2003 01:36 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:49 AM.