#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default need advice


Could please anyone help me with problem:

I have data row a,b,c,d,e,f,g......
I need to transform it using some functions in Excel to the following
row:
a,b,c, b,c,d, c,d,e, d,e,f ... etc.

Appreciate any advice


--
Sergo
------------------------------------------------------------------------
Sergo's Profile: http://www.excelforum.com/member.php...o&userid=31188
View this thread: http://www.excelforum.com/showthread...hreadid=508580

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default need advice

You could do something like

Sub ABC()
Dim v as Variant, i as Long
Dim j as Long, k as Long
v = Range("A1:G1").Value
k = 1
for i = 1 to ubound(v,2)
for j = i to i + 2
cells(1,k).Value = v(1,j)
k = k + 1
next j
Next i
End Sub

--
Regards,
Tom Ogilvy



"Sergo" wrote in
message ...

Could please anyone help me with problem:

I have data row a,b,c,d,e,f,g......
I need to transform it using some functions in Excel to the following
row:
a,b,c, b,c,d, c,d,e, d,e,f ... etc.

Appreciate any advice


--
Sergo
------------------------------------------------------------------------
Sergo's Profile:

http://www.excelforum.com/member.php...o&userid=31188
View this thread: http://www.excelforum.com/showthread...hreadid=508580



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
pls advice dribler2 Excel Worksheet Functions 0 December 29th 06 02:22 PM
Need advice Form maker Excel Worksheet Functions 1 December 2nd 06 04:26 PM
Almost got it !! but need advice Nospam Excel Worksheet Functions 6 February 28th 05 10:27 AM
In need of advice? onedaywhen Excel Programming 6 June 7th 04 02:22 PM
please advice Waleed Hanafy Excel Programming 1 April 15th 04 02:50 PM


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