+ Reply to Thread
Results 1 to 4 of 4

Excel VBA to pull minimum and maximum date in separate table

  1. #1
    Forum Contributor
    Join Date
    09-20-2014
    Location
    India
    MS-Off Ver
    2013
    Posts
    275

    Lightbulb Excel VBA to pull minimum and maximum date in separate table

    Dear all,
    I need VBA to pull Minimum and maximum date in the table shown in the attachment.
    Input data is in Column A:B.

    I know it needs to achieved using arrays and i am totally week at it..

    Thanks
    Attached Files Attached Files

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

    Re: Excel VBA to pull minimum and maximum date in separate table

    Why vba?

    G7:
    =MIN(IF($A:$A=H6,$B:$B))

    G8:
    =MAX(IF($A:$A=H6,$B:$B))

    Both formula must be confirmed with Ctr+Shift+Enter(Array formula entry).

    Select G7:G8 then fill to the right.

    You could record the macro while you do the above to get vba code.

  3. #3
    Forum Contributor
    Join Date
    09-20-2014
    Location
    India
    MS-Off Ver
    2013
    Posts
    275

    Re: Excel VBA to pull minimum and maximum date in separate table

    Output is not correct...Please review attached
    Attached Files Attached Files

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

    Re: Excel VBA to pull minimum and maximum date in separate table

    You need the read it carefully.
    Quote Originally Posted by jindon View Post
    Both formula must be confirmed with Ctr+Shift+Enter(Array formula entry).

    Select G7:G8 then fill to the right.

+ 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. [SOLVED] Maximum and Minimum Date & Payment
    By MAHMUZ in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-09-2015, 04:41 PM
  2. Displaying minimum and maximum rank across columns in a table
    By cwcollins06 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-13-2014, 12:01 AM
  3. Adding date/time to minimum and maximum flow values
    By junglefighter25 in forum Excel General
    Replies: 2
    Last Post: 07-06-2012, 07:28 PM
  4. Find maximum and minimum value for each date
    By anna.gladkova in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-05-2012, 08:50 PM
  5. [SOLVED] change minimum and maximum on logarithmic scale chart in excel
    By jbesr1230 in forum Excel General
    Replies: 1
    Last Post: 06-07-2006, 01:10 PM
  6. How do I pull a date from a separate worksheet using the IF functi
    By Jerrod Mason in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  7. [SOLVED] [SOLVED] Excel can't execute minimum / maximum scale property
    By danz98 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-24-2005, 04:05 PM

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