SUMIF - formula not workimg?

itr674

Well-known Member
Joined
Apr 10, 2002
Messages
1,782
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

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

sam_d1

Board Regular
Joined
Mar 17, 2002
Messages
50
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
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
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))
 

itr674

Well-known Member
Joined
Apr 10, 2002
Messages
1,782
Office Version
  1. 2016
Platform
  1. Windows
all worked - thanks a bunch ...
 

Forum statistics

Threads
1,181,091
Messages
5,928,032
Members
436,583
Latest member
AlxBtx

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
Top