+ Reply to Thread
Results 1 to 9 of 9

SUMPRODUCT with embedded MAX/MIN

Hybrid View

  1. #1
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2510
    Posts
    13,848

    Re: SUMPRODUCT with embedded MAX/MIN

    An afterthought.

    Find this formula in ‘Job Listing’ G2:H7 of the attached.
    Formula: copy to clipboard
    =SUMIFS('Wage Rates'!$E$2:$E$30,'Wage Rates'!$A$2:$A$30,'Job Listing'!$C2,'Wage Rates'!$B$2:$B$30,HLOOKUP($C2,'Wage Rates'!$I$1:$O$3,COLUMNS($A:A)+1,0))
    It is non-array, and depends upon a small helper range in ‘Wage Rates’. With column headings of the unique Pay Scale Codes these array formulas go into I2 and I3 copied across.
    Formula: copy to clipboard
    =MIN(IF(I$1=$A$2:$A$30,$B$2:$B$30))
    Formula: copy to clipboard
    =MAX(IF(I$1=$A$2:$A$30,$B$2:$B$30))


    These identify the min and max Step Codes for each of the Pay Scale Codes. While they are array formulas they’re impact on performance is light, and they save having to recalculate them in an array formula like posted earlier. If you are not aware of it array formulas are resource hungry. If you have many of them to do in ‘Job Listing’ they can slow your workbook down. As powerful as SUMPRODUCT like formulas are SUMIF(S) is more efficient.

    Hope this helps.
    Attached Files Attached Files
    Dave

  2. #2
    Registered User
    Join Date
    12-29-2015
    Location
    Sunnyvale, CA
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: SUMPRODUCT with embedded MAX/MIN

    Thanks for the alternate formula, FlameRetired! For my purposes this time, I think your first array formula makes sense (dealing with hundreds of job codes) but it's nice to know I have this work around for situations where it may slow my (already slow) computing powers.

+ 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. Count SUMPRODUCT Members / Average of SUMPRODUCT
    By Shingaru in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-10-2014, 03:59 PM
  2. [SOLVED] COUNTIF embedded in a SUMPRODUCT formula
    By macrorookie in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-11-2014, 09:02 AM
  3. Replies: 1
    Last Post: 02-21-2013, 12:11 PM
  4. Replies: 1
    Last Post: 05-19-2012, 02:54 AM
  5. Replies: 5
    Last Post: 04-20-2012, 08:54 AM
  6. Using a SumProduct Count to find a SumProduct Total?
    By XL021710 in forum Excel General
    Replies: 3
    Last Post: 02-18-2010, 08:31 AM
  7. LEFT embedded in SUMPRODUCT
    By marika1981 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-20-2005, 03:06 PM

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