YTD on multiple columns

bakerwe3

New Member
Joined
Mar 21, 2016
Messages
25
I need to some help to sum the coloums from month to calulcate the Year to date, the problem is I have two type of columnes I need to sum

<colgroup><col span="24"><col><col><col><col></colgroup><tbody>
</tbody>

<colgroup><col span="24"><col><col><col><col></colgroup><tbody></tbody>
Apr

<tbody>
</tbody>
Apr

<tbody>
</tbody>
May

<tbody>
</tbody>
May

<tbody>
</tbody>
Jun

<tbody>
</tbody>
Jun

<tbody>
</tbody>
Jul

<tbody>
</tbody>
Jul

<tbody>
</tbody>
Aug

<tbody>
</tbody>
Aug

<tbody>
</tbody>
Sep

<tbody>
</tbody>
Sep

<tbody>
</tbody>
Oct

<tbody>
</tbody>
Oct

<tbody>
</tbody>
Nov

<tbody>
</tbody>
Nov

<tbody>
</tbody>
Dec

<tbody>
</tbody>
Dec

<tbody>
</tbody>
Jan

<tbody>
</tbody>
Jan

<tbody>
</tbody>
Feb

<tbody>
</tbody>
Feb

<tbody>
</tbody>
Mar

<tbody>
</tbody>
Mar

<tbody>
</tbody>
YTDYTD
Target

<tbody>
</tbody>
Achieved

<tbody>
</tbody>
Target

<tbody>
</tbody>
Achieved
Target

<tbody>
</tbody>
Achieved
Target

<tbody>
</tbody>
Achieved
Target

<tbody>
</tbody>
Target
Achieved

<tbody>
</tbody>
Target
Achieved

<tbody>
</tbody>
Target
Achieved

<tbody>
</tbody>
Target
Achieved

<tbody>
</tbody>
Target
Achieved

<tbody>
</tbody>
Target
Achieved

<tbody>
</tbody>
Target
Achieved

<tbody>
</tbody>
Target
Achieved

<tbody>
</tbody>
1015

<tbody>
</tbody>

****** id="cke_pastebin" style="position: absolute; top: 72.8px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">
Achieved

<tbody>
</tbody>
</body>So I want a foumala that would sum the YTD target if I select May , it would sum Apr to May. The Same for achieved.

Any help would be much appreicated.

Thank you

Wes
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Hello

What you want to do here is two things. Firstly change the date headings to be actual date values (e.g. 31 May 2018 instead of May). You can apply a custom format so the date appears as "May". So when you "select May" instead you select 31 May 2018. Secondly, you want to use a SUMIFS function - this will sum values based on more than one criteria.

See here:
https://support.office.com/en-us/article/sumifs-function-c9e748f5-7ea7-455d-9406-611cebce642b

Your first criteria will be the date is less than or equal to what you selected, the second criteria is that you only want to "target" values (or you want the "achieved" values).

Something like this:
=SUMIFS(B3:Y3, $B$1:$Y$1, "<="&MyDate, $B$2:$Y$2,"Achieved")
where row 1 contains the dates, row 2 contains the words achieved and target and row 3 contains the values - assuming they are in columns B to Y. "MyDate" would be a reference to the cell where you select the date.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,657
Messages
6,120,769
Members
448,991
Latest member
Hanakoro

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