#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Area Codes

In the sheet1 i have

Australia - Adelaide 61-88x 0.0102
Australia - Melbourne 61-38,39 0.0102

Country - Area, Country Code, Rate

In the Sheet2 I have

Australia - Adelaide 61-88x 61882,61883,61884,61881

Australia - Melbourne 61-38,39 6138,6139

I need all the codes in one tab to each row Please let me know if anyone
have solution for this in Excel. It should look Like below.

Australia - Adelaide 61882 0.0102
Australia - Adelaide 61883 0.0102
Australia - Adelaide 61884 0.0102
Australia - Adelaide 61881 0.0102
Australia - Melbourne 6138 0.0102
Australia - Melbourne 6139 0.0102

Please help me if any one have solution

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 340
Default Area Codes

Start by copying the numbers column on sheet2 to a new sheet (Sheet3)
and separate out using: Data Text to Column Delimited Comma
Finish.

Then fill down the following formulas on another sheet to get the
table:

A1: =LOOKUP(99,SEARCH(B1,Nos)/(Nos<""),Country_Area)
B1: =SMALL(Sheet3!$1:$65536,ROW())
C1: =VLOOKUP(D1,Sheet1!B:C,2,0)
D1: =LOOKUP(99,SEARCH(B1,Nos)/(Nos<""),Code)

where Country_Area, Code and Nos refer to the data in sheet 2.
(You can select the table on sheet 2 and use Insert Names Create
Top Row)


Kishore wrote:

In the sheet1 i have

Australia - Adelaide 61-88x 0.0102
Australia - Melbourne 61-38,39 0.0102

Country - Area, Country Code, Rate

In the Sheet2 I have

Australia - Adelaide 61-88x 61882,61883,61884,61881

Australia - Melbourne 61-38,39 6138,6139

I need all the codes in one tab to each row Please let me know if anyone
have solution for this in Excel. It should look Like below.

Australia - Adelaide 61882 0.0102
Australia - Adelaide 61883 0.0102
Australia - Adelaide 61884 0.0102
Australia - Adelaide 61881 0.0102
Australia - Melbourne 6138 0.0102
Australia - Melbourne 6139 0.0102

Please help me if any one have solution


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
Option button and Highlighting an area Steve Excel Worksheet Functions 2 October 17th 06 11:59 PM
Excel and zip codes dm Excel Discussion (Misc queries) 10 September 12th 06 07:34 PM
How to increase chart area without affecting plot area? [email protected] Charts and Charting in Excel 2 April 21st 06 09:05 PM
Extra Row in Defined Print Area Harry Gordon Excel Discussion (Misc queries) 3 November 14th 05 03:06 AM
Volatile print area stevepain Excel Discussion (Misc queries) 6 July 20th 05 05:46 PM


All times are GMT +1. The time now is 04:02 PM.

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"