PC Review Forums Newsgroups Microsoft Excel Microsoft Excel Crashes How do I copy cells not in a specific range

Reply

How do I copy cells not in a specific range

 
Thread Tools Rate Thread
Old 04-04-2006, 02:30 PM   #1
=?Utf-8?B?Um9hcmluZ0xpb24=?=
Guest
 
Posts: n/a
Default How do I copy cells not in a specific range


Hello,

Please help me with the following Excel question:

I am using the find function and find a list of cells containing a certain
word. Then I highlite them and click on copy. But then I get an error:
"That command cannot be used on multiple selections."

How do I find a list of cells containing a specific word throughout the
worksheet and then copying all of them into another worksheet?

Help would be much appeciated.
  Reply With Quote
Old 04-04-2006, 03:26 PM   #2
Gary.Majdanek@ukgateway.net
Guest
 
Posts: n/a
Default Re: How do I copy cells not in a specific range

Do all of the found words appear in the same column, or are they
scattered around the sheet?

If they are in the same column, you can use autofilter to hide the
unwanted rows, then paste the remaining visible rows into a new
worksheet.

HTH

Gary Majdanek

  Reply With Quote
Old 04-04-2006, 04:39 PM   #3
=?Utf-8?B?Um9hcmluZ0xpb24=?=
Guest
 
Posts: n/a
Default Re: How do I copy cells not in a specific range

Hi Gary,

Thanks for the reply.

They are scattered around the sheet. Is there an easy way to copy all cells
throughout the sheet containing a certain word and then pasting them into
another sheet?

Thanks again in advance.


"Gary.Majdanek@ukgateway.net" wrote:

> Do all of the found words appear in the same column, or are they
> scattered around the sheet?
>
> If they are in the same column, you can use autofilter to hide the
> unwanted rows, then paste the remaining visible rows into a new
> worksheet.
>
> HTH
>
> Gary Majdanek
>
>

  Reply With Quote
Old 05-04-2006, 02:13 AM   #4
Max
Guest
 
Posts: n/a
Default Re: How do I copy cells not in a specific range

"RoaringLion" wrote:
> .. They are scattered around the sheet.
> Is there an easy way to copy all cells
> throughout the sheet containing a certain word
> and then pasting them into another sheet?


Here's an approach using formulas ..

Assume source data is in sheet: X,
within A1:E20 (say),
and the "certain" word is: Text1 (say)
scattered throughout A1:E20

In another sheet: Y (say),

Put in A1:
=IF(X!A9="","",IF(X!A9="Text1",X!A9,""))

Copy A1 across to E1, fill down to E20
(cover the source data extent in X)

This returns "Text1" in exactly the same cells as X

Then kill all the formulas within A1:E20 with an "in-place":
Copy > Paste Special > Check "Values" > OK

The above would quickly give you the results you're after

And if needed, we could also use TRIM
for extra robustness for the formula in A1, viz:
=IF(TRIM(X!A1)="","",IF(TRIM(X!A1)="Text1",TRIM(X!A1),""))
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


  Reply With Quote
Old 05-04-2006, 04:25 AM   #5
Max
Guest
 
Posts: n/a
Default Re: How do I copy cells not in a specific range

Typo correction, sorry:

Line
> Put in A1:
> =IF(X!A9="","",IF(X!A9="Text1",X!A9,""))


should read as:
> =IF(X!A1="","",IF(X!A1="Text1",X!A1,""))

--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off