# SUMIF LEFT FORMULA

#### srizki

##### Well-known Member
=SUMIF(LEFT(A5)="4",L3:L18)
I am trying to add column L, if the corresponding cell in column A has account number that starts with "5"

thanks

### Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

#### barry houdini

##### MrExcel MVP
Try

=SUMPRODUCT((LEFT(A3:A18)="5")+0,L3:L18)

#### srizki

##### Well-known Member
thank you Houdini

#### srizki

##### Well-known Member
I learned something new today
thanks

#### just_jon

##### Legend

Can also use

=SUMIF(A3:A18,C1&"*",B3:B18)

Where C1 holds 4

#### just_jon

##### Legend
just_jon said:
Can also use

=SUMIF(A3:A18,C1&"*",B3:B18)

Where C1 holds 4

A *big* caveat regards the above: Assumes that your Account Numbers are formatted as Text, not General / Numeric.

Will fail if not.

This message brought to you by the proof-reading firm of Aladin & Houdini, GbmH.

#### srizki

##### Well-known Member
Thanks
Jon

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,164,004
Messages
5,834,833
Members
430,324
Latest member
bosphoruskid

### 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