Results 1 to 8 of 8

Script to recognise types of duplicate data

Threaded View

DMacSTB Script to recognise types of... 12-06-2012, 12:19 PM
rcm Re: Script to recognise types... 12-06-2012, 02:28 PM
rcm Re: Script to recognise types... 12-06-2012, 02:46 PM
DMacSTB Re: Script to recognise types... 12-06-2012, 03:28 PM
rcm Re: Script to recognise types... 12-06-2012, 03:47 PM
DMacSTB Re: Script to recognise types... 12-06-2012, 03:59 PM
rcm Re: Script to recognise types... 12-06-2012, 04:10 PM
DMacSTB Re: Script to recognise types... 12-06-2012, 04:12 PM
  1. #1
    Registered User
    Join Date
    07-10-2012
    Location
    Edinburgh
    MS-Off Ver
    Excel 2003
    Posts
    41

    Script to recognise types of duplicate data

    Hey all,

    I basically need to take the data from Sheet1 and split it into Sheet2 and Sheet3 based on some duplication criteria

    Sheet1 Column B has a list of productID numbers some of which are unique and some of which are duplicate because they have a variant. The variant number is in Column C. Column D is productCost which contains either a value or #N/A.

    Where the productID is unique I need to change the #N/A in column D to DELETE-THIS-RECORD.

    Where the productID has duplicates and all the variantIDs have a productCost of #N/A I also need to change those to DELETE-THIS-RECORD and put into Sheet2 with a new header

    Where the productID has duplicates but not all the variantIDs have a productCost of #N/A I need to change those to -1 and put into Sheet3 with a new header.

    All rows that have a value instead of #N/A in column D are not to be changed or copied to any other sheet and the row can actually be deleted.

    I have attached my example file which has the source data in Sheet1 and the data the way I want it in Sheet2 and Sheet3.

    Hope I've made sense, its a little complicated to explain but it should be clear in my Example.xls file.

    Any help would be much appretiated.
    Thanks
    Dave
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1