SUMIF LEFT FORMULA

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,824
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
=SUMIF(LEFT(A5)="4",L3:L18)
Please correct this formula
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.

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,824
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
thank you Houdini
 

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,824
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
I learned something new today
thanks
 

just_jon

Legend
Joined
Sep 3, 2002
Messages
10,473

ADVERTISEMENT

Can also use

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

Where C1 holds 4
 

just_jon

Legend
Joined
Sep 3, 2002
Messages
10,473
just_jon said:
Can also use

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

Where C1 holds 4

:eek: 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. :LOL:
 

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,824
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Thanks
Jon
 
Master Excel Bundle

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.

Forum statistics

Threads
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.
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