Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 116
Default correct columns

I have date and seven random numbers on sheet2

Sat, March 25, 2006 10 21 24 26 30 42 35
etc. on down. . . .

On sheet1, I would like to copy in correct position to Column Headings
column headings run Date, 1... thru 39
So number 10 would be placed in Column K (col 11) Sheet1
Like so Number 21 on sheet2 be placed in the correct column in sheet1
Column U (col 22)
And so down the rows in sheet2

The date will always be in column A(col 1)

With Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 595
Default correct columns

smandula:

With Sheet1.Range("A1")
For Each rCell in Sheet1.Range("A1:H1")
If IsDate(rCell.Value) Then
.Value = rCell.Value
Else
.Offset(0,rCell.Value).Value = rCell.Value
End If
Next rCell
End With


--
Dick Kusleika
MS MVP - Excel
www.dailydoseofexcel.com

smandula wrote:
I have date and seven random numbers on sheet2

Sat, March 25, 2006 10 21 24 26 30 42 35
etc. on down. . . .

On sheet1, I would like to copy in correct position to Column Headings
column headings run Date, 1... thru 39
So number 10 would be placed in Column K (col 11) Sheet1
Like so Number 21 on sheet2 be placed in the correct column in sheet1
Column U (col 22)
And so down the rows in sheet2

The date will always be in column A(col 1)

With Thanks



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
Auto correct/update values in two related columns Tinman4 New Users to Excel 0 January 3rd 12 05:45 PM
Dup check 2 columns - need it to delete correct one Chance M Excel Worksheet Functions 5 April 1st 10 10:03 PM
Correct formating for columns with numbers such as 01, 02, 03 etc chief Excel Discussion (Misc queries) 2 June 18th 08 08:52 PM
Instructions to convert columns to rows Excel help are not correct Excel 2003 Columns to rows Excel Worksheet Functions 3 March 15th 06 06:48 PM
Adding columns to get correct results Katherine[_6_] Excel Programming 1 August 19th 04 02:48 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"