LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Data program


Ok, I'm having another problem here at work and I can't get eround your
problem in any nice way.
What you can do is enter this function in cell A1
=IF(COUNT(SHEET2!$A$1:$A$500)<COLUMN();\"\";OFFSET (
SHEET2!$A$1;COUNT(SHEET2!$A$1:$A$500)-(COUNT(SHEET2!$A$1:$A$500)-COLUMN())-1;ROW()-1;1;1))
Copy cell A1 and paste in all the cells in the first line in sheet1 for
the number you need, max 500 right now.
In cell A2 you enter
=IF(COUNT(SHEET2!$B$1:$B$500)<COLUMN();\"\";OFFSET (
SHEET2!$A$1;COUNT(SHEET2!$B$1:$B$500)-(COUNT(SHEET2!$B$1:$B$500)-COLUMN())-1;ROW()-1;1;1))

and copy that to all cells in the second row in sheet1

in cell A3 you enter
=IF(COUNT(SHEET2!$C$1:$C$500)<COLUMN();\"\";OFFSET (
SHEET2!$A$1;COUNT(SHEET2!$C$1:$C$500)-(COUNT(SHEET2!$C$1:$C$500)-COLUMN())-1;ROW()-1;1;1))

and so on, note that the A in OFFSET should be A in all lines, the
other adresses should reflect the column they point to in sheet2, i e
D, E , F etc (in the COUNT statement).

Hope it works..


--
Ruatha
------------------------------------------------------------------------
Ruatha's Profile: http://www.excelforum.com/member.php...o&userid=31083
View this thread: http://www.excelforum.com/showthread...hreadid=551769



 
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
open data excel w98 on xp program help Gert Excel Discussion (Misc queries) 0 June 25th 05 06:35 PM
program for filtering data. dilsenahin Excel Programming 1 February 15th 04 03:07 AM
Dropping Data to a VB.net Program BrianElson Excel Programming 1 December 16th 03 12:37 PM
merging excel program with tdc finance program judy Excel Programming 0 November 5th 03 08:01 PM
Get data from another program to Excel Magnus[_3_] Excel Programming 4 July 26th 03 08:57 AM


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