Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
MAWII
 
Posts: n/a
Default Copying data within worksheets with lookups

I have a workbook that contains in its main page a lot of data. The data
contains test #'s, times, and some other data related to those test #'s and
times. (Details not important...) There are multiple times for each test #
as well--The test # column would be like:
Test # Time
1 115
1 250
2 119
2 175
2 225 ...and so on, and there is no pre-determined number of
times for each test--quite variable. There could be 3 times for test 1 and
12 for test 2 and 5 for test 3 and so on...Anyways, what I need to do is copy
all of the data for each test # into sheets dedicated to each test #. I've
managed to achieve this somewhat with if statements, but it doesn't put the
copied data at the top of the new sheet (each sheet is already created too,
by the way). I also need any blanks that are returned to remain blank--no
0's--they corrupt the eventual calculations...

I can use either macros or plain formulas, but I'm very new to macros and
vba and don't understand them very well, so please explain the vba/macro
solutions. Thanks!
-Mark
  #2   Report Post  
Duke Carey
 
Posts: n/a
Default

Using the menu choose DataAutofilter

Then filter for a test, copy the displayed rows to a new sheet, go back &
filter for the next test, and so on


"MAWII" wrote:

I have a workbook that contains in its main page a lot of data. The data
contains test #'s, times, and some other data related to those test #'s and
times. (Details not important...) There are multiple times for each test #
as well--The test # column would be like:
Test # Time
1 115
1 250
2 119
2 175
2 225 ...and so on, and there is no pre-determined number of
times for each test--quite variable. There could be 3 times for test 1 and
12 for test 2 and 5 for test 3 and so on...Anyways, what I need to do is copy
all of the data for each test # into sheets dedicated to each test #. I've
managed to achieve this somewhat with if statements, but it doesn't put the
copied data at the top of the new sheet (each sheet is already created too,
by the way). I also need any blanks that are returned to remain blank--no
0's--they corrupt the eventual calculations...

I can use either macros or plain formulas, but I'm very new to macros and
vba and don't understand them very well, so please explain the vba/macro
solutions. Thanks!
-Mark

  #3   Report Post  
MAWII
 
Posts: n/a
Default

I should have been more clear--I need each test # worksheet to search the
test #'s and copy those rows of data on their own. The only user interaction
with this workbook should be entering data into the main page--the workbook
performs the rest of the work on its own (maybe with the push of a
button...). I don't want the user to have to copy and paste the data on
their own. Thanks!

"Duke Carey" wrote:

Using the menu choose DataAutofilter

Then filter for a test, copy the displayed rows to a new sheet, go back &
filter for the next test, and so on


"MAWII" wrote:

I have a workbook that contains in its main page a lot of data. The data
contains test #'s, times, and some other data related to those test #'s and
times. (Details not important...) There are multiple times for each test #
as well--The test # column would be like:
Test # Time
1 115
1 250
2 119
2 175
2 225 ...and so on, and there is no pre-determined number of
times for each test--quite variable. There could be 3 times for test 1 and
12 for test 2 and 5 for test 3 and so on...Anyways, what I need to do is copy
all of the data for each test # into sheets dedicated to each test #. I've
managed to achieve this somewhat with if statements, but it doesn't put the
copied data at the top of the new sheet (each sheet is already created too,
by the way). I also need any blanks that are returned to remain blank--no
0's--they corrupt the eventual calculations...

I can use either macros or plain formulas, but I'm very new to macros and
vba and don't understand them very well, so please explain the vba/macro
solutions. Thanks!
-Mark

  #4   Report Post  
jiwolf
 
Posts: n/a
Default

Follow dukes idea, but use an advanced filter.Use a macro to automate it.
Create a macro button on the worksheet to simplyfy things for the user.

"MAWII" wrote in message
...
I should have been more clear--I need each test # worksheet to search the
test #'s and copy those rows of data on their own. The only user
interaction
with this workbook should be entering data into the main page--the
workbook
performs the rest of the work on its own (maybe with the push of a
button...). I don't want the user to have to copy and paste the data on
their own. Thanks!

"Duke Carey" wrote:

Using the menu choose DataAutofilter

Then filter for a test, copy the displayed rows to a new sheet, go back &
filter for the next test, and so on


"MAWII" wrote:

I have a workbook that contains in its main page a lot of data. The
data
contains test #'s, times, and some other data related to those test #'s
and
times. (Details not important...) There are multiple times for each
test #
as well--The test # column would be like:
Test # Time
1 115
1 250
2 119
2 175
2 225 ...and so on, and there is no pre-determined
number of
times for each test--quite variable. There could be 3 times for test 1
and
12 for test 2 and 5 for test 3 and so on...Anyways, what I need to do
is copy
all of the data for each test # into sheets dedicated to each test #.
I've
managed to achieve this somewhat with if statements, but it doesn't put
the
copied data at the top of the new sheet (each sheet is already created
too,
by the way). I also need any blanks that are returned to remain
blank--no
0's--they corrupt the eventual calculations...

I can use either macros or plain formulas, but I'm very new to macros
and
vba and don't understand them very well, so please explain the
vba/macro
solutions. Thanks!
-Mark



  #5   Report Post  
Alan Beban
 
Posts: n/a
Default

If you're interested in downloading a file from a Web site into your
Personal.xls folder, I can suggest a solution; but I don't want to waste
your time nor mine. Post back if you're interested.

Alan Beban

MAWII wrote:
I should have been more clear--I need each test # worksheet to search the
test #'s and copy those rows of data on their own. The only user interaction
with this workbook should be entering data into the main page--the workbook
performs the rest of the work on its own (maybe with the push of a
button...). I don't want the user to have to copy and paste the data on
their own. Thanks!

"Duke Carey" wrote:


Using the menu choose DataAutofilter

Then filter for a test, copy the displayed rows to a new sheet, go back &
filter for the next test, and so on


"MAWII" wrote:


I have a workbook that contains in its main page a lot of data. The data
contains test #'s, times, and some other data related to those test #'s and
times. (Details not important...) There are multiple times for each test #
as well--The test # column would be like:
Test # Time
1 115
1 250
2 119
2 175
2 225 ...and so on, and there is no pre-determined number of
times for each test--quite variable. There could be 3 times for test 1 and
12 for test 2 and 5 for test 3 and so on...Anyways, what I need to do is copy
all of the data for each test # into sheets dedicated to each test #. I've
managed to achieve this somewhat with if statements, but it doesn't put the
copied data at the top of the new sheet (each sheet is already created too,
by the way). I also need any blanks that are returned to remain blank--no
0's--they corrupt the eventual calculations...

I can use either macros or plain formulas, but I'm very new to macros and
vba and don't understand them very well, so please explain the vba/macro
solutions. Thanks!
-Mark



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
Auto filling dates on other worksheets with data from a next payme JIM Excel Worksheet Functions 0 February 11th 05 04:59 PM
have 3 worksheets, 1 is a form, the other 2 data for the form-wan. bken Excel Worksheet Functions 0 January 12th 05 09:15 PM
Automatic copying data excluding blank cells Wesley Excel Worksheet Functions 6 November 30th 04 01:17 AM
Named dynamic ranges, copied worksheets and graph source data WP Charts and Charting in Excel 1 November 28th 04 05:19 PM


All times are GMT +1. The time now is 10:34 AM.

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"