Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Automatically copy data from one worksheet to another


I posted this before with no response, so I am going to try it again.

I have data on one sheet with some of the following columns
Workorder ~ Date ~ Description ~ Quantity ~ Amount ~ G/L Account
NU-702-06 ~ 6/6/06 ~ Menards ~ 0 ~ $150.00 ~ 2232

Then I have 100+ tabs for each workorder. Each tab contains a form that
has information on it regarding the invoices that pertain to that
workorder.
What I would like to do, is enter all the invoices on that first sheet
and have each tab automatically update. So for instance, in the example
above, I would like to have that same information show up on the form
for tab 702.

Does that make sense? Currently I have the first sheet show all the
invoices and then I copy and paste each one into the individual
workorder sheets. I am sure there is a better way to do this, I just
can't seem to figure it out. Thank you for your help in advance!

--------------------------------------------------------------------------------


--
karstens
------------------------------------------------------------------------
karstens's Profile: http://www.excelforum.com/member.php...o&userid=17657
View this thread: http://www.excelforum.com/showthread...hreadid=566692

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 195
Default Automatically copy data from one worksheet to another

Hi Karstens,

I understand what you need, but this will require VBA coding.

With just Excel formulas and functions you need to enter the functions
all over again and again in each of your tabs.

Thanks

Shail


karstens wrote:
I posted this before with no response, so I am going to try it again.

I have data on one sheet with some of the following columns
Workorder ~ Date ~ Description ~ Quantity ~ Amount ~ G/L Account
NU-702-06 ~ 6/6/06 ~ Menards ~ 0 ~ $150.00 ~ 2232

Then I have 100+ tabs for each workorder. Each tab contains a form that
has information on it regarding the invoices that pertain to that
workorder.
What I would like to do, is enter all the invoices on that first sheet
and have each tab automatically update. So for instance, in the example
above, I would like to have that same information show up on the form
for tab 702.

Does that make sense? Currently I have the first sheet show all the
invoices and then I copy and paste each one into the individual
workorder sheets. I am sure there is a better way to do this, I just
can't seem to figure it out. Thank you for your help in advance!

--------------------------------------------------------------------------------


--
karstens
------------------------------------------------------------------------
karstens's Profile: http://www.excelforum.com/member.php...o&userid=17657
View this thread: http://www.excelforum.com/showthread...hreadid=566692


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Automatically copy data from one worksheet to another

Here's a set up which delivers it using non-array formulas ..

A sample implementation is available at:
http://www.savefile.com/files/7761089
AutoCopy Data To Own Sheet by WorkOrder.xls

In sheet: X (the "master")

Assume data in cols A to F, data in row2 down,
with the key col = col A (Workorder)

Format K1:IV1 as Text. Then enter the workorders (702, 703, etc) -- ie the
tabnames -- in K1 across (workorders can be entered in any order in K1 across)

Put in K2:
=IF($A2="","",IF(MID($A2,SEARCH("-",$A2)+1,SEARCH("-",$A2,SEARCH("-",$A2)+1)-(SEARCH("-",$A2)+1))=K$1,ROW(),""))
Copy across as far as required and fill down to say, row200 to cover the max
expected extent of data in X

Note: I've assumed that your "workorders" listed in the key col A in X are
all in the same representative format, eg: NU-702-06, NU-1702-11, etc where
the workorder# is the number bounded by 2 dashes "-", viz.: 702, 1702, etc.
The number of digits comprising the workorder# housed within the 2 dashes is
immaterial, it could be 3 or 4 or 5 digits, etc as the MID(...) will extract
it correctly.

Click Insert Name Define
Put under "Names in workbook:": WSN
Put in the "Refers to:" box:
=MID(CELL("Filename",INDIRECT("A1")),FIND("]",CELL("Filename",INDIRECT("A1")
))+1,32)
Click OK

The above defines WSN as a name we can use to refer to the sheetname in
formulas. It will auto-extract the sheetname implicitly. Technique came from
a post by Harlan.

In a new sheet named as say: 702

With the same col headers pasted into A1:F1

Put in A2:
=IF(ISERROR(SMALL(OFFSET(X!$J:$J,,MATCH(WSN,X!$K$1 :$IV$1,0)),ROWS($A$1:A1))),"",INDEX(X!A:A,MATCH(SM ALL(OFFSET(X!$J:$J,,MATCH(WSN,X!$K$1:$IV$1,0)),ROW S($A$1:A1)),OFFSET(X!$J:$J,,MATCH(WSN,X!$K$1:$IV$1 ,0)),0)))

Copy A2 across to F2, fill down to say, F10
(copy down by the smallest possible range sufficient to cover the max
expected number of lines for any workorder. Here, I've assumed that 9 rows
(rows 2 to 10) is sufficient) Format col B as dates, col E as currency

Cols A to F will return only the lines for workorder: 702 from X with all
lines neatly bunched at the top

Now, we just need to make a copy of the sheet: 702, rename it as: 703, and
we'd get the results for the workorder: 703. Repeat the copy rename sheet
process to get the rest of the workorder sheets (just a one-time job). Adapt
to suit ..
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"karstens" wrote:

I posted this before with no response, so I am going to try it again.

I have data on one sheet with some of the following columns
Workorder ~ Date ~ Description ~ Quantity ~ Amount ~ G/L Account
NU-702-06 ~ 6/6/06 ~ Menards ~ 0 ~ $150.00 ~ 2232

Then I have 100+ tabs for each workorder. Each tab contains a form that
has information on it regarding the invoices that pertain to that
workorder.
What I would like to do, is enter all the invoices on that first sheet
and have each tab automatically update. So for instance, in the example
above, I would like to have that same information show up on the form
for tab 702.

Does that make sense? Currently I have the first sheet show all the
invoices and then I copy and paste each one into the individual
workorder sheets. I am sure there is a better way to do this, I just
can't seem to figure it out. Thank you for your help in advance!

--------------------------------------------------------------------------------


--
karstens
------------------------------------------------------------------------
karstens's Profile: http://www.excelforum.com/member.php...o&userid=17657
View this thread: http://www.excelforum.com/showthread...hreadid=566692


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
How do i make cells in one worksheet copy certain data to another Shar Excel Worksheet Functions 3 June 29th 06 11:25 PM
How can i copy and paste data when there is a filter in the worksheet.... dalipsinghbisht Excel Discussion (Misc queries) 5 March 18th 06 12:38 PM
From several workbooks onto one excel worksheet steve Excel Discussion (Misc queries) 6 December 1st 05 08:03 AM
Automatically pasting worksheet data to new worksheet with formulas COntactJason Excel Worksheet Functions 0 August 10th 05 08:22 PM
PLEASE HELP......COPY DATA FROM ONE WORKSHEET TO ANOTHER reegan96 Excel Worksheet Functions 2 April 6th 05 07:17 PM


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