Formula Help

VbaHell

Well-known Member
Joined
Jan 30, 2011
Messages
1,208
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
 

Some videos you may like

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type

Jonmo1

MrExcel MVP
Joined
Oct 12, 2006
Messages
44,061
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
Joined
Oct 20, 2009
Messages
8,275
Office Version
  1. 365
Platform
  1. Windows
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
Joined
Jan 30, 2011
Messages
1,208
Hi Jonmo1

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

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

Jonmo1

MrExcel MVP
Joined
Oct 12, 2006
Messages
44,061
Try

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

Watch MrExcel Video

Forum statistics

Threads
1,122,822
Messages
5,598,304
Members
414,224
Latest member
Crazy_FC

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