Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Need script for filtering data


Hey guys,

I have a large excel file with over 50,000 item numbers in it. I
column A I have the item number. In column E I have the Manufacturer
and in column H I have the sale price. What I am trying to figure ou
how to do is to filter the duplicate item numbers that have the sam
manufacturer, and pick delete the one with the highest price. Fo
example, WEV co128 $1.24 wev co128 $2.27 It would leave the lowes
price one alone and delete the highest priced one. Is this eve
possible to do through excel? Any help is appreciated

--
FUZIO
-----------------------------------------------------------------------
FUZION's Profile: http://www.excelforum.com/member.php...fo&userid=3051
View this thread: http://www.excelforum.com/showthread.php?threadid=50167

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Need script for filtering data

Sort on columns A, E, H ascending

then in an adjacent column (assume starting in M2 for example)

=if(And(A2=A1,E2=E1),"Delete","Keep")

In M1 put in a heading entry like Marker
then select M2 (with the formula) and in the lower right corner, double
click on the little black box to have it fill down the column. then do
End(xldown) to make sure it filled all the way down (no blank cells in the
column to the left - drag fill if necessary)

if you are satisfied that this is giving your the correct results,

Then apply an autofilter to this column( select the column and do
(Data=Filter=Autofilter)

In the dropdown in M1/Marker heading select Delete

Then go to the name box (left side on the formula bar) and type in
2:65000, then do Edit=Delete

Now go to Data=filter and select Autofilter to turn off the filter. The
high priced duplicates should be gone.

--
Regards,
Tom Ogilvy



"FUZION" wrote in
message ...

Hey guys,

I have a large excel file with over 50,000 item numbers in it. In
column A I have the item number. In column E I have the Manufacturer,
and in column H I have the sale price. What I am trying to figure out
how to do is to filter the duplicate item numbers that have the same
manufacturer, and pick delete the one with the highest price. For
example, WEV co128 $1.24 wev co128 $2.27 It would leave the lowest
price one alone and delete the highest priced one. Is this even
possible to do through excel? Any help is appreciated.


--
FUZION
------------------------------------------------------------------------
FUZION's Profile:

http://www.excelforum.com/member.php...o&userid=30513
View this thread: http://www.excelforum.com/showthread...hreadid=501670



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
Can't Download Data in Thai Script Victor Viguilla Excel Discussion (Misc queries) 0 June 1st 06 03:51 AM
getting data from excel worksheet in to a script nuti Excel Discussion (Misc queries) 0 January 12th 06 08:48 AM
VBS script to add xml data to excel roblo[_2_] Excel Programming 0 August 24th 05 12:04 AM
Data match using VB script Lillian[_5_] Excel Programming 2 August 9th 04 10:16 PM
Excel 2000/XP script to Excel97 script hat Excel Programming 3 March 2nd 04 03:56 PM


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