+ Reply to Thread
Results 1 to 2 of 2

Find Max Value based on Another Column in VBA

  1. #1
    Registered User
    Join Date
    08-21-2013
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    2

    Find Max Value based on Another Column in VBA

    Hi

    I have 3 columns

    A B C
    1 2.3 1
    3 4.3 1
    4 3.4 1
    2 5.6 2
    5 4.4 2

    First I want to find Max value of B where Column C is 1 and then I need to copy that entire row to a new Sheet.
    This needs to be done using VBA Macro.
    Can any one please help ?

    Thanks in Advance
    Anu

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Find Max Value based on Another Column in VBA

    Please Login or Register  to view this content.
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    08-21-2013
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Find Max Value based on Another Column in VBA

    Hi
    This Works, but loop gets very slow when the excel is lengthy and there is we have to go through to , say a 100 values of column 3.
    Is there a way we can do this without a loop ? something like using a formula from VBA ? What are WorkSheetFunctions used for ?

    Regards
    Anu

+ 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. find and extract row based on column max value
    By felipepanza in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-05-2013, 09:09 AM
  2. [SOLVED] Find Value in 1 column based on another column then replace with value of yet another.
    By johanbosman in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-07-2013, 11:50 AM
  3. [SOLVED] Find average of column b based on boundaries applied to column a
    By Kybynn in forum Excel General
    Replies: 1
    Last Post: 12-04-2012, 07:17 AM
  4. find column based on value of first row?
    By vladuz976 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-03-2012, 07:35 PM
  5. Replies: 5
    Last Post: 09-29-2011, 06:39 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