Managing blank values in dataset

transgenesis

New Member
Joined
May 11, 2018
Messages
3
Hello,

I have a dataset corresponding to snowfall sum per day, for a number of years (30+). There are often blanks for certain days. Where there is a blank day in a month, I wish to set the entire month (every day in the month) a value M (for missing) or set the entire month blank, either is fine. The data looks as such, days and years are received sequentially. Any ideas on where to start?

[TABLE="width: 256"]
<colgroup><col width="64" span="4" style="width:48pt"> </colgroup><tbody>[TR]
[TD="class: xl66, width: 64"]Month[/TD]
[TD="class: xl66, width: 64"]Day[/TD]
[TD="class: xl66, width: 64"]Year[/TD]
[TD="class: xl66, width: 64"]Snowfall[/TD]
[/TR]
[TR]
[TD="class: xl65"]12[/TD]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]2010[/TD]
[TD="class: xl65"]0[/TD]
[/TR]
[TR]
[TD="class: xl65"]12[/TD]
[TD="class: xl65"]2[/TD]
[TD="class: xl65"]2010[/TD]
[TD="class: xl65"]0[/TD]
[/TR]
[TR]
[TD="class: xl65"]12[/TD]
[TD="class: xl65"]3[/TD]
[TD="class: xl65"]2010[/TD]
[TD="class: xl65"]0[/TD]
[/TR]
[TR]
[TD="class: xl65"]12[/TD]
[TD="class: xl65"]4[/TD]
[TD="class: xl65"]2010[/TD]
[TD="class: xl65"]0[/TD]
[/TR]
[TR]
[TD="class: xl65"]12[/TD]
[TD="class: xl65"]5[/TD]
[TD="class: xl65"]2010[/TD]
[TD="class: xl65"]0[/TD]
[/TR]
[TR]
[TD="class: xl65"]12[/TD]
[TD="class: xl65"]6[/TD]
[TD="class: xl65"]2010[/TD]
[TD="class: xl65"]0[/TD]
[/TR]
[TR]
[TD="class: xl65"]12[/TD]
[TD="class: xl65"]7[/TD]
[TD="class: xl65"]2010[/TD]
[TD="class: xl65"]0[/TD]
[/TR]
[TR]
[TD="class: xl65"]12[/TD]
[TD="class: xl65"]8[/TD]
[TD="class: xl65"]2010[/TD]
[TD="class: xl65"]0[/TD]
[/TR]
[TR]
[TD="class: xl65"]12[/TD]
[TD="class: xl65"]9[/TD]
[TD="class: xl65"]2010[/TD]
[TD="class: xl65"]0[/TD]
[/TR]
[TR]
[TD="class: xl65"]12[/TD]
[TD="class: xl65"]10[/TD]
[TD="class: xl65"]2010[/TD]
[TD="class: xl65"]0[/TD]
[/TR]
[TR]
[TD="class: xl65"]12[/TD]
[TD="class: xl65"]11[/TD]
[TD="class: xl65"]2010[/TD]
[TD="class: xl65"]0.2[/TD]
[/TR]
[TR]
[TD="class: xl65"]12[/TD]
[TD="class: xl65"]12[/TD]
[TD="class: xl65"]2010[/TD]
[TD="class: xl65"]0[/TD]
[/TR]
[TR]
[TD="class: xl65"]12[/TD]
[TD="class: xl65"]13[/TD]
[TD="class: xl65"]2010[/TD]
[TD="class: xl65"]0[/TD]
[/TR]
[TR]
[TD="class: xl65"]12[/TD]
[TD="class: xl65"]14[/TD]
[TD="class: xl65"]2010[/TD]
[TD="class: xl65"]0[/TD]
[/TR]
[TR]
[TD="class: xl65"]12[/TD]
[TD="class: xl65"]15[/TD]
[TD="class: xl65"]2010[/TD]
[TD="class: xl65"]0[/TD]
[/TR]
[TR]
[TD="class: xl65"]12[/TD]
[TD="class: xl65"]16[/TD]
[TD="class: xl65"]2010[/TD]
[TD="class: xl65"]0[/TD]
[/TR]
[TR]
[TD="class: xl65"]12[/TD]
[TD="class: xl65"]17[/TD]
[TD="class: xl65"]2010[/TD]
[TD="class: xl65"]0[/TD]
[/TR]
[TR]
[TD="class: xl65"]12[/TD]
[TD="class: xl65"]18[/TD]
[TD="class: xl65"]2010[/TD]
[TD="class: xl65"]0[/TD]
[/TR]
[TR]
[TD="class: xl65"]12[/TD]
[TD="class: xl65"]19[/TD]
[TD="class: xl65"]2010[/TD]
[TD="class: xl65"]0[/TD]
[/TR]
[TR]
[TD="class: xl65"]12[/TD]
[TD="class: xl65"]20[/TD]
[TD="class: xl65"]2010[/TD]
[TD="class: xl65"]0[/TD]
[/TR]
[TR]
[TD="class: xl65"]12[/TD]
[TD="class: xl65"]21[/TD]
[TD="class: xl65"]2010[/TD]
[TD="class: xl65"]0[/TD]
[/TR]
[TR]
[TD="class: xl65"]12[/TD]
[TD="class: xl65"]22[/TD]
[TD="class: xl65"]2010[/TD]
[TD="class: xl65"]0[/TD]
[/TR]
[TR]
[TD="class: xl65"]12[/TD]
[TD="class: xl65"]23[/TD]
[TD="class: xl65"]2010[/TD]
[TD="class: xl65"]0[/TD]
[/TR]
[TR]
[TD="class: xl65"]12[/TD]
[TD="class: xl65"]24[/TD]
[TD="class: xl65"]2010[/TD]
[TD="class: xl65"]0[/TD]
[/TR]
[TR]
[TD="class: xl65"]12[/TD]
[TD="class: xl65"]25[/TD]
[TD="class: xl65"]2010[/TD]
[TD="class: xl65"]0[/TD]
[/TR]
[TR]
[TD="class: xl65"]12[/TD]
[TD="class: xl65"]26[/TD]
[TD="class: xl65"]2010[/TD]
[TD="class: xl65"]0[/TD]
[/TR]
[TR]
[TD="class: xl65"]12[/TD]
[TD="class: xl65"]27[/TD]
[TD="class: xl65"]2010[/TD]
[TD="class: xl65"]4[/TD]
[/TR]
[TR]
[TD="class: xl65"]12[/TD]
[TD="class: xl65"]28[/TD]
[TD="class: xl65"]2010[/TD]
[TD="class: xl65"]2.2[/TD]
[/TR]
[TR]
[TD="class: xl65"]12[/TD]
[TD="class: xl65"]29[/TD]
[TD="class: xl65"]2010[/TD]
[TD="class: xl65"]0[/TD]
[/TR]
[TR]
[TD="class: xl65"]12[/TD]
[TD="class: xl65"]30[/TD]
[TD="class: xl65"]2010[/TD]
[TD="class: xl65"]0[/TD]
[/TR]
[TR]
[TD="class: xl65"]12[/TD]
[TD="class: xl65"]31[/TD]
[TD="class: xl65"]2010[/TD]
[TD="class: xl65"]0[/TD]
[/TR]
[TR]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]2011[/TD]
[TD="class: xl65"] [/TD]
[/TR]
[TR]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]2[/TD]
[TD="class: xl65"]2011[/TD]
[TD="class: xl65"] [/TD]
[/TR]
[TR]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]3[/TD]
[TD="class: xl65"]2011[/TD]
[TD="class: xl65"] [/TD]
[/TR]
[TR]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]4[/TD]
[TD="class: xl65"]2011[/TD]
[TD="class: xl65"] [/TD]
[/TR]
[TR]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]5[/TD]
[TD="class: xl65"]2011[/TD]
[TD="class: xl65"] [/TD]
[/TR]
[TR]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]6[/TD]
[TD="class: xl65"]2011[/TD]
[TD="class: xl65"] [/TD]
[/TR]
[TR]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]7[/TD]
[TD="class: xl65"]2011[/TD]
[TD="class: xl65"] [/TD]
[/TR]
[TR]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]8[/TD]
[TD="class: xl65"]2011[/TD]
[TD="class: xl65"]1.5[/TD]
[/TR]
[TR]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]9[/TD]
[TD="class: xl65"]2011[/TD]
[TD="class: xl65"]1[/TD]
[/TR]
[TR]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]10[/TD]
[TD="class: xl65"]2011[/TD]
[TD="class: xl65"] [/TD]
[/TR]
[TR]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]11[/TD]
[TD="class: xl65"]2011[/TD]
[TD="class: xl65"] [/TD]
[/TR]
[TR]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]12[/TD]
[TD="class: xl65"]2011[/TD]
[TD="class: xl65"]9[/TD]
[/TR]
[TR]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]13[/TD]
[TD="class: xl65"]2011[/TD]
[TD="class: xl65"]4.5[/TD]
[/TR]
[TR]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]14[/TD]
[TD="class: xl65"]2011[/TD]
[TD="class: xl65"] [/TD]
[/TR]
[TR]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]15[/TD]
[TD="class: xl65"]2011[/TD]
[TD="class: xl65"] [/TD]
[/TR]
[TR]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]16[/TD]
[TD="class: xl65"]2011[/TD]
[TD="class: xl65"]0.4[/TD]
[/TR]
[TR]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]17[/TD]
[TD="class: xl65"]2011[/TD]
[TD="class: xl65"] [/TD]
[/TR]
[TR]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]18[/TD]
[TD="class: xl65"]2011[/TD]
[TD="class: xl65"]1.8[/TD]
[/TR]
[TR]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]19[/TD]
[TD="class: xl65"]2011[/TD]
[TD="class: xl65"]3[/TD]
[/TR]
[TR]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]20[/TD]
[TD="class: xl65"]2011[/TD]
[TD="class: xl65"]0[/TD]
[/TR]
[TR]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]21[/TD]
[TD="class: xl65"]2011[/TD]
[TD="class: xl65"]4.5[/TD]
[/TR]
[TR]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]22[/TD]
[TD="class: xl65"]2011[/TD]
[TD="class: xl65"]0[/TD]
[/TR]
[TR]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]23[/TD]
[TD="class: xl65"]2011[/TD]
[TD="class: xl65"] [/TD]
[/TR]
[TR]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]24[/TD]
[TD="class: xl65"]2011[/TD]
[TD="class: xl65"] [/TD]
[/TR]
[TR]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]25[/TD]
[TD="class: xl65"]2011[/TD]
[TD="class: xl65"]1.5[/TD]
[/TR]
[TR]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]26[/TD]
[TD="class: xl65"]2011[/TD]
[TD="class: xl65"]0.3[/TD]
[/TR]
[TR]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]27[/TD]
[TD="class: xl65"]2011[/TD]
[TD="class: xl65"]4[/TD]
[/TR]
[TR]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]28[/TD]
[TD="class: xl65"]2011[/TD]
[TD="class: xl65"] [/TD]
[/TR]
[TR]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]29[/TD]
[TD="class: xl65"]2011[/TD]
[TD="class: xl65"]0.2[/TD]
[/TR]
[TR]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]30[/TD]
[TD="class: xl65"]2011[/TD]
[TD="class: xl65"] [/TD]
[/TR]
[TR]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]31[/TD]
[TD="class: xl65"]2011[/TD]
[TD="class: xl65"] [/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Excel 2016 (Windows) 32 bit
[Table="width:, class:head"][tr=bgcolor:#E0E0F0][th] [/th][th]
A
[/th][th]
B
[/th][th]
C
[/th][th]
D
[/th][th]
E
[/th][th]
F
[/th][/tr]
[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
1
[/td][td]Month[/td][td]Day[/td][td]Year[/td][td]Snowfall[/td][td]Result[/td][td] formula in E2 copied down[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
2
[/td][td]
12​
[/td][td]
1​
[/td][td]
2010​
[/td][td]
0​
[/td][td]
0​
[/td][td] =IF(COUNTIFS(A:A,A2,C:C,C2,D:D,"")>0,"M",D2)[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
3
[/td][td]
12​
[/td][td]
2​
[/td][td]
2010​
[/td][td]
0​
[/td][td]
0​
[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
4
[/td][td]
12​
[/td][td]
3​
[/td][td]
2010​
[/td][td]
0​
[/td][td]
0​
[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
5
[/td][td]
12​
[/td][td]
4​
[/td][td]
2010​
[/td][td]
0​
[/td][td]
0​
[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
6
[/td][td]
12​
[/td][td]
5​
[/td][td]
2010​
[/td][td]
0​
[/td][td]
0​
[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
7
[/td][td]
12​
[/td][td]
6​
[/td][td]
2010​
[/td][td]
0​
[/td][td]
0​
[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
8
[/td][td]
12​
[/td][td]
7​
[/td][td]
2010​
[/td][td]
0​
[/td][td]
0​
[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
9
[/td][td]
12​
[/td][td]
8​
[/td][td]
2010​
[/td][td]
0​
[/td][td]
0​
[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
10
[/td][td]
12​
[/td][td]
9​
[/td][td]
2010​
[/td][td]
0​
[/td][td]
0​
[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
11
[/td][td]
12​
[/td][td]
10​
[/td][td]
2010​
[/td][td]
0​
[/td][td]
0​
[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
12
[/td][td]
12​
[/td][td]
11​
[/td][td]
2010​
[/td][td]
0.2​
[/td][td]
0.2​
[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
13
[/td][td]
12​
[/td][td]
12​
[/td][td]
2010​
[/td][td]
0​
[/td][td]
0​
[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
14
[/td][td]
12​
[/td][td]
13​
[/td][td]
2010​
[/td][td]
0​
[/td][td]
0​
[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
15
[/td][td]
12​
[/td][td]
14​
[/td][td]
2010​
[/td][td]
0​
[/td][td]
0​
[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
16
[/td][td]
12​
[/td][td]
15​
[/td][td]
2010​
[/td][td]
0​
[/td][td]
0​
[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
17
[/td][td]
12​
[/td][td]
16​
[/td][td]
2010​
[/td][td]
0​
[/td][td]
0​
[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
18
[/td][td]
12​
[/td][td]
17​
[/td][td]
2010​
[/td][td]
0​
[/td][td]
0​
[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
19
[/td][td]
12​
[/td][td]
18​
[/td][td]
2010​
[/td][td]
0​
[/td][td]
0​
[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
20
[/td][td]
12​
[/td][td]
19​
[/td][td]
2010​
[/td][td]
0​
[/td][td]
0​
[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
21
[/td][td]
12​
[/td][td]
20​
[/td][td]
2010​
[/td][td]
0​
[/td][td]
0​
[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
22
[/td][td]
12​
[/td][td]
21​
[/td][td]
2010​
[/td][td]
0​
[/td][td]
0​
[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
23
[/td][td]
12​
[/td][td]
22​
[/td][td]
2010​
[/td][td]
0​
[/td][td]
0​
[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
24
[/td][td]
12​
[/td][td]
23​
[/td][td]
2010​
[/td][td]
0​
[/td][td]
0​
[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
25
[/td][td]
12​
[/td][td]
24​
[/td][td]
2010​
[/td][td]
0​
[/td][td]
0​
[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
26
[/td][td]
12​
[/td][td]
25​
[/td][td]
2010​
[/td][td]
0​
[/td][td]
0​
[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
27
[/td][td]
12​
[/td][td]
26​
[/td][td]
2010​
[/td][td]
0​
[/td][td]
0​
[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
28
[/td][td]
12​
[/td][td]
27​
[/td][td]
2010​
[/td][td]
4​
[/td][td]
4​
[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
29
[/td][td]
12​
[/td][td]
28​
[/td][td]
2010​
[/td][td]
2.2​
[/td][td]
2.2​
[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
30
[/td][td]
12​
[/td][td]
29​
[/td][td]
2010​
[/td][td]
0​
[/td][td]
0​
[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
31
[/td][td]
12​
[/td][td]
30​
[/td][td]
2010​
[/td][td]
0​
[/td][td]
0​
[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
32
[/td][td]
12​
[/td][td]
31​
[/td][td]
2010​
[/td][td]
0​
[/td][td]
0​
[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
33
[/td][td]
1​
[/td][td]
1​
[/td][td]
2011​
[/td][td][/td][td]M[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
34
[/td][td]
1​
[/td][td]
2​
[/td][td]
2011​
[/td][td][/td][td]M[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
35
[/td][td]
1​
[/td][td]
3​
[/td][td]
2011​
[/td][td][/td][td]M[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
36
[/td][td]
1​
[/td][td]
4​
[/td][td]
2011​
[/td][td][/td][td]M[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
37
[/td][td]
1​
[/td][td]
5​
[/td][td]
2011​
[/td][td][/td][td]M[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
38
[/td][td]
1​
[/td][td]
6​
[/td][td]
2011​
[/td][td][/td][td]M[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
39
[/td][td]
1​
[/td][td]
7​
[/td][td]
2011​
[/td][td][/td][td]M[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
40
[/td][td]
1​
[/td][td]
8​
[/td][td]
2011​
[/td][td]
1.5​
[/td][td]M[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
41
[/td][td]
1​
[/td][td]
9​
[/td][td]
2011​
[/td][td]
1​
[/td][td]M[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
42
[/td][td]
1​
[/td][td]
10​
[/td][td]
2011​
[/td][td][/td][td]M[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
43
[/td][td]
1​
[/td][td]
11​
[/td][td]
2011​
[/td][td][/td][td]M[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
44
[/td][td]
1​
[/td][td]
12​
[/td][td]
2011​
[/td][td]
9​
[/td][td]M[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
45
[/td][td]
1​
[/td][td]
13​
[/td][td]
2011​
[/td][td]
4.5​
[/td][td]M[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
46
[/td][td]
1​
[/td][td]
14​
[/td][td]
2011​
[/td][td][/td][td]M[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
47
[/td][td]
1​
[/td][td]
15​
[/td][td]
2011​
[/td][td][/td][td]M[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
48
[/td][td]
1​
[/td][td]
16​
[/td][td]
2011​
[/td][td]
0.4​
[/td][td]M[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
49
[/td][td]
1​
[/td][td]
17​
[/td][td]
2011​
[/td][td][/td][td]M[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
50
[/td][td]
1​
[/td][td]
18​
[/td][td]
2011​
[/td][td]
1.8​
[/td][td]M[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
51
[/td][td]
1​
[/td][td]
19​
[/td][td]
2011​
[/td][td]
3​
[/td][td]M[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
52
[/td][td]
1​
[/td][td]
20​
[/td][td]
2011​
[/td][td]
0​
[/td][td]M[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
53
[/td][td]
1​
[/td][td]
21​
[/td][td]
2011​
[/td][td]
4.5​
[/td][td]M[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
54
[/td][td]
1​
[/td][td]
22​
[/td][td]
2011​
[/td][td]
0​
[/td][td]M[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
55
[/td][td]
1​
[/td][td]
23​
[/td][td]
2011​
[/td][td][/td][td]M[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
56
[/td][td]
1​
[/td][td]
24​
[/td][td]
2011​
[/td][td][/td][td]M[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
57
[/td][td]
1​
[/td][td]
25​
[/td][td]
2011​
[/td][td]
1.5​
[/td][td]M[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
58
[/td][td]
1​
[/td][td]
26​
[/td][td]
2011​
[/td][td]
0.3​
[/td][td]M[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
59
[/td][td]
1​
[/td][td]
27​
[/td][td]
2011​
[/td][td]
4​
[/td][td]M[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
60
[/td][td]
1​
[/td][td]
28​
[/td][td]
2011​
[/td][td][/td][td]M[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
61
[/td][td]
1​
[/td][td]
29​
[/td][td]
2011​
[/td][td]
0.2​
[/td][td]M[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
62
[/td][td]
1​
[/td][td]
30​
[/td][td]
2011​
[/td][td][/td][td]M[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
63
[/td][td]
1​
[/td][td]
31​
[/td][td]
2011​
[/td][td][/td][td]M[/td][td][/td][/tr]
[/table]
[Table="width:, class:grid"][tr][td]Sheet: Sheet1[/td][/tr][/table]
 
Upvote 0
I have a dataset corresponding to snowfall sum per day, for a number of years (30+).
Whilst the previous suggestion will work, if your data set is 30 years or more of daily data, the processing required by it is much larger than required. For 30 years of daily data it took 150 seconds on my machine. For the same data, this version took less than 0.02 seconds & produced the same results.

Formula in E2, copied down.

=IF(A2=A1,IF(E1="M","M",D2),IF(COUNTIFS(A2:A32,A2,D2:D32,""),"M",D2))
 
Last edited:
Upvote 0
Thank you both for the quick reply, both options work, and are exactly what I was looking to do. Appreciate your time.
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,155
Members
453,021
Latest member
Justyna P

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