Check Consecutive value

tamil9288

New Member
Joined
Apr 23, 2018
Messages
4
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]
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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