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 Exel help plze..........

Thread Tools
 
Search this Thread
 
Old 18 December 2002, 01:41 PM
  #1  
mj
Scooby Regular
Thread Starter
 
mj's Avatar
 
Join Date: Apr 2002
Location: The poliotical wing of Chip Sengravy.
Posts: 6,129
Likes: 0
Received 0 Likes on 0 Posts
Post


Any chance of some help with this please ?

I am trying to sort through our companies phone bills and have so far got the data in from the online phone bill and pasted it in, I have grouped it into bunches of the same number etc.

I am trying to allocate a tag of either "personal" or "work" to the phone numbers.


=SUBSTITUTE(D16, "5552345", "Private")

this line replaces the numbers 5552345 with the text private - this is easy.

how can I get the line to search throgh a list of numbers and tag it either private ot work,

something like this, but the line is wrong:


=SUBSTITUTE(D16, "5552345,901,354474,8478464,363478347", "Private")(D16," 999,123,192"Work")

cheers,

mike.
Old 18 December 2002, 02:03 PM
  #2  
Gareth Allan
Scooby Regular
 
Gareth Allan's Avatar
 
Join Date: Jul 2001
Posts: 226
Likes: 0
Received 0 Likes on 0 Posts
Post

if this was me, i would try the IF command, so if(number)=334455,true(private),false(work)

I dont know if yu can link the if command with statements like, =334455 OR 445566 etc, but this might work

Gareth
Old 18 December 2002, 02:17 PM
  #3  
Martingb
Scooby Regular
 
Martingb's Avatar
 
Join Date: Oct 2001
Posts: 65
Likes: 0
Received 0 Likes on 0 Posts
Post

Set up a range of numbers (column) that you want to be classified as private and name it PrivateNos.

For each record on your list add the vlookup function.
E.g. Say column A has the numbers, in column B add this formula:
(Place this example in cell B2)
=if(isna(vlookup(A2,PrivateNos,1,false)),"Work","P rivate")

This works by evaluating the number against the list. If the vlookup function cannot return a value the ISNA part returns WORK, else it is PRIVATE.

Rgds,

Martin.
Old 18 December 2002, 02:18 PM
  #4  
dsmith
Scooby Regular
 
dsmith's Avatar
 
Join Date: Mar 1999
Posts: 4,518
Likes: 0
Received 0 Likes on 0 Posts
Post

have a separate table of known numbers e.g.

123245 Private
6235724 Private
1275057 Work

name this table "NUMBERS" (insert->name->define)

Then do a vlookup against the original list

if you have "123245" in A1 then in A2 have "=vlookup(+A1,NUMBERS,2,FALSE)" which would return "Private".

Deano




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