Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 127
Default Macro to Move Specific Data to Another Worksheet

Hi Experts:

Is there a way I can build a Macro to do the following:

This is all One Workbook

Worksheet 1: The Columns a Dept, Login,User Name, Location and Count of
Ob as noted below

Worksheet 3: Column H is a # that detects how many Obs are Pre-determined
for that location (Detroit) ....Example: Only 2 Obs per Agent in Detroit are
allowed(maximum), but there were 4 Obs performed on Worksheet 1 Data. So, I
want to log on:

Worksheet 2: All lines for Location (Detroit) that Exceed Column H on
Worksheet 3 (2 Obs)

So the result should be: Worksheet 2 should have all lines of data for all
locations from Worksheet 1 that EXCEED the # of Obs pre-determined for that
location on Worksheet 3.

I would appreciate any help you can provide.
--
jeannie v
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,480
Default Macro to Move Specific Data to Another Worksheet

Hi Jeannie

You could do it by adding an extra column to Sheet1 called Over.
Assuming Sheet3 has location in column A and Number of obs in column H, then
in F2 of sheet1 enter
=IF(D2="","",E2VLOOKUP(D2,Sheet3!A:H,8,0))

On sheet 1 highlight column A:FDataFilterAutofilter
Use the dropdown on Column F to select TRUE and that will be a list of all
the locations that have exceeded their Obs.

If you did want them on a separate sheet, just mark the rows in the Filtered
listsCopyPaste to another sheet.
--

Regards
Roger Govier

"jeannie v" wrote in message
...
Hi Experts:

Is there a way I can build a Macro to do the following:

This is all One Workbook

Worksheet 1: The Columns a Dept, Login,User Name, Location and Count
of
Ob as noted below

Worksheet 3: Column H is a # that detects how many Obs are Pre-determined
for that location (Detroit) ....Example: Only 2 Obs per Agent in Detroit
are
allowed(maximum), but there were 4 Obs performed on Worksheet 1 Data. So,
I
want to log on:

Worksheet 2: All lines for Location (Detroit) that Exceed Column H on
Worksheet 3 (2 Obs)

So the result should be: Worksheet 2 should have all lines of data for all
locations from Worksheet 1 that EXCEED the # of Obs pre-determined for
that
location on Worksheet 3.

I would appreciate any help you can provide.
--
jeannie v


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
Move Specific Data to Another Worksheet jeannie v Excel Worksheet Functions 3 January 19th 08 10:08 PM
Macro to move row from one worksheet to another Anders Excel Discussion (Misc queries) 2 October 25th 06 05:21 PM
How do I record a macro to move down and over to specific column VMH Excel Discussion (Misc queries) 2 March 13th 06 05:09 PM
macro to sort data in worksheet by specific date joey Excel Discussion (Misc queries) 0 November 14th 05 07:59 PM
make a macro to move specific rows to another sheet braxton Excel Worksheet Functions 1 February 21st 05 09:01 PM


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