+ Reply to Thread
Results 1 to 6 of 6

Need to find MAX/MIN of figures in a colum with criteria coming from different sheets

  1. #1
    Forum Contributor
    Join Date
    11-11-2004
    MS-Off Ver
    pro + 2019
    Posts
    134

    Need to find MAX/MIN of figures in a colum with criteria coming from different sheets

    I have two sheets with a column for ticket numbers in both of them--though they are out of order.

    1. starting from sheet one, I must identify the ticket numbers that go with "dodge"
    2. then take those ticket numbers over to sheet 2 where i can then examine those same found ticket numbers and see which have sold in the "Y" column.
    3. finally, there is a days sold column, where i need to find the max and min days taken to sell.

    4. i can't make any changes to the two sheets, so I have to work it all on a third sheet of my own. Same workbook, just a new sheet.

    The max should give "8"; the min, "7" as those are the only two dodges that sold.

    I've already had some good guidance on how to 'count' the number of dodge's that sold, but I cant seem to take that formulation one step further to take a max/min...or maxifs/minifs.

    Excel Pro + 2019 on Windows10.


    I had been looking at something like this:

    =max(if(sale!b2:b14="y", if(index(type!b2:b14, match(sale!a2:a14, type!a2:a14,0))="dodge", sale!c2:c14)


    or


    =MINIFS(sale!c2:c14, sale!b2:b14, "Y", INDEX(type!B2:B14, MATCH(sale!a2:a14, type!a2:a14, 0)), "DODGE")
    Attached Files Attached Files
    Last edited by rcane; 02-18-2021 at 04:37 PM.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,165

    Re: Need to find MAX/MIN of figures in a colum with criteria coming from different sheets

    Hi rcane,

    It looks like you need to create a relationship between your two tables and then do a simple Pivot Table. Does the below site help?
    https://support.microsoft.com/en-us/...9-8a3848820be3
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Contributor
    Join Date
    11-11-2004
    MS-Off Ver
    pro + 2019
    Posts
    134

    Re: Need to find MAX/MIN of figures in a colum with criteria coming from different sheets

    Do you think there is anyway to do this without relationships? I'm trying to set this up where I get the new workbook and import the sheets into my workbook. Setting up new relationships is going to get tedious.
    Last edited by rcane; 02-18-2021 at 07:08 PM.

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,165

    Re: Need to find MAX/MIN of figures in a colum with criteria coming from different sheets

    Hi rcane,

    It appeared to me that you need to get both tables together somehow on a third sheet to do what you wanted. If you had a good standard of where both sets of data will land on the first two sheets, a macro might do what you want. I also think Power Query can put those two tables together. That might be your best bet.

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Need to find MAX/MIN of figures in a colum with criteria coming from different sheets

    Pl see file.Formulas will work even the number rows are different in sale and type sheets.
    ARRAY formulas are used
    For Max in B2 of Sheet1
    Please Login or Register  to view this content.
    For Min in B3 of Sheet1
    Please Login or Register  to view this content.
    To enter ARRAY formula
    Copy and paste the formula in cell
    Press F2
    Press Ctrl+Shift+Enter together
    Excel covers the formula with {}.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  6. #6
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,822

    Re: Need to find MAX/MIN of figures in a colum with criteria coming from different sheets

    For the MAX, you can also try this:

    =MAX(COUNTIFS(sale!$A$2:$A$14,($A$2:$A$14)*($B$2:$B$14="DODGE"),sale!$B$2:$B$14,"Y")*sale!$C$2:$C$14)

    (if not on O365, enter as an array formula)

+ 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. Comparing 3 sheets to find a cheapest price in one colum
    By AzzKiker83 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-04-2016, 07:21 AM
  2. [SOLVED] Find average of all items if criteria appears in another colum
    By dave033 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-17-2014, 12:26 PM
  3. VBA. If criteria is met, sum up figures that are over two sheets (same workbook)
    By rain4u in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-01-2011, 11:46 PM
  4. [SOLVED] totaling figures in colum
    By Bedros in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  5. totaling figures in colum
    By Bedros in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  6. totaling figures in colum
    By Bedros in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  7. totaling figures in colum
    By Bedros in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10: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