Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 921
Default Autocopy of data filtered by drop down list

I am creating a new form that takes employee expenses. On each line of the
expense form the employee can chose employee paid or company paid from a drop
down list.
What I have done is created an IF query to copy the data to a corresponding
sheet (one titled company paid and the other employee paid), depending on
whether company paid or employee paid was chosen, however the part I can not
work out how to do is to ensure that when the data is copied to the new sheet
that the next available line is used rather than a straight linked cell.

Is there anyway to automatically go to the next available line on each sheet
when the data qualifies rather than having blank lines inbetween when a
straight linking command is used and the IF criteria is satisfied.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Autocopy of data filtered by drop down list

Try this sample from my archives (full details inside):
http://savefile.com/files/9260836
AutoCopy_Data_To_Resp_Sheet_Non_Array_Approach.xls

It should be quite straightforward to adapt the sample to suit ...

Your 2 DV selections: company paid, employee paid
would correspond to the sample's key col A's colours in WS1 (the "master")

So you would, for eg: list the phrases across in K1:L1, viz.: company paid,
employee paid, then re-name 2 of the 3 "colour" sheets in the sample
correspondingly as: company paid, employee paid

And then whatever's entered progressively into WS1 (the "master")
would be autocopied directly into the 2 sheets by the key col A,
with all lines neatly bunched at the top
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Jeff" wrote:
I am creating a new form that takes employee expenses. On each line of the
expense form the employee can chose employee paid or company paid from a drop
down list.
What I have done is created an IF query to copy the data to a corresponding
sheet (one titled company paid and the other employee paid), depending on
whether company paid or employee paid was chosen, however the part I can not
work out how to do is to ensure that when the data is copied to the new sheet
that the next available line is used rather than a straight linked cell.

Is there anyway to automatically go to the next available line on each sheet
when the data qualifies rather than having blank lines inbetween when a
straight linking command is used and the IF criteria is satisfied.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 921
Default Autocopy of data filtered by drop down list

Max,

Thank you so much, that is absolutely perfect.

Cheers

Jeff

"Max" wrote:

Try this sample from my archives (full details inside):
http://savefile.com/files/9260836
AutoCopy_Data_To_Resp_Sheet_Non_Array_Approach.xls

It should be quite straightforward to adapt the sample to suit ...

Your 2 DV selections: company paid, employee paid
would correspond to the sample's key col A's colours in WS1 (the "master")

So you would, for eg: list the phrases across in K1:L1, viz.: company paid,
employee paid, then re-name 2 of the 3 "colour" sheets in the sample
correspondingly as: company paid, employee paid

And then whatever's entered progressively into WS1 (the "master")
would be autocopied directly into the 2 sheets by the key col A,
with all lines neatly bunched at the top
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Jeff" wrote:
I am creating a new form that takes employee expenses. On each line of the
expense form the employee can chose employee paid or company paid from a drop
down list.
What I have done is created an IF query to copy the data to a corresponding
sheet (one titled company paid and the other employee paid), depending on
whether company paid or employee paid was chosen, however the part I can not
work out how to do is to ensure that when the data is copied to the new sheet
that the next available line is used rather than a straight linked cell.

Is there anyway to automatically go to the next available line on each sheet
when the data qualifies rather than having blank lines inbetween when a
straight linking command is used and the IF criteria is satisfied.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Autocopy of data filtered by drop down list

Glad it was a good fit, Jeff !
Thanks for calling back ..
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Jeff" wrote:
Max,
Thank you so much, that is absolutely perfect.
Cheers
Jeff

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
linking data between sheets using drop down list JohnOC Excel Worksheet Functions 4 March 13th 06 04:25 PM
Populating worksheet via a drop down list ! kuansheng Excel Worksheet Functions 4 February 14th 06 05:48 AM
update data validation list with new entries?? cjtj4700 Excel Discussion (Misc queries) 10 December 12th 05 01:00 AM
Excel Macro to Copy & Paste [email protected] Excel Worksheet Functions 0 December 1st 05 01:56 PM
named range, data validation: list non-selected items, and new added items KR Excel Discussion (Misc queries) 1 June 24th 05 05:21 AM


All times are GMT +1. The time now is 04:54 AM.

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"