LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,560
Default macros or formulas not sure

In Excel 2003 I have four long columns 10,000 + rows. A=country, B=city name,
C= year D=city population.
My analysis has two levels of priority. First a way to change a formula that
recognises the date range in col C to track the cities in col D for the next
change in date and RANK them (i.e. E $ 80: E $ 88 being an example of an
array of cites in the same date range) in the sample test for a formula: =
RANK (E80, IF (AND (E80 0, A80 = A79, C80 = C79), $ 80 E: E $ 88,0))
The number of cities is not the same for each date or for each country.
A second priority which would use one or more macros would carry out the
following steps:
1. Sort the table by column A 'country'
2. Sort by col C date for each country.
3. Sort col D city (population 000s) by size for each date
4. Calculate the RANK of every city in each date and country (- the first
priority)
5. Create a column or other means of eliminating the city name NATION from
the Ranking as this is the country total population .
5. Calculate the log N for Rank and population for each city
6. Compute, a) the slope, b) coefficient of determination and c) the ratio
of city population ranked 1, on adding city (2 +3) / 2, for each country and
date.
Grateful for any suggestion that can help simplifying the scope of this
exercise.
 
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
formulas vs macros excelFan Excel Discussion (Misc queries) 4 March 23rd 06 01:45 PM
If/Then/Else formulas in macros CJ-22 Excel Programming 1 January 20th 06 05:20 AM
Macros within formulas praveen_khm[_5_] Excel Programming 3 January 16th 06 02:18 PM
Macros/Formulas Michelle Excel Worksheet Functions 2 October 26th 05 04:26 PM
formulas to macros raja Excel Programming 0 September 21st 05 02:01 PM


All times are GMT +1. The time now is 11:41 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"