Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default How do you copy all data in a row only if value in column A is "xy

Hi,

i need help. I'm doing a sales spreadsheet for each salesperson. And i would
like to copy all data from sheet 1 (main sales sheet) to sheet 2 (particular
person) if value on column A is equal to "david". I found the same problem
but link is not available anymore. Can anyone help me please?

You will be very much appreciated.


Thanks,

-kookie
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,123
Default How do you copy all data in a row only if value in column A is "xy

Hi kookie

See this page for code to do this
See the macro example: Create a new sheet for all unique values
http://www.rondebruin.nl/copy5.htm

This is the manual way

Select a cell in your data table and use DataFilterAutoFilter to activate AutoFilter.
In Excel 2007 click on the Data tab on the ribbon and then on Filter in the Sort & Filter group
Tip: Shortcut for every English Excel version is Alt d f f

In each header cell a dropdown will appear next to your field name.
Click on the dropdown in the Name field and choose david.

Copy the filter result to a new worksheet:

1) Select the whole data range or if you not have empty rows/columns in the range
you can use Ctrl * to select all data or use F5SpecialCurrent regionOK with
one cell selected in the data range.
If it copy all the data (there are a few reports of 2007 users) use also the shortcut
Alt ; or F5SpecialVisible cells onlyOK to select only the Visible cells.

2) Ctrl c in all Excel versions or:
Excel 97-2003: EditCopy
Excel 2007: Home tabClipboard groupCopy

3) Shift F11 in all Excel versions to insert a worksheet or:
Excel 97-2003: InsertWorksheet
Excel 2007: Home tabCells groupInsert...Sheet
Or use button next to the last tab

4) Ctrl v in all Excel versions or:
Excel 97-2003: EditPaste
Excel 2007: Home tabClipboard groupPaste

5) Select the worksheet with the filter

6) Press Esc

7) Press Alt d f f in every English Excel version or:
Excel 97-2003: DataFilterAutoFilter to turn off AutoFilter.
Excel 2007: Data tabSort & FilterFilter


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"kookie" wrote in message ...
Hi,

i need help. I'm doing a sales spreadsheet for each salesperson. And i would
like to copy all data from sheet 1 (main sales sheet) to sheet 2 (particular
person) if value on column A is equal to "david". I found the same problem
but link is not available anymore. Can anyone help me please?

You will be very much appreciated.


Thanks,

-kookie

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 data from one sheet to another "entry has to be same shape" des-sa[_2_] Excel Discussion (Misc queries) 3 July 26th 08 06:38 PM
How to "copy-down" a formula in a Very LONG Column? Mark246 Excel Discussion (Misc queries) 4 February 26th 08 11:20 PM
copy--paste--special "formula" for a whole column Janis Excel Discussion (Misc queries) 2 July 31st 07 04:40 PM
Change data in a single column from "last, first" to "first last" Jeanne Excel Discussion (Misc queries) 2 March 27th 06 08:40 PM
copy/convert column email addresses Hyperlink "mailto:" excel97 daleman101 Excel Discussion (Misc queries) 3 November 3rd 05 01:21 PM


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