#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Small Query - Urgent

Hi All,

I need the a small help from you....
My Query is:

Data I required
asd asd
asd
asd
asd
asd
sdr sdr
sdr
sdr
sdr
sdr
fgr fgr
fgr
fgr
fgr
fgr
asd asd


what iam doing right now is, selecting copy and pasting... but it is
very difficult when iam working with 10k lines can i get as per above
with a code or small function or macro or any?

Thanks in advance.

Regards,
Anil.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 345
Default Small Query - Urgent

Matt came up with this solution to a similar problem yesterday:

Assuming the Headers as described below are in cells A1 and B1 and the Data
begins in Cell A2, then

1.) Enter the following formula in Cell C2:

=IF(A2<"",A2,OFFSET(C2,-1,0))

2.) Copy the formula down column C to match the last row of data in Column A

3.) Select and Copy the cells with the data in Column C

4.) Select Cell A2, right click -- Paste Special -- Select 'Values' --
click Okay

Hope this helps


"showry" wrote:

Hi All,

I need the a small help from you....
My Query is:

Data I required
asd asd
asd
asd
asd
asd
sdr sdr
sdr
sdr
sdr
sdr
fgr fgr
fgr
fgr
fgr
fgr
asd asd


what iam doing right now is, selecting copy and pasting... but it is
very difficult when iam working with 10k lines can i get as per above
with a code or small function or macro or any?

Thanks in advance.

Regards,
Anil.

.

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
Small Query Anil showreddy Excel Discussion (Misc queries) 2 August 4th 09 07:13 AM
IME MODE FOR EXCEL 2007 (URGENT URGENT) Stella Wong Excel Discussion (Misc queries) 1 August 23rd 08 11:16 PM
Excel Sheets Opens Itself Again After ADO Query ! Please Help It's Urgent ! Nader[_2_] Excel Discussion (Misc queries) 0 August 28th 07 09:39 AM
ISERROR,SMALL,INDEX, MATCH, SMALL?? M.A.Tyler Excel Discussion (Misc queries) 1 May 2nd 07 04:08 AM
Urgent-Urgent VBA LOOP Jeff Excel Discussion (Misc queries) 0 October 6th 05 05:46 PM


All times are GMT +1. The time now is 10:28 AM.

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"