Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Antonio
 
Posts: n/a
Default rows to different worksheet

Hi all

Need help for the following:

Have a worksheet with 3000 rows by 7 columns, filled with numbers that range
from 1 to 3000. Need a way to move a row to a different worksheet if the
number in one specific cell is either odd or even

Can anyone help?

Tks in advance

  #2   Report Post  
Posted to microsoft.public.excel.misc
Ken Wright
 
Posts: n/a
Default rows to different worksheet

You can use VLOOKUP though that will be a lot of formulas and a lot of
overhead, or if you just want all the rows on another sheet, then copy your
sheet in it's entirety, add a helper field that uses a formula such as
=ISEVEN(D1) and copy downa s far as your data goes (assuming your field was
in Col D), then sort on the helper column which will now contain just TRUEs
and FALSEs

Delete the FALSEs and you will be left with what you wanted.

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

------------------------------*------------------------------*----------------
It's easier to beg forgiveness than ask permission :-)
------------------------------*------------------------------*----------------


"Antonio" wrote in message
...
Hi all

Need help for the following:

Have a worksheet with 3000 rows by 7 columns, filled with numbers that
range
from 1 to 3000. Need a way to move a row to a different worksheet if the
number in one specific cell is either odd or even

Can anyone help?

Tks in advance



  #3   Report Post  
Posted to microsoft.public.excel.misc
Antonio
 
Posts: n/a
Default rows to different worksheet

Tks Ken

Tks for your prompt reply. It does work but my excel worksheet
has now 7 MB and growing... is there any other way to do it?
a macro maybe?

Tks once again for your kind help
António

"Ken Wright" wrote:

You can use VLOOKUP though that will be a lot of formulas and a lot of
overhead, or if you just want all the rows on another sheet, then copy your
sheet in it's entirety, add a helper field that uses a formula such as
=ISEVEN(D1) and copy downa s far as your data goes (assuming your field was
in Col D), then sort on the helper column which will now contain just TRUEs
and FALSEs

Delete the FALSEs and you will be left with what you wanted.

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

------------------------------Â*------------------------------Â*----------------
It's easier to beg forgiveness than ask permission :-)
------------------------------Â*------------------------------Â*----------------


"Antonio" wrote in message
...
Hi all

Need help for the following:

Have a worksheet with 3000 rows by 7 columns, filled with numbers that
range
from 1 to 3000. Need a way to move a row to a different worksheet if the
number in one specific cell is either odd or even

Can anyone help?

Tks in advance




  #4   Report Post  
Posted to microsoft.public.excel.misc
Ken Wright
 
Posts: n/a
Default rows to different worksheet

Which way did you go? - Was this a one time deal, because once the data has
been transferred you don't need the formulas any more?

Regards
Ken....................


"Antonio" wrote in message
...
Tks Ken

Tks for your prompt reply. It does work but my excel worksheet
has now 7 MB and growing... is there any other way to do it?
a macro maybe?

Tks once again for your kind help
António

"Ken Wright" wrote:

You can use VLOOKUP though that will be a lot of formulas and a lot of
overhead, or if you just want all the rows on another sheet, then copy
your
sheet in it's entirety, add a helper field that uses a formula such as
=ISEVEN(D1) and copy downa s far as your data goes (assuming your field
was
in Col D), then sort on the helper column which will now contain just
TRUEs
and FALSEs

Delete the FALSEs and you will be left with what you wanted.

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

------------------------------*------------------------------*----------------
It's easier to beg forgiveness than ask permission :-)
------------------------------*------------------------------*----------------


"Antonio" wrote in message
...
Hi all

Need help for the following:

Have a worksheet with 3000 rows by 7 columns, filled with numbers that
range
from 1 to 3000. Need a way to move a row to a different worksheet if
the
number in one specific cell is either odd or even

Can anyone help?

Tks in advance






  #5   Report Post  
Posted to microsoft.public.excel.misc
Ron de Bruin
 
Posts: n/a
Default rows to different worksheet

Hi Antonio

Why not use Advanced Filter and copy the visible cells
to another sheet.

You only have to add one formula in your sheet

See
http://www.contextures.com/xladvfilter02.html



--
Regards Ron de Bruin
http://www.rondebruin.nl


"Antonio" wrote in message ...
Tks Ken

Tks for your prompt reply. It does work but my excel worksheet
has now 7 MB and growing... is there any other way to do it?
a macro maybe?

Tks once again for your kind help
António

"Ken Wright" wrote:

