+ Reply to Thread
Results 1 to 9 of 9

Using MIN, MAX and COUNTIF on ranges populated by formulas

  1. #1
    Registered User
    Join Date
    07-28-2020
    Location
    Ketchikan, Alaska
    MS-Off Ver
    Windows 10 Pro
    Posts
    7

    Using MIN, MAX and COUNTIF on ranges populated by formulas

    I have a large database export (150,000 rows x 54 columns) which i am pulling specific data from using INDEX/MATCH formulas. I then have another sheet that looks to those lookup formulas to populate a report. I need the report to look at multiple ranges (date and Lot #), that have been populated by formulas and return the MIN and MAX of a range of Times based on the date and Lot # they were produced on. COUNTIFS is not working either.

    MINIFS and MAXIFS are consistently returning 0.

    The raw data has the Lot # formatted as a number, the Date formatted as a Date, and the Time formatted as a Number. The formatting of the cells with the INDEX/MATCH formulas matches the source data formatting. The cells i want to have the MINIFS values in are also formatted the same as the source data.
    Last edited by Beregan; 07-29-2020 at 03:14 PM.

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Using MIN, MAX and COUNTIF on ranges populated by formulas

    Hi,
    please post a sample file. see instructions at the top of the page on "HOW TO ATTACH YOUR SAMPLE WORKBOOK"

  3. #3
    Registered User
    Join Date
    07-28-2020
    Location
    Ketchikan, Alaska
    MS-Off Ver
    Windows 10 Pro
    Posts
    7

    Re: Using MIN, MAX and COUNTIF on ranges populated by formulas

    I would if i could, even my small sample version is 5MB, way over the allowable upload size.

  4. #4
    Registered User
    Join Date
    07-28-2020
    Location
    Ketchikan, Alaska
    MS-Off Ver
    Windows 10 Pro
    Posts
    7

    Re: Using MIN, MAX and COUNTIF on ranges populated by formulas

    I discovered i had left some linked formulas in the example, thats why my file size was so big. I brought it down to just values besides the formulas that i am having trouble with. All of the values on the Results tab are populated by index/match formulas looking through a large dataset, but i removed those formulas for now.

  5. #5
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,784

    Re: Using MIN, MAX and COUNTIF on ranges populated by formulas

    The hours in your file were texts. I changed them in number and formatted as H: mm: ss

    HC Data

    C2=IF(A2<>"",MINIFS(Result!$T$4:$T$21,Result!$P$4:$P$21,'HC Data'!$A2,Result!$S$4:$S$21,'HC Data'!$B2),"")

    Copy down
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    07-28-2020
    Location
    Ketchikan, Alaska
    MS-Off Ver
    Windows 10 Pro
    Posts
    7

    Re: Using MIN, MAX and COUNTIF on ranges populated by formulas

    Thank You CARACALLA, This formula works on the sample, in which the times are just values. In the full version of this workbook they are populated by an INDEX/MATCH formula. I have changed every instance of the times (on the raw data, the INDEX/MATCH formula and the report MINIFS formula) to the h:mm:ss format. It is still returning 0:00:00.

  7. #7
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,784

    Re: Using MIN, MAX and COUNTIF on ranges populated by formulas

    Attach real file with index match formula

  8. #8
    Registered User
    Join Date
    07-28-2020
    Location
    Ketchikan, Alaska
    MS-Off Ver
    Windows 10 Pro
    Posts
    7

    Re: Using MIN, MAX and COUNTIF on ranges populated by formulas

    I have added a minimized version of the raw data and the index/match formulas that extract the dates and times to my original post.

  9. #9
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,784

    Re: Using MIN, MAX and COUNTIF on ranges populated by formulas

    Pack time column D lookups sheet is a text

    if you change the formula to D2 = IFERROR (INDEX ('Raw Data'! E: E, MATCH (Lookups! A2, 'Raw Data'! A: A, 0)) + 0, "")

    copy down

    transform from text to number and everything works


    Sorry for my English

+ 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. Applying Formulas To Columns That Are Not Populated
    By AFG03082015 in forum Excel General
    Replies: 3
    Last Post: 08-03-2016, 09:35 AM
  2. prevent formulas from working if another cell is populated
    By gilnic in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-17-2016, 10:31 AM
  3. Replies: 3
    Last Post: 06-05-2015, 01:09 PM
  4. Main sheet populated by multiple sheets, dynamic ranges
    By cmack in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-20-2014, 09:14 AM
  5. Replies: 1
    Last Post: 05-18-2010, 07:50 PM
  6. Sorting a table which is populated via formulas
    By Benson112 in forum Excel General
    Replies: 1
    Last Post: 03-24-2008, 12:29 PM
  7. [SOLVED] Function Not Recognising Values in Populated Ranges
    By Matt Roberts in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-11-2006, 11:35 AM

Tags for this Thread

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