Hi, I have a specific problem that I'm hoping someone can guide me in the right direction with. I'm looking to analyse some football scores to determine if the home side scored in both the first and second halves. The arrangement of data looks like this: Cell A2 has the home team in it, cells C2:J2 has blank cells so I can copy and paste goal times into them.
So for example if Liverpool won 3-0 with goals in the 16th,32nd,55th minutes, the sheet would look like: Cell A2 Liverpool, C2:16, D2:32, E2:55, cells F2 to J2 would be empty. If a goal was scored in both the first and second halves (as per the example) then I want to place a 1 in the target cell, for any other outcome I want to place a 0. Ultimately I only want a 1 to appear if a goal was scored by the home team in both halves.
I'm not great with excel and the only formula I have come up with is =IF(AND(C2:J2<=45,C2:J2>45),"1","0") but it occurred to me that blank cells are being classed as 0 and screwing up the first part of the calculation (although the actual calculation may be miles off anyway).
If someone knows how to not include blank cells in the calculation then that would be great. Thanks in advance.
Bookmarks