SUMIF - formula not workimg?

itr674

Well-known Member
Joined
Apr 10, 2002
Messages
1,786
Office Version
  1. 2016
Platform
  1. Windows
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

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
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
 
Upvote 0
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))
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Back
Top