Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default COPY DATA CELL TO CELL

I have a problem, I need a macro to do for me, I hope. I tried posting this
question once already, but I do not see it in the discussion list so we'll
try again.

I export data out from one program in to another, this is what it looks like.

Before I copy and paste...

A B
Row1 S201 854-12
Row2 999-99
Row3 600-00
Row4 700-00
Row5 S205 1234-5
Row6 333-22
Row7 888-22

-----------------------------------------------------------------------------------------
This is what it looks like after I finish with the copy and paste.

A B
Row1 S201 854-12
Row2 S201 999-99
Row3 S201 600-00
Row4 S201 700-00
Row5 S205 1234-5
Row6 S205 333-22
Row7 S205 888-22

Is there a Macro that can do this for me?

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default COPY DATA CELL TO CELL

A macro is not needed. Pick an un-used column, say C. In C1 enter:
=A1 in C2 enter:
=IF(A2="",C1,A2) and copy down
Copy column C and paste/special as value back into column A
--
Gary's Student


"Sean" wrote:

I have a problem, I need a macro to do for me, I hope. I tried posting this
question once already, but I do not see it in the discussion list so we'll
try again.

I export data out from one program in to another, this is what it looks like.

Before I copy and paste...

A B
Row1 S201 854-12
Row2 999-99
Row3 600-00
Row4 700-00
Row5 S205 1234-5
Row6 333-22
Row7 888-22

-----------------------------------------------------------------------------------------
This is what it looks like after I finish with the copy and paste.

A B
Row1 S201 854-12
Row2 S201 999-99
Row3 S201 600-00
Row4 S201 700-00
Row5 S205 1234-5
Row6 S205 333-22
Row7 S205 888-22

Is there a Macro that can do this for me?

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
Copy last cell with data in column E on one sheet to cell on anoth Seahawk Excel Worksheet Functions 7 May 7th 09 02:52 AM
Copy data in one cell to blank cell immediately below, repeat Jeff Excel Worksheet Functions 1 May 19th 06 07:12 PM
Data entry - Copy contents of cell typed in one cell to another ce danie Excel Worksheet Functions 2 March 16th 06 06:51 PM
macro to copy & paste cell data into another cell dannyboy Excel Programming 2 December 23rd 05 05:01 PM
Writing a macro to copy first cell down until next cell has data Gerald[_2_] Excel Programming 1 August 10th 05 10:06 PM


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