+ Reply to Thread
Results 1 to 10 of 10

function SUMPRODUCT with LEFTor ALL

  1. #1
    Registered User
    Join Date
    01-20-2014
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    15

    function SUMPRODUCT with LEFTor ALL

    Hey, i have some problem.

    C1 = A B C D and etc.
    how properly write: C1 begins from any letters

    =SUMPRODUCT(--(LEFT(Sheet2!$C$2:$C$100000;1)=$C$1);--(Sheet2!$Y$2:$Y$100000=$D20);Sheet2!$P$2:$P$100000)
    Last edited by vysa; 11-15-2014 at 10:31 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: function SUMPRODUCT with LEFTor ALL

    The letters of the alphabet all fall in the "code" range of 65-122 in the font table. So you can use that...

    =SUMPRODUCT(--(CODE(LEFT(Sheet2!$C$2:$C$100000))>=65); --(CODE(LEFT(Sheet2!$C$2:$C$100000))<=122); --(Sheet2!$Y$2:$Y$100000=D20); Sheet2!$P$2:$P$100000)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    01-20-2014
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: function SUMPRODUCT with LEFTor ALL

    Perhaps there are any simpler way ? only change cell C1

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: function SUMPRODUCT with LEFTor ALL

    If you want to match column C to the letter of the alphabet you place in C1, and that can be any letter, then your original formula seems to already do that.

  5. #5
    Registered User
    Join Date
    01-20-2014
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: function SUMPRODUCT with LEFTor ALL

    but at the same time i would like to have and with all letters result.

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: function SUMPRODUCT with LEFTor ALL

    Maybe I am missing something, my formula will return a result for all possible letters, your formula will return a result for any single letter. What else are you seeking?

  7. #7
    Registered User
    Join Date
    01-20-2014
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: function SUMPRODUCT with LEFTor ALL

    Please take a look excel file.

    the formula shows 0, when i set any filter *
    Microsoft Excel Worksheet.xlsx

  8. #8
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,685

    Re: function SUMPRODUCT with LEFTor ALL

    Please Login or Register  to view this content.
    Try this one
    Last edited by popipipo; 11-15-2014 at 05:23 PM. Reason: change formula
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  9. #9
    Registered User
    Join Date
    01-20-2014
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: function SUMPRODUCT with LEFTor ALL

    Yes, that one i know. But both criteria might be *, perhaps there is in excel any symbol which means no criteria.

  10. #10
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,886

    Re: function SUMPRODUCT with LEFTor ALL

    Try this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

+ 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] Sumproduct and Max function
    By zeez36 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-11-2014, 11:18 AM
  2. [SOLVED] Sumproduct Function with Other Function References
    By T86157 in forum Outlook Formatting & Functions
    Replies: 4
    Last Post: 07-30-2012, 04:56 PM
  3. Replies: 9
    Last Post: 07-02-2012, 07:02 PM
  4. Replies: 10
    Last Post: 11-11-2010, 03:49 PM
  5. SUMIF Function Inside SUMPRODUCT Function
    By Abdul Waheed in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 09-19-2005, 12: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