+ Reply to Thread
Results 1 to 4 of 4

Remove Row with Earlier Values in List

  1. #1
    Registered User
    Join Date
    12-27-2006
    Location
    Australia
    MS-Off Ver
    Microsoft 365
    Posts
    87

    Remove Row with Earlier Values in List

    I have a list of horses and odds. As the odds of a horse are updated the price is added to the bottom of the list. eg. B2 and B12 in the sheet attached as well as B3 and B 13 etc.

    I am chasing a process that will remove the upper most row eg. row 2 and keep row 12 - remove row 3 and keep row 13 and so on.

    Any help appreciated.

    Bob
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Remove Row with Earlier Values in List

    When the odds are updated, does it include a date\time? If yes, you could sort on the date-time column so the newest are at the top. Then use Advanced Filter to filter for unique values (horses). It would keep the top most unique horse and it would be the latest odds because you previously sorted on date-time.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    12-27-2006
    Location
    Australia
    MS-Off Ver
    Microsoft 365
    Posts
    87

    Re: Remove Row with Earlier Values in List

    Thanks AlphaFrog.

    Unfortunately the data does not include date and time.

    However I am trying the formula below to set up a TRUE/FALSE column.

    =ISNONTEXT(IF(B2<>B3,COUNTIF($B$2:B2,B2),""))

    Thanks for helping.

  4. #4
    Spammer
    Join Date
    10-23-2012
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003, Office 365
    Posts
    1,237

    Re: Remove Row with Earlier Values in List

    Or you could try something like this code..
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Remove Values not found in another list
    By sriley5 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-22-2019, 05:24 PM
  2. [SOLVED] Trying to Remove Duplicate Values of Last Name List
    By sonicexcel in forum Excel General
    Replies: 3
    Last Post: 04-24-2014, 11:01 PM
  3. macro to create drop down list (dependent on earlier selection)
    By jw01 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-22-2014, 03:25 PM
  4. have vba remove values from one list based on entries from another list
    By frugal in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-11-2013, 06:36 AM
  5. Chart Dates start one day earlier than the X values?
    By witchcraftz in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 02-27-2013, 06:45 PM
  6. Replies: 1
    Last Post: 09-17-2009, 08:20 AM
  7. [SOLVED] List function in earlier Excel versions
    By John_Carty in forum Excel General
    Replies: 4
    Last Post: 11-04-2005, 04:55 AM

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