+ Reply to Thread
Results 1 to 9 of 9

Find highest revision number in one column of a item number in another column

  1. #1
    Registered User
    Join Date
    05-25-2013
    Location
    Mauritania
    MS-Off Ver
    Excel 2007
    Posts
    5

    Find highest revision number in one column of a item number in another column

    Hello,

    I am trying to find a way to find the highest revision (column 3) for each unique item number in column 9 and delete all the 'fluff"
    Attached Files Attached Files
    Last edited by Tasiast; 06-01-2013 at 01:17 PM.

  2. #2
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Find highest revision number in one column of a item number in another column

    See the small table starting at A60:
    Attached Files Attached Files
    Gary's Student

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Find highest revision number in one column of a item number in another column

    Another option - vba code -
    Please Login or Register  to view this content.
    Copy the Excel VBA code
    Select the workbook in which you want to store the Excel VBA code
    Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    Choose Insert | Module
    Where the cursor is flashing, choose Edit | Paste

    To run the Excel VBA code:
    Choose View | Macros
    Select a macro in the list, and click the Run button
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  4. #4
    Registered User
    Join Date
    05-25-2013
    Location
    Mauritania
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Find highest revision number in one column of a item number in another column

    Hello,
    You just saved me alot of work. Very much appreciated.

  5. #5
    Registered User
    Join Date
    05-25-2013
    Location
    Mauritania
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Find highest revision number in one column of a item number in another column

    Jakobshavn: Thank you sir. Unfortunately I had made my example too brief. I ended up sing the VBA.
    Last edited by Tasiast; 05-27-2013 at 10:33 AM. Reason: Newbie trying to figure this out!

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Find highest revision number in one column of a item number in another column

    Which solution are you talking about ? You received 2 solutions.

  7. #7
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Find highest revision number in one column of a item number in another column

    arlu:

    I like the approach!
    Performing the two-way sort allows easy identification of which records must be removed.

  8. #8
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Find highest revision number in one column of a item number in another column

    Thank you Jakobshavn.

  9. #9
    Registered User
    Join Date
    05-25-2013
    Location
    Mauritania
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Find highest revision number in one column of a item number in another column

    Hello,

    I would like to tweak my post/request....
    I am also looking to add total to 'POLI_QTY' that captures the totals of all the previous PO_SUPP quantities, while maintaining the deletion of of the oldest PO_SUPP revisions.
    For example, after the code is run, for S4540539, only PO_SUPP 4 is showing, but a total qty ordered of 81.3

    Thanks in advance

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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