Thread
:
Copy rows based on a word being found in a cell
View Single Post
#
3
Posted to microsoft.public.excel.programming
[email protected]
external usenet poster
Posts: 2
Copy rows based on a word being found in a cell
hi alan,
many thanks for getting back to me,
I will give you an example of what i'm trying to do, very very
confusing for me,
i have to write everything down on paper to work it all out!!! hahaha
I have one system which gives me a report which is imported into excel
in one sheet, in column A of this sheet we have a code, in B we have an
amount,
now here is the difficult part, some of the codes in column A will have
zero in column b cells, the majority will contain a value. Those that
do not contain a value are taken from another sheet contain the same
column names etc but will only contain information for those codes that
contain zero in sheet 1.
I want a macro to be able to compare the two sheets and for those cells
in column A sheet one that match column A in sheet 2 to replace the
full row in sheet 1 which the full row in sheet 2.
Does this make sense to you?
Its so confusing,
Hope you can help,
Kind Regards,
Stuart
wrote:
Stuart,
A few questions. Is the word unique on the "to be replaced" list? That
is, are you looking to replace the first instance of the found value or
all instances in the list to be updated? If it is found a second time
on the first list, does it overwrite the first replacement on list 2?
Alan
wrote:
Hi there,
I wondered if someone could help with a macro creation, I'm a novice at
this but hope someone can help.
I have a sheet within a spreadsheet containing a large volume of data,
What I want to do is if a row within a sheet contains a word that is
the same as a word contained in another sheet it will copy the row into
the original sheet replacing the contents of the row with the new data.
If you need further info then please get back to me,
I'll take whoever manages to help me out to the pub because this has
been a nightmare!!!!
Thanks in advance
Stuart
Reply With Quote
[email protected]
View Public Profile
Find all posts by
[email protected]