You can use VLOOKUP though that will be a lot of formulas and a lot of
overhead, or if you just want all the rows on another sheet, then copy your
sheet in it's entirety, add a helper field that uses a formula such as
=ISEVEN(D1) and copy downa s far as your data goes (assuming your field was
in Col D), then sort on the helper column which will now contain just TRUEs
and FALSEs

Delete the FALSEs and you will be left with what you wanted.

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

------------------------------*------------------------------*----------------
It's easier to beg forgiveness than ask permission :-)
------------------------------*------------------------------*----------------


"Antonio" wrote in message
...
Hi all

Need help for the following:

Have a worksheet with 3000 rows by 7 columns, filled with numbers that
range
from 1 to 3000. Need a way to move a row to a different worksheet if the
number in one specific cell is either odd or even

Can anyone help?

Tks in advance








  #6   Report Post  
Posted to microsoft.public.excel.misc
Antonio
 
Posts: n/a
Default rows to different worksheet

Tks to both.

Both ways are workable. Problem is that each time I update the information,
have to re-write the formulas, and copy paste to 40 diferent worksheets.
Is there a way to, when sheet 1 is updated, all others are automaticaly
updated also??

"Antonio" wrote:

Hi all

Need help for the following:

Have a worksheet with 3000 rows by 7 columns, filled with numbers that range
from 1 to 3000. Need a way to move a row to a different worksheet if the
number in one specific cell is either odd or even

Can anyone help?

Tks in advance

  #7   Report Post  
Posted to microsoft.public.excel.misc
Ken Wright
 
Posts: n/a
Default rows to different worksheet

Yes - Pivot table with a dynamic data source. Wouldn't consider any other
method for that many sheets (other than maybe VBA, but personally prefer
Pivots). Formulas will likely kill your workbook.

Regards
Ken.............................

"Antonio" wrote in message
...
Tks to both.

Both ways are workable. Problem is that each time I update the
information,
have to re-write the formulas, and copy paste to 40 diferent worksheets.
Is there a way to, when sheet 1 is updated, all others are automaticaly
updated also??

"Antonio" wrote:

Hi all

Need help for the following:

Have a worksheet with 3000 rows by 7 columns, filled with numbers that
range
from 1 to 3000. Need a way to move a row to a different worksheet if
the
number in one specific cell is either odd or even

Can anyone help?

Tks in advance



  #8   Report Post  
Posted to microsoft.public.excel.misc
Antonio
 
Posts: n/a
Default rows to different worksheet

Hi, me again

Takes too long to do it manually, is there any "formula" to automate the
task??

Kind regards


"Ken Wright" wrote:

Yes - Pivot table with a dynamic data source. Wouldn't consider any other
method for that many sheets (other than maybe VBA, but personally prefer
Pivots). Formulas will likely kill your workbook.

Regards
Ken.............................

"Antonio" wrote in message
...
Tks to both.

Both ways are workable. Problem is that each time I update the
information,
have to re-write the formulas, and copy paste to 40 diferent worksheets.
Is there a way to, when sheet 1 is updated, all others are automaticaly
updated also??

"Antonio" wrote:

Hi all

Need help for the following:

Have a worksheet with 3000 rows by 7 columns, filled with numbers that
range
from 1 to 3000. Need a way to move a row to a different worksheet if
the
number in one specific cell is either odd or even

Can anyone help?

Tks in advance




  #9   Report Post  
Posted to microsoft.public.excel.misc
Ken Wright
 
Posts: n/a
Default rows to different worksheet

What takes so long? If you use a Pivot table and throw whatever field you
want to use to give you the individual sheets into the page fields, then
just display the Pivot table toolbar and use the show pages option and
choose that field. In about 3 seconds it will create all 40 sheets for you.

Regards
Ken..................

"Antonio" wrote in message
...
Hi, me again

Takes too long to do it manually, is there any "formula" to automate the
task??

Kind regards


"Ken Wright" wrote:

Yes - Pivot table with a dynamic data source. Wouldn't consider any
other
method for that many sheets (other than maybe VBA, but personally prefer
Pivots). Formulas will likely kill your workbook.

Regards
Ken.............................

"Antonio" wrote in message
...
Tks to both.

Both ways are workable. Problem is that each time I update the
information,
have to re-write the formulas, and copy paste to 40 diferent
worksheets.
Is there a way to, when sheet 1 is updated, all others are automaticaly
updated also??

"Antonio" wrote:

Hi all

Need help for the following:

