Hi ,
I have values for a year in excel and in the row sum i want to sum the total of 1,2,3, and in the return row if i dont have a value in consecutive months then i should minus that value from total. For ex below month 1. in jan i have 4900 however next two months the value is 0, hence it should be minus from the total value,
Can you please help me with the formula which can check the consecutive value. Note: There are rows where we dont have any values for the year.
In a month if we have a value >0, then it should check we have consecutive number for that particular row. is it possible?
[TABLE="width: 816"]
<colgroup><col><col span="12"></colgroup><tbody>[TR]
[TD]Month[/TD]
[TD]Jan-18[/TD]
[TD]Feb-18[/TD]
[TD]Mar-18[/TD]
[TD]Apr-18[/TD]
[TD]May-18[/TD]
[TD]Jun-18[/TD]
[TD]Jul-18[/TD]
[TD]Aug-18[/TD]
[TD]Sep-18[/TD]
[TD]Oct-18[/TD]
[TD]Nov-18[/TD]
[TD]Dec-18[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD]$4,900.00[/TD]
[TD]$0.00[/TD]
[TD]$0.00[/TD]
[TD]$0.00[/TD]
[TD]$[/TD]
[TD]$[/TD]
[TD]$[/TD]
[TD]$ [/TD]
[TD]$[/TD]
[TD]$[/TD]
[TD]$[/TD]
[TD]$[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]$4,938.68[/TD]
[TD]$4,146.70[/TD]
[TD]$4,146.70[/TD]
[TD]$4,146.70[/TD]
[TD]$[/TD]
[TD]$[/TD]
[TD]$[/TD]
[TD]$ [/TD]
[TD]$[/TD]
[TD]$[/TD]
[TD]$[/TD]
[TD]$[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]$0.00[/TD]
[TD]$0.00[/TD]
[TD]$0.00[/TD]
[TD]$0.00[/TD]
[TD]$[/TD]
[TD]$[/TD]
[TD]$[/TD]
[TD]$ [/TD]
[TD]$[/TD]
[TD]$[/TD]
[TD]$[/TD]
[TD]$[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sum[/TD]
[TD="align: right"]$9,838.68[/TD]
[TD="align: right"]$4,146.70[/TD]
[TD="align: right"]$4,146.70[/TD]
[TD="align: right"]$4,146.70[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Return[/TD]
[TD="align: right"]$4,938.68[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I have values for a year in excel and in the row sum i want to sum the total of 1,2,3, and in the return row if i dont have a value in consecutive months then i should minus that value from total. For ex below month 1. in jan i have 4900 however next two months the value is 0, hence it should be minus from the total value,
Can you please help me with the formula which can check the consecutive value. Note: There are rows where we dont have any values for the year.
In a month if we have a value >0, then it should check we have consecutive number for that particular row. is it possible?
[TABLE="width: 816"]
<colgroup><col><col span="12"></colgroup><tbody>[TR]
[TD]Month[/TD]
[TD]Jan-18[/TD]
[TD]Feb-18[/TD]
[TD]Mar-18[/TD]
[TD]Apr-18[/TD]
[TD]May-18[/TD]
[TD]Jun-18[/TD]
[TD]Jul-18[/TD]
[TD]Aug-18[/TD]
[TD]Sep-18[/TD]
[TD]Oct-18[/TD]
[TD]Nov-18[/TD]
[TD]Dec-18[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD]$4,900.00[/TD]
[TD]$0.00[/TD]
[TD]$0.00[/TD]
[TD]$0.00[/TD]
[TD]$[/TD]
[TD]$[/TD]
[TD]$[/TD]
[TD]$ [/TD]
[TD]$[/TD]
[TD]$[/TD]
[TD]$[/TD]
[TD]$[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]$4,938.68[/TD]
[TD]$4,146.70[/TD]
[TD]$4,146.70[/TD]
[TD]$4,146.70[/TD]
[TD]$[/TD]
[TD]$[/TD]
[TD]$[/TD]
[TD]$ [/TD]
[TD]$[/TD]
[TD]$[/TD]
[TD]$[/TD]
[TD]$[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]$0.00[/TD]
[TD]$0.00[/TD]
[TD]$0.00[/TD]
[TD]$0.00[/TD]
[TD]$[/TD]
[TD]$[/TD]
[TD]$[/TD]
[TD]$ [/TD]
[TD]$[/TD]
[TD]$[/TD]
[TD]$[/TD]
[TD]$[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sum[/TD]
[TD="align: right"]$9,838.68[/TD]
[TD="align: right"]$4,146.70[/TD]
[TD="align: right"]$4,146.70[/TD]
[TD="align: right"]$4,146.70[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Return[/TD]
[TD="align: right"]$4,938.68[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]