# Formula Help

#### VbaHell

##### Well-known Member
Hello all

I need help please on a formula

Column "L" has sales values
Column "AT" has a TEXT value in this format "Jan. 2015" this value in for every month "Feb. 2015", "Mar. 2015" up to the current month

I am trying to work out a formula to add up Year to date 2015 (Last year against this year)

So for this month it would be Jan. 2015 + Feb. 2015 + Mar. 2015

Is this possible please

### Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

#### Jonmo1

##### MrExcel MVP
How does column AT get the TEXT value of the date?
Is it a formula that's referring to another column that has actual date values?
It would be simpler to refer to THAT column instead..

#### steve the fish

##### Well-known Member
You found a reason why a date shouldn't be text. You can always format it to show how you want it to look while keeping it a true date. However heres a couple of ways:

=SUMPRODUCT(SUMIF(AT:AT,{"Jan. 2015","Feb. 2015","Mar. 2015"},L:L))
=SUMPRODUCT(--(RIGHT(\$AT\$2:\$AT\$100,4)="2015"),\$L\$2:\$L\$100)

#### VbaHell

##### Well-known Member
Hi Jonmo1

Column "E" has the actually date in date format
 02/01/2015

<tbody>
</tbody><colgroup><col></colgroup>

#### Jonmo1

##### MrExcel MVP
Try

=SUMIFS(L2:L100,E2:E100,">="&DATE(2015,1,1),E2:E100,"<"&DATE(2015,MONTH(TODAY())+1,1))

#### VbaHell

##### Well-known Member
Jonmo1

This works great

Many Thanks

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.

Threads
1,164,008
Messages
5,834,871
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

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