# Sum with Condition

#### legalhustler

##### Well-known Member
From E2:E5 I have the following values:

Before 3/12/2018
After 3/12/2018
Before 3/11/2018
After 3/11/2018

From F2:F5 I have the following values:

\$10
\$20
\$30
\$40

I need a formula that will sum all the ones that begin with "Before" which should total (\$10+\$30) \$40. Any help is appreciated.

Last edited:

### Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

#### Joe4

You can do this with a simple SUMIF, i.e.
Code:
``=SUMIF(E2:E5,"Before*",F2:F5)``

#### legalhustler

##### Well-known Member
You can do this with a simple SUMIF, i.e.
Code:
``=SUMIF(E2:E5,"Before*",F2:F5)``

Ah! simple and beautiful. I was doing something more complicated. Thank you!

You are welcome.

Replies
4
Views
244
Replies
10
Views
277
Replies
5
Views
817
Replies
2
Views
230
Replies
1
Views
229

1,148,290
Messages
5,745,879
Members
423,983
Latest member
blackworx

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