Have a worksheet with 3000 rows by 7 columns, filled with numbers that
range
from 1 to 3000. Need a way to move a row to a different worksheet if
the
number in one specific cell is either odd or even

Can anyone help?

Tks in advance






  #10   Report Post  
Posted to microsoft.public.excel.misc
Antonio
 
Posts: n/a
Default rows to different worksheet

Hi Ken

Then I am doing something wrong......
Will try to figure out what!

Tks

"Ken Wright" wrote:

What takes so long? If you use a Pivot table and throw whatever field you
want to use to give you the individual sheets into the page fields, then
just display the Pivot table toolbar and use the show pages option and
choose that field. In about 3 seconds it will create all 40 sheets for you.

Regards
Ken..................

"Antonio" wrote in message
...
Hi, me again

Takes too long to do it manually, is there any "formula" to automate the
task??

Kind regards


"Ken Wright" wrote:

Yes - Pivot table with a dynamic data source. Wouldn't consider any
other
method for that many sheets (other than maybe VBA, but personally prefer
Pivots). Formulas will likely kill your workbook.

Regards
Ken.............................

"Antonio" wrote in message
...
Tks to both.

Both ways are workable. Problem is that each time I update the
information,
have to re-write the formulas, and copy paste to 40 diferent
worksheets.
Is there a way to, when sheet 1 is updated, all others are automaticaly
updated also??

"Antonio" wrote:

Hi all

Need help for the following:

Have a worksheet with 3000 rows by 7 columns, filled with numbers that
range
from 1 to 3000. Need a way to move a row to a different worksheet if
the
number in one specific cell is either odd or even

Can anyone help?

Tks in advance









  #11   Report Post  
Posted to microsoft.public.excel.misc
Ken Wright
 
Posts: n/a
Default rows to different worksheet

When you create your pivot table you must i assume have a field in your data
that you would use to break the data out into sheets - lets call that field
xyz. Create your Pivot table just the way you want your report to look,
even though it probably contains data for all the values in field xyz.

Now drag field xyz into the page fields and your report will not have
changed at this point.

Now display the pivot table toolbar using view / Toolbars / Pivot table and
you may have to customise it to get it to display the 'Show pages' icon.
Once you find it, click it and it will give you a list of all the fields in
your page field section, and at the moment i would expect this to be just
field xyz. Click this, hit OK and it will instantly create a separate sheet
for every unique value in field xyz.

Regards
Ken....................


"Antonio" wrote in message
...
Hi Ken

Then I am doing something wrong......
Will try to figure out what!

Tks

"Ken Wright" wrote:

What takes so long? If you use a Pivot table and throw whatever field
you
want to use to give you the individual sheets into the page fields, then
just display the Pivot table toolbar and use the show pages option and
choose that field. In about 3 seconds it will create all 40 sheets for
you.

Regards
Ken..................

"Antonio" wrote in message
...
Hi, me again

Takes too long to do it manually, is there any "formula" to automate
the
task??

Kind regards


"Ken Wright" wrote:

Yes - Pivot table with a dynamic data source. Wouldn't consider any
other
method for that many sheets (other than maybe VBA, but personally
prefer
Pivots). Formulas will likely kill your workbook.

Regards
Ken.............................

"Antonio" wrote in message
...
Tks to both.

Both ways are workable. Problem is that each time I update the
information,
have to re-write the formulas, and copy paste to 40 diferent
worksheets.
Is there a way to, when sheet 1 is updated, all others are
automaticaly
updated also??

"Antonio" wrote:

Hi all

Need help for the following:

Have a worksheet with 3000 rows by 7 columns, filled with numbers
that
range
from 1 to 3000. Need a way to move a row to a different worksheet
if
the
number in one specific cell is either odd or even

Can anyone help?

Tks in advance









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
Three tables on one worksheet, need to hide rows Chiku Excel Discussion (Misc queries) 12 December 6th 05 10:47 PM
Comparing a list to a Calendar worksheet. PatrickL Excel Worksheet Functions 0 August 25th 05 04:21 PM
What is fastest for this? The Small VBA or many Worksheet Functions...? Maria J-son Excel Worksheet Functions 0 August 10th 05 08:24 AM
Protect Worksheet but allow to insert or delete rows Bob L Hilliard Excel Discussion (Misc queries) 2 June 9th 05 02:08 PM
Can I split my worksheet and have different size columns and rows. tommy Excel Discussion (Misc queries) 1 February 16th 05 11:17 PM


All times are GMT +1. The time now is 03:31 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"