+ Reply to Thread
Results 1 to 4 of 4

using left function in sumproduct

  1. #1
    Registered User
    Join Date
    12-09-2015
    Location
    england
    MS-Off Ver
    2003
    Posts
    33

    using left function in sumproduct

    Earlier I posted an issue where I needed to establish an*average % across*multiple columns where multiple criteria was met and BSB kindly solved this for me. I stupidly forgot to mention that on the attached,*I will also need to establish an average for the whole of Lay team. I'm trying to achieve this using left in my formula but it's just not working.

    *

    Can anyone help by amending the working individual lay team averages to provide a solution in cell m14 for me
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,148

    Re: using left function in sumproduct

    Try

    =SUMPRODUCT((LEFT($C$3:$C$157,3)="LAY")*($D$3:$D$157=M$4)*($F$3:$J$157>=$M$3)*($F$3:$J$157<=$N$3),$E$3:$I$157)/SUMPRODUCT((LEFT($C$3:$C$157,3)="LAY")*($D$3:$D$157=M$4)*($F$3:$J$157>=$M$3)*($F$3:$J$157<=$N$3))

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: using left function in sumproduct

    You can put this in M14 (changes in red):

    =SUMPRODUCT((LEFT($C$3:$C$157,3)=LEFT($L14,3))*($D$3:$D$157=M$4)*($F$3:$J$157>=$M$3)*($F$3:$J$157<=$N$3),$E$3:$I$157)/SUMPRODUCT((LEFT($C$3:$C$157,3)=LEFT($L14,3))*($D$3:$D$157=M$4)*($F$3:$J$157>=$M$3)*($F$3:$J$157<=$N$3))

    then copy into N14.

    I've used the first three characters of the team names, but as you don't have any other teams which begin with "L" you could just omit the ,3 as the LEFT function will default to 1 in that case.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    12-09-2015
    Location
    england
    MS-Off Ver
    2003
    Posts
    33

    Re: using left function in sumproduct

    Thanks guys you've been a great help. Was trying everything to try and get left to work, I was close but no cigar. Thanks again

+ 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. [SOLVED] using left function in sumproduct
    By steeler11111 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-30-2016, 10:22 AM
  2. [SOLVED] Sumproduct and Left
    By siqqboy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-11-2014, 01:39 PM
  3. SumProduct with using Left() Function
    By rmb623 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-16-2013, 05:53 AM
  4. Excel 2007 : LEFT With SUMPRODUCT
    By erik.kirby in forum Excel General
    Replies: 5
    Last Post: 02-10-2011, 03:08 PM
  5. SUMPRODUCT and LEFT.
    By klund in forum Excel General
    Replies: 8
    Last Post: 05-03-2009, 07:28 AM
  6. Left and Sumproduct
    By Alexball in forum Excel General
    Replies: 1
    Last Post: 08-09-2006, 07:04 AM
  7. LEFT embedded in SUMPRODUCT
    By marika1981 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-20-2005, 03:06 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