PC Review


Reply
Thread Tools Rate Thread

Copy cell to another that is blank

 
 
Mickey
Guest
Posts: n/a
 
      13th Jul 2007
Hi,
I would appreciate any help with the following - I need to copy the contents
of a cell to another but only if the other cell is blank. The problem is
that we have a row of customer data but each subsequent row does not include
the reference if the folowing order is from the same customer. So, if A3
contains a customer id and rows 3,4,5,6 relate to the same customer, I need
to transfer the contents of cell A3 to A4, A5, A6 but not A7 if that cell
contains another reference number, I then need this to do the same thing
for A7, ie. copy its contents down to the next cell containing a value. I'm
thinking that this could be done via a macro, any help appreciated.

Thanks,
Mickey


 
Reply With Quote
 
 
 
 
=?Utf-8?B?V2lnaQ==?=
Guest
Posts: n/a
 
      13th Jul 2007
Hi Mickey

You don't need VBA for this. Here you go:

Select the whole column of numbers, including blank cells, beginning in A4

In A4, type:

=A3

Hit Ctrl-Enter, not just Enter.

Then, copy the whole range (just leave it selected as it was), and using
Edit > Paste Special > Values, you change the formulas into hard values.
You're done!



--
Wigi
http://www.wimgielis.be = Excel/VBA, soccer and music


"Mickey" wrote:

> Hi,
> I would appreciate any help with the following - I need to copy the contents
> of a cell to another but only if the other cell is blank. The problem is
> that we have a row of customer data but each subsequent row does not include
> the reference if the folowing order is from the same customer. So, if A3
> contains a customer id and rows 3,4,5,6 relate to the same customer, I need
> to transfer the contents of cell A3 to A4, A5, A6 but not A7 if that cell
> contains another reference number, I then need this to do the same thing
> for A7, ie. copy its contents down to the next cell containing a value. I'm
> thinking that this could be done via a macro, any help appreciated.
>
> Thanks,
> Mickey
>
>
>

 
Reply With Quote
 
Mickey
Guest
Posts: n/a
 
      14th Jul 2007
Hi Wigi,
That appears to just place the value of A3 into every cell, I need it to
recognise that there is a value in a cell, say A15 and then start
replicating the new value.

Thanks,
Mickey


"Wigi" <(E-Mail Removed)> wrote in message
news:0F58212E-69D0-47C2-BE6F-(E-Mail Removed)...
> Hi Mickey
>
> You don't need VBA for this. Here you go:
>
> Select the whole column of numbers, including blank cells, beginning in A4
>
> In A4, type:
>
> =A3
>
> Hit Ctrl-Enter, not just Enter.
>
> Then, copy the whole range (just leave it selected as it was), and using
> Edit > Paste Special > Values, you change the formulas into hard values.
> You're done!
>
>
>
> --
> Wigi
> http://www.wimgielis.be = Excel/VBA, soccer and music
>
>
> "Mickey" wrote:
>
>> Hi,
>> I would appreciate any help with the following - I need to copy the
>> contents
>> of a cell to another but only if the other cell is blank. The problem is
>> that we have a row of customer data but each subsequent row does not
>> include
>> the reference if the folowing order is from the same customer. So, if A3
>> contains a customer id and rows 3,4,5,6 relate to the same customer, I
>> need
>> to transfer the contents of cell A3 to A4, A5, A6 but not A7 if that cell
>> contains another reference number, I then need this to do the same thing
>> for A7, ie. copy its contents down to the next cell containing a value.
>> I'm
>> thinking that this could be done via a macro, any help appreciated.
>>
>> Thanks,
>> Mickey
>>
>>
>>



 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      14th Jul 2007
Select column A and F5>Special>Blanks>OK

Type an = sign in active cell.

Click on or arrow up to cell above then hit CTRL + ENTER.


Gord Dibben MS Excel MVP


On Sat, 14 Jul 2007 19:08:34 +0100, "Mickey" <(E-Mail Removed)> wrote:

>Hi Wigi,
>That appears to just place the value of A3 into every cell, I need it to
>recognise that there is a value in a cell, say A15 and then start
>replicating the new value.
>
>Thanks,
>Mickey
>
>
>"Wigi" <(E-Mail Removed)> wrote in message
>news:0F58212E-69D0-47C2-BE6F-(E-Mail Removed)...
>> Hi Mickey
>>
>> You don't need VBA for this. Here you go:
>>
>> Select the whole column of numbers, including blank cells, beginning in A4
>>
>> In A4, type:
>>
>> =A3
>>
>> Hit Ctrl-Enter, not just Enter.
>>
>> Then, copy the whole range (just leave it selected as it was), and using
>> Edit > Paste Special > Values, you change the formulas into hard values.
>> You're done!
>>
>>
>>
>> --
>> Wigi
>> http://www.wimgielis.be = Excel/VBA, soccer and music
>>
>>
>> "Mickey" wrote:
>>
>>> Hi,
>>> I would appreciate any help with the following - I need to copy the
>>> contents
>>> of a cell to another but only if the other cell is blank. The problem is
>>> that we have a row of customer data but each subsequent row does not
>>> include
>>> the reference if the folowing order is from the same customer. So, if A3
>>> contains a customer id and rows 3,4,5,6 relate to the same customer, I
>>> need
>>> to transfer the contents of cell A3 to A4, A5, A6 but not A7 if that cell
>>> contains another reference number, I then need this to do the same thing
>>> for A7, ie. copy its contents down to the next cell containing a value.
>>> I'm
>>> thinking that this could be done via a macro, any help appreciated.
>>>
>>> Thanks,
>>> Mickey
>>>
>>>
>>>

>


 
Reply With Quote
 
=?Utf-8?B?V2lnaQ==?=
Guest
Posts: n/a
 
      15th Jul 2007
Indeed, sorry, I forgot to mention the SpecialCells part:

F5>Special>Blanks>OK

Thanks for catching Gord.

--
Wigi
http://www.wimgielis.be = Excel/VBA, soccer and music


"Gord Dibben" wrote:

> Select column A and F5>Special>Blanks>OK
>
> Type an = sign in active cell.
>
> Click on or arrow up to cell above then hit CTRL + ENTER.
>
>
> Gord Dibben MS Excel MVP
>
>
> On Sat, 14 Jul 2007 19:08:34 +0100, "Mickey" <(E-Mail Removed)> wrote:
>
> >Hi Wigi,
> >That appears to just place the value of A3 into every cell, I need it to
> >recognise that there is a value in a cell, say A15 and then start
> >replicating the new value.
> >
> >Thanks,
> >Mickey
> >
> >
> >"Wigi" <(E-Mail Removed)> wrote in message
> >news:0F58212E-69D0-47C2-BE6F-(E-Mail Removed)...
> >> Hi Mickey
> >>
> >> You don't need VBA for this. Here you go:
> >>
> >> Select the whole column of numbers, including blank cells, beginning in A4
> >>
> >> In A4, type:
> >>
> >> =A3
> >>
> >> Hit Ctrl-Enter, not just Enter.
> >>
> >> Then, copy the whole range (just leave it selected as it was), and using
> >> Edit > Paste Special > Values, you change the formulas into hard values.
> >> You're done!
> >>
> >>
> >>
> >> --
> >> Wigi
> >> http://www.wimgielis.be = Excel/VBA, soccer and music
> >>
> >>
> >> "Mickey" wrote:
> >>
> >>> Hi,
> >>> I would appreciate any help with the following - I need to copy the
> >>> contents
> >>> of a cell to another but only if the other cell is blank. The problem is
> >>> that we have a row of customer data but each subsequent row does not
> >>> include
> >>> the reference if the folowing order is from the same customer. So, if A3
> >>> contains a customer id and rows 3,4,5,6 relate to the same customer, I
> >>> need
> >>> to transfer the contents of cell A3 to A4, A5, A6 but not A7 if that cell
> >>> contains another reference number, I then need this to do the same thing
> >>> for A7, ie. copy its contents down to the next cell containing a value.
> >>> I'm
> >>> thinking that this could be done via a macro, any help appreciated.
> >>>
> >>> Thanks,
> >>> Mickey
> >>>
> >>>
> >>>

> >

>
>

 
Reply With Quote
 
Mickey
Guest
Posts: n/a
 
      15th Jul 2007
That's fantastic,
Many thanks to both of you for your help, this will save me lots of time.

Thank You,
Mickey


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy contents of a cell into a blank cell fire9990 Microsoft Excel Worksheet Functions 2 8th Jan 2010 04:58 PM
Need macro to check if cell is not blank & previous cell is blank, copy information from row above & paste JenIT Microsoft Excel Programming 4 12th Apr 2007 08:56 PM
Copy to first Blank cell in Colum C Non blank cells still exist be =?Utf-8?B?VWxyaWsgbG92ZXMgaG9yc2Vz?= Microsoft Excel Programming 2 8th Oct 2006 07:35 PM
Copy data in one cell to blank cell immediately below, repeat =?Utf-8?B?SmVmZg==?= Microsoft Excel Worksheet Functions 1 19th May 2006 07:12 PM
COPY A CONCATENATE CELL TO BLANK CELL PUTTING IN THE NEXT BLANK C. =?Utf-8?B?UVVFU1Q0MTA2Nw==?= Microsoft Excel Misc 1 15th Jan 2005 09:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:16 AM.