Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi there,
I work in the mobile industry running campaigns and so forth. We received the sms entry report in a excel spreadsheet. What I need to do is find the region of entrants. The Entry Data report has the date, Cell number and text which was entered across columns. What I did was, I created a table of Cities of South Africa and in which province they are in. I need to match the name of the city found in the entry text to the nam of the city in the table that I have created and the result should be the province. Can this be done ? |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
use the following function
=index(array,,column_num) "Roseygains" wrote: Hi there, I work in the mobile industry running campaigns and so forth. We received the sms entry report in a excel spreadsheet. What I need to do is find the region of entrants. The Entry Data report has the date, Cell number and text which was entered across columns. What I did was, I created a table of Cities of South Africa and in which province they are in. I need to match the name of the city found in the entry text to the nam of the city in the table that I have created and the result should be the province. Can this be done ? |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
A2=City (from your text)
Sheet2 columns A&B contain table of Cities vs Province =VLOOKUP(A2,SHEET2!a:b,2,0) will return province Or =if(isna(VLOOKUP(A2,SHEET2!a:b,2,0)),"",VLOOKUP(A2 ,SHEET2!a:b,2,0)) will return blank if not found HTH "Roseygains" wrote: Hi there, I work in the mobile industry running campaigns and so forth. We received the sms entry report in a excel spreadsheet. What I need to do is find the region of entrants. The Entry Data report has the date, Cell number and text which was entered across columns. What I did was, I created a table of Cities of South Africa and in which province they are in. I need to match the name of the city found in the entry text to the nam of the city in the table that I have created and the result should be the province. Can this be done ? |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks Toppers, but A2 doesn't only contain the city.
This is the sample of the two samples where C2 & C3 in the entry data contains the city. Entry Data A B C D 1 Date Cell Number Message Province 2 2007/04/27 2782xxxxxxx 324De Port Elizabeth 3 2007/04/28 2772xxxxxxx 856Et Cape Town City List A B 1 Name Province 2 Port Elizebeth Eastern Cape 3 Cape Town Western Cape "Toppers" wrote: A2=City (from your text) Sheet2 columns A&B contain table of Cities vs Province =VLOOKUP(A2,SHEET2!a:b,2,0) will return province Or =if(isna(VLOOKUP(A2,SHEET2!a:b,2,0)),"",VLOOKUP(A2 ,SHEET2!a:b,2,0)) will return blank if not found HTH "Roseygains" wrote: Hi there, I work in the mobile industry running campaigns and so forth. We received the sms entry report in a excel spreadsheet. What I need to do is find the region of entrants. The Entry Data report has the date, Cell number and text which was entered across columns. What I did was, I created a table of Cities of South Africa and in which province they are in. I need to match the name of the city found in the entry text to the nam of the city in the table that I have created and the result should be the province. Can this be done ? |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks for your reply Cresta, I tried yo formula but it didn't work.
You the problem comes in where it is not only the City that will be in a cell but a string eg. Hi I live in Pretoria. I need to know how I can search that cell for the city that matches in the table on the City sheet rang A2:A100 and the results is the corresponding value in sheet [City] B2:B100. Hope that makes some sense. "Cresta" wrote: use the following function =index(array,,column_num) "Roseygains" wrote: Hi there, I work in the mobile industry running campaigns and so forth. We received the sms entry report in a excel spreadsheet. What I need to do is find the region of entrants. The Entry Data report has the date, Cell number and text which was entered across columns. What I did was, I created a table of Cities of South Africa and in which province they are in. I need to match the name of the city found in the entry text to the nam of the city in the table that I have created and the result should be the province. Can this be done ? |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
If the format of column C is always as your example, then:
=MID(C1,7,255) will get the City so try ...... =VLOOKUP(MID(C1,7,255),SHEET2!a:b,2,0) HTH "Roseygains" wrote: Thanks Toppers, but A2 doesn't only contain the city. This is the sample of the two samples where C2 & C3 in the entry data contains the city. Entry Data A B C D 1 Date Cell Number Message Province 2 2007/04/27 2782xxxxxxx 324De Port Elizabeth 3 2007/04/28 2772xxxxxxx 856Et Cape Town City List A B 1 Name Province 2 Port Elizebeth Eastern Cape 3 Cape Town Western Cape "Toppers" wrote: A2=City (from your text) Sheet2 columns A&B contain table of Cities vs Province =VLOOKUP(A2,SHEET2!a:b,2,0) will return province Or =if(isna(VLOOKUP(A2,SHEET2!a:b,2,0)),"",VLOOKUP(A2 ,SHEET2!a:b,2,0)) will return blank if not found HTH "Roseygains" wrote: Hi there, I work in the mobile industry running campaigns and so forth. We received the sms entry report in a excel spreadsheet. What I need to do is find the region of entrants. The Entry Data report has the date, Cell number and text which was entered across columns. What I did was, I created a table of Cities of South Africa and in which province they are in. I need to match the name of the city found in the entry text to the nam of the city in the table that I have created and the result should be the province. Can this be done ? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2002 Formula: Urgent Conditional Formula Required Right Away - if possible | Excel Discussion (Misc queries) | |||
Build excel formula using field values as text in the formula | Excel Worksheet Functions | |||
Excel 2002 formula displayed not value formula option not checked | Excel Worksheet Functions | |||
i edit a formula (excel) then it displays formula not answer | Excel Discussion (Misc queries) | |||
Converting an Excel formula to an Access query formula | Excel Discussion (Misc queries) |