PC Review


Reply
Thread Tools Rate Thread

Change numbering of data

 
 
ccholai
Guest
Posts: n/a
 
      4th Jun 2009
Hi,

I have a set of numbers - say a fixed block that starts

1
3
15
16
18
20
24
etc

and have palms that have their fronds numbered
Palm 1 Palm2
2 5
4 17
15 20
17 22
18 30
20 40


what i am trying to do is following this set of rules below:

for the second list - whatever the first number is - has to be changed
to the fixed list.

ie. first number in the second list for that certain palm will equal
first number in the fixed list.


so in the end :

Palm 1 Palm2
2 -1 5 - 1
4 -3 17 - 3
15 -16 20 -16
17 -18 22 - 18
18 - 20 30 - 20
20 - 24 40 - 24

it looks easy.... enough

so min(palm1) = min(fixed)
next palm1
next fixed

??

 
Reply With Quote
 
 
 
 
Patrick Molloy
Guest
Posts: n/a
 
      4th Jun 2009
so for each palm, the list of numbers should be the same as the fixed list?

so if the fixed list is A1:A100

if palm2 first item is say G5

WITH Range("A1:A100") ' the fixed list
Range("G5").Resize(.Rows.Count).Value = .Value
END WITH

you could do this for a range of palms. so if all the palm tables start in
say row 15, in columns G-P

dim cell as Range
WITH Range("A1:A100") ' the fixed list
for each cell in Range("G15:P15").Cells
cell.Resize(.Rows.Count).Value = .Value
next
END WITH





"ccholai" <(E-Mail Removed)> wrote in message
news:1daa30e7-da14-4a0a-8cfa-(E-Mail Removed)...
> Hi,
>
> I have a set of numbers - say a fixed block that starts
>
> 1
> 3
> 15
> 16
> 18
> 20
> 24
> etc
>
> and have palms that have their fronds numbered
> Palm 1 Palm2
> 2 5
> 4 17
> 15 20
> 17 22
> 18 30
> 20 40
>
>
> what i am trying to do is following this set of rules below:
>
> for the second list - whatever the first number is - has to be changed
> to the fixed list.
>
> ie. first number in the second list for that certain palm will equal
> first number in the fixed list.
>
>
> so in the end :
>
> Palm 1 Palm2
> 2 -1 5 - 1
> 4 -3 17 - 3
> 15 -16 20 -16
> 17 -18 22 - 18
> 18 - 20 30 - 20
> 20 - 24 40 - 24
>
> it looks easy.... enough
>
> so min(palm1) = min(fixed)
> next palm1
> next fixed
>
> ??
>

 
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
Change default numbering Lawrence Microsoft Word Document Management 1 23rd Apr 2010 10:24 AM
How do I change the numbering format? Hollic Microsoft Word Document Management 1 18th Jan 2008 08:29 AM
Change page numbering =?Utf-8?B?RSBTdGVpbg==?= Microsoft Excel Misc 2 2nd Jul 2007 08:42 PM
how do i change the numbering on the rulers? =?Utf-8?B?c3dlZXRseWRpdmluZQ==?= Microsoft Word New Users 1 15th Feb 2005 01:19 AM
Change numbering in TOC? Ed Microsoft Word New Users 1 13th Sep 2004 11:44 PM


Features
 

Advertising
 

Newsgroups
 


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