+ Reply to Thread
Results 1 to 4 of 4

Macro to find last entry on sheet and result .

  1. #1
    Forum Contributor
    Join Date
    12-12-2017
    Location
    New Zealand
    MS-Off Ver
    Ms Office 2016
    Posts
    449

    Thumbs up Macro to find last entry on sheet and result .

    Hello all ,

    The results I am needing are in col G . Col AH are in ascending order .

    I have a sheet with 490,000 rows , this grows weekly so speed is important if possible .

    Col BH is where the results will be sourced from .

    I need to find the last data entry of each horse , then look at col BH and put a T in col G but
    only for this entire cam# number .

    When the next number above decreases put L in col G .
    When the next number above decreases put 3 in col G .
    When the next number above decreases put 4 in col G .
    When the next number above decreases put 5 in col G .
    When the next number above decreases put 6 in col G . Etc .

    Cam# can run into 40 or 50 for some .

    "A good example is horse named A Sherry For Mary , its last 5 x starts all have a different cam# , so result is L T 3 4 5 . And so on until it reaches cam# 1 . Being 12 result .
    "
    Hope this is do able .

    Thanks .
    Attached Files Attached Files
    I am grateful for all answers to my questions .
    Also i give a reputation even if not answered .

  2. #2
    Forum Contributor
    Join Date
    12-12-2017
    Location
    New Zealand
    MS-Off Ver
    Ms Office 2016
    Posts
    449

    Re: Macro to find last entry on sheet and result .

    If it makes any easier L can be result 1 and T result 2 , then 3 4 5 6 7 8 etc .
    Thanks .

  3. #3
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Macro to find last entry on sheet and result .

    Hi,
    try this
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    12-12-2017
    Location
    New Zealand
    MS-Off Ver
    Ms Office 2016
    Posts
    449

    Re: Macro to find last entry on sheet and result .

    Great , i have only tested once and will do another but the speed is perfect and 100% accurate .
    It was late when i ran it over 490,000 rows but im sure it only took a few minutes .
    Thank you so much nilem .

+ 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. Replies: 11
    Last Post: 11-11-2017, 12:12 AM
  2. Macro copy next result based on cell entry
    By spacechicken in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-26-2013, 04:25 AM
  3. [SOLVED] Input Box type 1, Use result to find row on sheet
    By LiLi1 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-23-2012, 01:59 PM
  4. "incompelte entry" as a result in excel time sheet
    By gerard_gonzales33 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-14-2012, 10:37 PM
  5. find entry in corresponding sheet and return related value
    By kildareman in forum Excel General
    Replies: 3
    Last Post: 08-19-2010, 05:29 AM
  6. Find result,next sheet
    By harsh in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-21-2009, 02:05 AM
  7. [SOLVED] find result from two sheet
    By Donna in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-14-2006, 09:00 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