Kimberly24
New Member
- Joined
- Aug 20, 2015
- Messages
- 7
Hello,
In Excel I have a Date column and a Flagged column. The flagged column is a "1" or a "0" based on information from a different source. I need to make a column that will return "0" if the flagged column is "0" BUT if the flagged column is "1" then I need it to return how many consecutive "1"'s are in that string.
DATE FLAGGED OUTPUT
1/1/2016 1 1
1/2/2016 0 0
1/3/2016 1 4
1/4/2016 1 4
1/5/2016 1 4
1/6/2016 1 4
1/7/2016 0 0
1/8/2016 0 0
1/9/2016 1 2
1/10/2016 1 2
I have reviewed some similar threads on the subject but I was not able to tweak them to match my exact needs yet. Thanks in advance for any assistance!
KC
In Excel I have a Date column and a Flagged column. The flagged column is a "1" or a "0" based on information from a different source. I need to make a column that will return "0" if the flagged column is "0" BUT if the flagged column is "1" then I need it to return how many consecutive "1"'s are in that string.
DATE FLAGGED OUTPUT
1/1/2016 1 1
1/2/2016 0 0
1/3/2016 1 4
1/4/2016 1 4
1/5/2016 1 4
1/6/2016 1 4
1/7/2016 0 0
1/8/2016 0 0
1/9/2016 1 2
1/10/2016 1 2
I have reviewed some similar threads on the subject but I was not able to tweak them to match my exact needs yet. Thanks in advance for any assistance!
KC