# SUMIF - formula not workimg?

#### itr674

##### Well-known Member
Trying to sum column K9:K100 if the left 2 characters in column B9:B100 equal 3Y.

Whats wrong with the formula?

SUMIF('test'!B9:B100,LEFT(2,"3Y"),'test'!K9:K100)
This message was edited by em on 2002-10-18 13:47

### Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Try the following...

>>Step 1.
In cell C9 enter "=LEFT(B9,2)" [with out " & ")
>>Step 2.
Drag it down till C100.

>> Step 3.
Use the following formula
=SUMIF(C9:C100,"3Y",K9:K100)

HTH
- sam

On 2002-09-25 01:15, em wrote:
Trying to sum column K9:K100 if the left 2 characters in column B9:B100 equal 3Y.

Whats wrong with the formula?

SUMIF('test'!B9:B100,LEFT(2,"3Y"),'test'!K9:K100)

=SUMPRODUCT((LEFT('test'!B9:B100,2)="3Y")*('test'!K9:K100))

don't need Left function

=SUMIF(A:A,"3y*",B:B)

all worked - thanks a bunch ...

Replies
6
Views
253
Replies
3
Views
330
Replies
6
Views
371
Replies
4
Views
230
Replies
5
Views
650

1,219,917
Messages
6,150,946
Members
450,996
Latest member
darko1515s

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back