Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...Many thanks to you for putting it together and to the forum members for taking the time to post their replies and give their time to help others. Their isn't another site that can touch it..."

Geography

Where in the world do Tek-Tips members come from?

Excel- How to copy values for each row using a macro?Helpful Member! 

scra (TechnicalUser)
11 Jul 12 20:44
Hello. I have a flat file in Excel. There are missing values on each row when value changes. I need to copy those values to each row. I'm not sure if I'm making any sense, but here is an example.

Current Output
Ticket # Patient Date of Service
1712612 111111 9/15/2011
null null 9/15/2011
null null 9/15/2011
1748292 222222 9/21/2011
null null 9/21/2011
null null 9/21/2011
null null 9/21/2011


Desired Output
Ticket # Patient # Date of Service
1712612 111111 9/15/2011
1712612 111111 9/15/2011
1712612 111111 9/15/2011
1748292 222222 9/21/2011
1748292 222222 9/21/2011
1748292 222222 9/21/2011
1748292 222222 9/21/2011
Helpful Member!  SkipVought (Programmer)
11 Jul 12 21:14
hi,

This can easily be done with a formula, for instance in column D
[tt]
D2: =if(isblank(a2),d1,a2)
[tt]
copy this DOWN column c thru all rows containing data.
copy column c to column d.

Now you have 2 fully populated columns.

copy columns c&d
select A1 and [b]Edit > paste special -- VALUES.

now you have hard data in all rows in columns a & b

Delete columns c & d.

Skip,

glassesJust traded in my old subtlety...
for a NUANCE!tongue

SkipVought (Programmer)
11 Jul 12 21:16
oops. Seems I got confused with column c. All the formulas are in D & E, NOT column C.

Sorry blush

Skip,

glassesJust traded in my old subtlety...
for a NUANCE!tongue

scra (TechnicalUser)
11 Jul 12 22:13
Thanks!!!!

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close