Use LEFT function in SUMIF or SUMIFS

Anonymous
2019-01-02T20:10:16+00:00

I am trying to total up the quantities in Column E base on the first 4 characters of Column D.  I see online that the LEFT function can't be used in SUMIF or SUMIFS.  Is there another formula I can try?

D E
Item Name Trans Qty
.006 x 1.331 SS 321 STRIP (PER SPEC MS-CHS-S-001P) 221
.006 x 1.331 SS 321 STRIP (PER SPEC MS-CHS-S-001P) 221
.006 x 1.331 SS 321 STRIP (PER SPEC MS-CHS-S-001P) 606
.006 x 1.890 SS 321 STRIP (PER SPEC MS-CHS-S-001P) 780
.008 x 3.701 SS 321 STRIP (PER SPEC MS-CHS-S-001P) 2530
.008 x 3.701 SS 321 STRIP (PER SPEC MS-CHS-S-001P) 2264
.009 x 4.815 SS 321 STRIP (PER SPEC MS-CHS-S-001P) 1816
.009 x 4.815 SS 321 STRIP (PER SPEC MS-CHS-S-001P) 2605
Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Andreas Killer 144K Reputation points Volunteer Moderator
    2019-01-02T20:19:42+00:00

    H2: =SUMIF(D:D,G2&"*",E:E)

    and drag down.

    Andreas.

    16 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2019-01-03T13:08:40+00:00

    Thank you, Andreas!  I was hoping to find an all-in-one formula, but this works just as well.

    0 comments No comments
  3. Andreas Killer 144K Reputation points Volunteer Moderator
    2019-01-03T13:21:53+00:00

    A All-In-One solution is possible using Power Query.

    https://support.office.com/en-us/article/get-tr...

    But in PQ you also have to get the left 4 chars, then you can group by that chars.

    https://support.office.com/en-us/article/group-...

    Andreas.

    2 people found this answer helpful.
    0 comments No comments