+ Reply to Thread
Results 1 to 11 of 11

How to pick last value of particular range

  1. #1
    Valued Forum Contributor mohan.r1980's Avatar
    Join Date
    09-18-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2010 (windows7)
    Posts
    729

    How to pick last value of particular range

    Hello Friends,

    i have range of Names in Column C
    Party Name Due On
    XYZ Co. 22-03-2017
    XYZ Co. 23-03-2017
    PQR Co. 24-03-2017
    DEF Co. 25-03-2017
    PQR Co. 26-03-2017
    DEF Co. 27-03-2017
    DEF Co. 28-03-2017
    PQR Co. 29-03-2017
    PQR Co. 30-03-2017
    XYZ Co. 31-03-2017
    XYZ Co. 01-04-2017
    qqq 02-04-2017
    qqq 03-04-2017
    PQR Co. 04-04-2017
    qqq 05-04-2017


    i have unique Party Name and on this basic i want to pick the last value of "Due On" Column which is in D
    is it possible in Macro ?

    Please suggest?
    Last edited by mohan.r1980; 03-10-2017 at 06:42 AM.

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: How to pick last value of particular range

    Does this help?

    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor mohan.r1980's Avatar
    Join Date
    09-18-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2010 (windows7)
    Posts
    729

    Re: How to pick last value of particular range

    Hi John,

    Thanks for reply

    i want this result

    Party Name Last Due On
    XYZ Co. 01-04-2017
    PQR Co. 04-04-2017

    means each Party name's Last Date

    sorry i didn't mention in earlier post.

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: How to pick last value of particular range

    Try
    Please Login or Register  to view this content.

  5. #5
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: How to pick last value of particular range

    OK:

    Please Login or Register  to view this content.
    Include in your Module this function as well (written by Rick Rothstein)

    Please Login or Register  to view this content.

  6. #6
    Valued Forum Contributor mohan.r1980's Avatar
    Join Date
    09-18-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2010 (windows7)
    Posts
    729

    Re: How to pick last value of particular range

    Hello Jindon,

    thanks for reply

    while running i got the error on UBound(a,1) line

    Compile error:
    Expected array

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: How to pick last value of particular range

    Assumed the data heading in row1.
    Attached Files Attached Files

  8. #8
    Valued Forum Contributor mohan.r1980's Avatar
    Join Date
    09-18-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2010 (windows7)
    Posts
    729

    Re: How to pick last value of particular range

    Hello Jindon,

    Very thanks for reply

    i am trying your script but i am fail to modify in my way.

    i am attaching a sample file which i exactly want.
    Please read comments on Output sheet that will help you.

    once again thanks
    Attached Files Attached Files

  9. #9
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: How to pick last value of particular range

    Much more complex than your original question.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  10. #10
    Valued Forum Contributor mohan.r1980's Avatar
    Join Date
    09-18-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2010 (windows7)
    Posts
    729

    Re: How to pick last value of particular range

    Quote Originally Posted by jindon View Post
    Much more complex than your original question.
    Please Login or Register  to view this content.
    Yes, much more complex than original, actually i thought it will be very easy to pick last value because some times i use Vlookup formula for last value i.e
    Please Login or Register  to view this content.
    but this time its not working, i don't know why?
    so i post in that way.

    and finally Your solution is superb, i don't have the words to describe you.
    its my pleasure that you are helping me.
    just keep in mind that i am a big fan of you. i never see the script typing way that you apply.
    whenever i visit this site i always follow your post. every time i learn from you.

    thank you so much.

  11. #11
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: How to pick last value of particular range

    Glad you like my codes, however you should describe the whole problem in the first post.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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: 3
    Last Post: 12-08-2016, 10:37 AM
  2. MAX don't pick up MID formula range
    By micope21 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-17-2013, 06:45 AM
  3. pick off index of a range
    By vientito in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-24-2013, 05:17 PM
  4. Replies: 1
    Last Post: 09-01-2010, 04:18 AM
  5. can I pick start point in a range?
    By nastech in forum Excel General
    Replies: 1
    Last Post: 03-15-2006, 05:35 AM
  6. how to pick from a range of table values
    By jackoat in forum Excel Formulas & Functions
    Replies: 69
    Last Post: 09-06-2005, 07:05 PM
  7. Range selection-How do I use vb code to pick up
    By Sagaron in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-16-2005, 07:08 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