+ Reply to Thread
Results 1 to 2 of 2

Finding Max value from a column based on a criteria on other column

  1. #1
    Forum Contributor
    Join Date
    08-20-2019
    Location
    Mumbai
    MS-Off Ver
    Office 365
    Posts
    101

    Finding Max value from a column based on a criteria on other column

    I have sales data for multiple years in a table. The estimate ref numbers in this table are serial numbers like 1, 2, 3 and so on. Every year this number restarts at value 1.

    I need to give a reference number for a new estimate which is one more than the max estimate number prevailing for the year chosen.

    At the moment I use the below method. Please let me know if there is a better option.

    I use Advanced Filter Copy method and paste the filtered table for the required year in a new sheet and then find the max number from the estimate column.

    Any better idea that does not involve creating another temp sheet. In excel I would use Aggregate function. But I am not sure how to write that statement in VBE.

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Finding Max value from a column based on a criteria on other column

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

+ 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: 12
    Last Post: 10-14-2019, 09:10 AM
  2. [SOLVED] Finding the sum of cells from column A that meet criteria in column B
    By leanna325 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-07-2019, 05:32 PM
  3. Finding 3 largest values using LARGE function based on criteria in another column
    By cathyharland in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-23-2018, 02:17 AM
  4. [SOLVED] Finding values based on criteria from more than one column
    By milkychips in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-08-2015, 02:57 PM
  5. [SOLVED] Finding Values in a Column based on Criteria and Selecting Rows Above
    By LvaughnL in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-04-2013, 03:07 PM
  6. Replies: 11
    Last Post: 01-02-2013, 10:14 AM
  7. Finding Avg. Based on Criteria Found in a Second Column
    By Alhazred in forum Excel General
    Replies: 5
    Last Post: 02-07-2008, 04:17 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