+ Reply to Thread
Results 1 to 5 of 5

Convert MAX IF with multiple criteria to Macro code

  1. #1
    Registered User
    Join Date
    07-25-2012
    Location
    Denizli
    MS-Off Ver
    Excel 2010
    Posts
    6

    Convert MAX IF with multiple criteria to Macro code

    Good Day to all
    I am trying to replace below formulas with a macro code.

    =Min(if($C$7:$C$14940=$N7;if($D$7:$D$14940=M$7;$F$7:$F$11940)))
    =Max(if($C$7:$C$14940=$N7;if($D$7:$D$14940=$M7;$F$7:$F$14940)))



    I have 2 criterias
    Criteria 1 : Plate Number like (PN AU 2095)
    Criteria 2 : Period like (2018/01)

    I try to find max or min values from Column (F7:to last Row) with multiple criteria.

    Column (D7:to last row)= Plate Numbers
    Column (C7:to last row)= Periods
    Column (F7:to last row)= Kilometers (where the code must get the max or min "Km" regarding to these 2 criteria.)

    I have atatched my workbook to this message.

    Thanks for any help from now.

    This question has been also poted at this forum too ; https://www.mrexcel.com/forum/excel-...criterias.html
    Attached Files Attached Files
    Last edited by uygaroz; 02-05-2018 at 08:00 AM.

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Convert MAX IF with multiple criteria to Macro code

    Hi,

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Registered User
    Join Date
    07-25-2012
    Location
    Denizli
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Convert MAX IF with multiple criteria to Macro code

    Hi Sorry. I totaly didnt know this rule.
    So you can delete my post.
    Upon I can not find an answer then I will re post it here.
    Thanks

  4. #4
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Convert MAX IF with multiple criteria to Macro code

    The rule doesn't say you can't cross-post, just that you have to provide links to your cross-posts. Also, I'm not in a position to delete your posts anyway!

  5. #5
    Registered User
    Join Date
    07-25-2012
    Location
    Denizli
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Convert MAX IF with multiple criteria to Macro code

    I have added the link.
    hope it is fine now.

+ 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. Convert Multiple Rows into One Single Row Based on Criteria
    By Raeleanne76 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-08-2017, 05:49 PM
  2. convert record macro to code
    By fakhteh in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2016, 06:49 AM
  3. Convert multiple IF functions to a VB code on button
    By chrismccarthy17 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-23-2016, 07:28 PM
  4. Convert VBA Code to work as a Macro
    By nwb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-08-2015, 01:01 PM
  5. [SOLVED] How to convert selected multiple lines of a VBA code into comment line?
    By 1tane1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-29-2014, 11:04 AM
  6. Macro to convert formuales into values based on date criteria
    By ash_farooq in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-29-2013, 01:38 AM
  7. Replies: 1
    Last Post: 12-14-2009, 02:24 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