Seeking formula to sum when conditions are met...

auto.pilot

Well-known Member
Joined
Sep 27, 2007
Messages
734
Office Version
  1. 365
Platform
  1. Windows
In column A, my worksheet is populated with entries like 701-01, 701-04, 701-05, 702-01, 702-03, 703-01, 703-04, etc. Column B contains dollar amounts. There are hundreds of rows.

I'd like a formula that would sum column B by all the entries in column A that start with 701, regardless of the dash or two digit number that follows. A helper column using LEFT could be used to isolate the three digit code, but I'd prefer using a formula and not add a new column.

How can I do this?

Thanks in advance for all replies.

j
 

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.
Try something like this:
=SUMIF(A2:A100,"701*",B2:B100)
adjust the ranges to suit your data.
 
Upvote 0
As soon as I figured out that there are leading spaces, this works!

Thanks!
 
Upvote 0

Forum statistics

Threads
1,214,590
Messages
6,120,423
Members
448,961
Latest member
nzskater

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