+ Reply to Thread
Results 1 to 3 of 3

How to nest a left function within a sumif function?

  1. #1
    LisaK
    Guest

    How to nest a left function within a sumif function?

    For example:

    Left(a2,3)
    within a sumif function

    How to do that?

  2. #2
    Jason Morin
    Guest

    Re: How to nest a left function within a sumif function?

    Unless you're talking about the criteria portion of
    SUMIF, you can't. But you can do this:

    =SUMPRODUCT((LEFT(A2:A100,3)="jas")*B2:B100)

    Which calculates as:

    "Sum everything in col. B where the first 3 characters of
    the values in col. A = "jas".

    HTH
    Jason
    Atlanta, GA

    >-----Original Message-----
    >For example:
    >
    >Left(a2,3)
    >within a sumif function
    >
    >How to do that?
    >.
    >


  3. #3
    Registered User
    Join Date
    08-09-2017
    Location
    Azerbaijan
    MS-Off Ver
    MS Office 2013
    Posts
    2

    Re: How to nest a left function within a sumif function?

    [QUOTE=Jason Morin;893313]Unless you're talking about the criteria portion of
    SUMIF, you can't. But you can do this:

    =SUMPRODUCT((LEFT(A2:A100,3)="jas")*B2:B100)

    Which calculates as:

    "Sum everything in col. B where the first 3 characters of
    the values in col. A = "jas".

    HTH
    Jason
    Atlanta, GA
    [color=blue]

    Thanks, mate, you are great!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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