Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 83
Default Find two values and select data in between

I need to separate good and bad data to work with. The data is in Range A:F
to last row.

I set flags ("good" and "bad") in column G to last row. (This part works)

I need to find the first "good" flag,
if the next flag is "good", select the cells in between cut and paste (A:F)
in "G14" or next empy row after "G14"
If the next flag is "bad", select the cells in between (A:F) and set to
Interior Color index = 40.

second flag becomes first, find next flag and so on

It may seem a simple question but since I'm learning it is not for me.
Thanks in advance

--
gaba :)
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 71
Default Find two values and select data in between

Hello,

I might try using an Autofilter on Column G. Select G, Data - Filter -
Autofilter. Filter on 'Bad'. Select A:F and fill the cells, only the visible
cells will fill.

As far as the good cells, filter on 'Good'. Copy and paste to where you
want, then delete the rows (or clear them) on the original, visible cells.

Then remove the filter by selecting to Autofilter again.

All of this can be automated by using your macro recorder and cleaning up
the code a touch (e.g., remove selections, etc...)

Regards,
Nate Oliver
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 83
Default Find two values and select data in between

Thanks so much, Nate. I'll give it a try
Gaba

"Nate Oliver" wrote:

Hello,

I might try using an Autofilter on Column G. Select G, Data - Filter -
Autofilter. Filter on 'Bad'. Select A:F and fill the cells, only the visible
cells will fill.

As far as the good cells, filter on 'Good'. Copy and paste to where you
want, then delete the rows (or clear them) on the original, visible cells.

Then remove the filter by selecting to Autofilter again.

All of this can be automated by using your macro recorder and cleaning up
the code a touch (e.g., remove selections, etc...)

Regards,
Nate Oliver

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
Cannot choose Additional Values when editing in Select Data of a c Margie Excel Discussion (Misc queries) 1 November 3rd 09 04:28 AM
select date range then find average of values in another cell rob117 Excel Worksheet Functions 3 May 3rd 07 03:34 PM
comparing two columns of data to find common values patman Excel Discussion (Misc queries) 2 July 25th 06 03:05 PM
Find data in table with to set of constant values Engineer Excel Worksheet Functions 4 May 26th 06 08:42 AM
Find values in table and return correpsonding data in array Ryan Excel Programming 1 April 14th 04 07:19 AM


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