Hi all, I am trying to do a SUMIF so that YTD for last year matches this year.
So in this example I want the SUM of Jan/Feb 2018 vs SUM of Jan/Feb 2017 to show in my totals at the bottom.
I have a formula that works except it falls apart when I have a zero for a month that should be included (like Jan in this example)
This is what I have
=SUMIF(C14:C25,B14:B25,"<>"&""&0)
So total for 2017 is showing as 1 when it should be 7.
I've tried everything I can think of to fix it! Any help would be appreciated!
Apologies work browser settings won't allow me to copy / paste properly.
The figures for 2018 are B14:B25 and 6 for 2017 is C14:C25 if that helps.
[TABLE="width: 233"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="colspan: 2"]BOOKINGS[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]2018[/TD]
[TD]2017[/TD]
[/TR]
[TR]
[TD]JAN[/TD]
[TD]0[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]FEB[/TD]
[TD]4[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]MAR[/TD]
[TD]0[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]APR[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]MAY[/TD]
[TD]0[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]JUN[/TD]
[TD]0[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]JUL[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]AUG[/TD]
[TD]0[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]SEP[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]OCT[/TD]
[TD]0[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]NOV[/TD]
[TD]0[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]DEC[/TD]
[TD]0[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]TOTAL[/TD]
[TD]4[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]YTD +/-[/TD]
[TD="colspan: 2"][/TD]
[/TR]
</tbody>[/TABLE]
So in this example I want the SUM of Jan/Feb 2018 vs SUM of Jan/Feb 2017 to show in my totals at the bottom.
I have a formula that works except it falls apart when I have a zero for a month that should be included (like Jan in this example)
This is what I have
=SUMIF(C14:C25,B14:B25,"<>"&""&0)
So total for 2017 is showing as 1 when it should be 7.
I've tried everything I can think of to fix it! Any help would be appreciated!
Apologies work browser settings won't allow me to copy / paste properly.
The figures for 2018 are B14:B25 and 6 for 2017 is C14:C25 if that helps.
[TABLE="width: 233"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="colspan: 2"]BOOKINGS[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]2018[/TD]
[TD]2017[/TD]
[/TR]
[TR]
[TD]JAN[/TD]
[TD]0[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]FEB[/TD]
[TD]4[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]MAR[/TD]
[TD]0[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]APR[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]MAY[/TD]
[TD]0[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]JUN[/TD]
[TD]0[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]JUL[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]AUG[/TD]
[TD]0[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]SEP[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]OCT[/TD]
[TD]0[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]NOV[/TD]
[TD]0[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]DEC[/TD]
[TD]0[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]TOTAL[/TD]
[TD]4[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]YTD +/-[/TD]
[TD="colspan: 2"][/TD]
[/TR]
</tbody>[/TABLE]