Formula Help

VbaHell

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

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
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..
 
Upvote 0
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)
 
Upvote 0
Hi Jonmo1

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

<tbody>
</tbody><colgroup><col></colgroup>
 
Upvote 0
Try

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

Forum statistics

Threads
1,214,523
Messages
6,120,034
Members
448,940
Latest member
mdusw

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