PC Review


Reply
Thread Tools Rate Thread

crack this!!

 
 
theonlymac
Guest
Posts: n/a
 
      14th Mar 2006

I need a clever Trevor to help me crack the following regular expression
find-replace issue (I think...):

I have the following 3 columns in an excel sheet.

Using the 1st row as an example, Column 1 reads
-arrItems1[0] = "-
Column 2 reads
-Aberdeen ";-
Column 3 reads
-arrItemsGrp1[0] = 1;-

As below:

arrItems1[0] = " Aberdeen "; arrItemsGrp1[0] = 1;
arrItems1[0] = " Addo "; arrItemsGrp1[0] = 1;
arrItems1[0] = " Adelaide "; arrItemsGrp1[0] = 1;
arrItems1[0] = " Alexandria "; arrItemsGrp1[0] = 1;
arrItems1[0] = " Alice "; arrItemsGrp1[0] = 1;
arrItems1[0] = " Aliwal North "; arrItemsGrp1[0] = 1;
arrItems1[0] = " Balfour "; arrItemsGrp1[0] = 1;

I need to replace in column 1 and colum 3, the number in the [] 's to
increment by one in the next row:

arrItems1[0] = " Aberdeen "; arrItemsGrp1[0] = 1;
arrItems1[1] = " Addo "; arrItemsGrp1[1] = 1;
arrItems1[2] = " Adelaide "; arrItemsGrp1[2] = 1;
arrItems1[3] = " Alexandria "; arrItemsGrp1[3] = 1;
arrItems1[4] = " Alice "; arrItemsGrp1[4] = 1;
arrItems1[5] = " Aliwal North "; arrItemsGrp1[5] = 1;
arrItems1[6] = " Balfour "; arrItemsGrp1[6] = 1;

Your knowledge will be much appreciated!!

Thanking you in anticipation!


--
theonlymac
------------------------------------------------------------------------
theonlymac's Profile: http://www.excelforum.com/member.php...o&userid=32444
View this thread: http://www.excelforum.com/showthread...hreadid=522247

 
Reply With Quote
 
 
 
 
=?Utf-8?B?RHVrZSBDYXJleQ==?=
Guest
Posts: n/a
 
      14th Mar 2006
wouldn't it just be something like

="arrItemsGrp1["&text(row(A1)-1,"0")&"]"

copied down?



"theonlymac" wrote:

>
> I need a clever Trevor to help me crack the following regular expression
> find-replace issue (I think...):
>
> I have the following 3 columns in an excel sheet.
>
> Using the 1st row as an example, Column 1 reads
> -arrItems1[0] = "-
> Column 2 reads
> -Aberdeen ";-
> Column 3 reads
> -arrItemsGrp1[0] = 1;-
>
> As below:
>
> arrItems1[0] = " Aberdeen "; arrItemsGrp1[0] = 1;
> arrItems1[0] = " Addo "; arrItemsGrp1[0] = 1;
> arrItems1[0] = " Adelaide "; arrItemsGrp1[0] = 1;
> arrItems1[0] = " Alexandria "; arrItemsGrp1[0] = 1;
> arrItems1[0] = " Alice "; arrItemsGrp1[0] = 1;
> arrItems1[0] = " Aliwal North "; arrItemsGrp1[0] = 1;
> arrItems1[0] = " Balfour "; arrItemsGrp1[0] = 1;
>
> I need to replace in column 1 and colum 3, the number in the [] 's to
> increment by one in the next row:
>
> arrItems1[0] = " Aberdeen "; arrItemsGrp1[0] = 1;
> arrItems1[1] = " Addo "; arrItemsGrp1[1] = 1;
> arrItems1[2] = " Adelaide "; arrItemsGrp1[2] = 1;
> arrItems1[3] = " Alexandria "; arrItemsGrp1[3] = 1;
> arrItems1[4] = " Alice "; arrItemsGrp1[4] = 1;
> arrItems1[5] = " Aliwal North "; arrItemsGrp1[5] = 1;
> arrItems1[6] = " Balfour "; arrItemsGrp1[6] = 1;
>
> Your knowledge will be much appreciated!!
>
> Thanking you in anticipation!
>
>
> --
> theonlymac
> ------------------------------------------------------------------------
> theonlymac's Profile: http://www.excelforum.com/member.php...o&userid=32444
> View this thread: http://www.excelforum.com/showthread...hreadid=522247
>
>

 
Reply With Quote
 
theonlymac
Guest
Posts: n/a
 
      15th Mar 2006

Thanks! Appreciated!


--
theonlymac
------------------------------------------------------------------------
theonlymac's Profile: http://www.excelforum.com/member.php...o&userid=32444
View this thread: http://www.excelforum.com/showthread...hreadid=522247

 
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
Re: crack this!! theonlymac Microsoft Excel Worksheet Functions 0 14th Mar 2006 04:29 PM
Boy did this one crack me up... christopherpostill Security, Spyware and Viruses 13 8th Mar 2006 05:58 PM
Crack a DAT Richard Myers Microsoft VB .NET 13 6th Feb 2005 08:54 AM
OT: bet u can't crack this one :-) RJK Windows XP General 96 1st Feb 2004 02:17 AM
Crack.bat ????????? Dale Holden Anti-Virus 3 31st Oct 2003 06:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:32 AM.