Weeble
Board Regular
- Joined
- Nov 30, 2016
- Messages
- 95
- Office Version
- 365
I am using a MAXIFS formula to determin a MAX value based on date and day from antother sheet
Problem is if there is no value on a date it will return 0. I need a formula that states IF the MAX returns 0, then it should just grab the number on the date above it.
ex.
[TABLE="width: 500"]
<tbody>[TR]
[TD](A1)[/TD]
[TD]Jan (B1)[/TD]
[TD]Feb[/TD]
[TD]Mar[/TD]
[TD]Apr[/TD]
[/TR]
[TR]
[TD]1:e[/TD]
[TD]256[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2:e[/TD]
[TD]IF value here is 0 then grab B2 value.[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3:e[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Anyone know how this could be done?
Problem is if there is no value on a date it will return 0. I need a formula that states IF the MAX returns 0, then it should just grab the number on the date above it.
ex.
Code:
=MAXIFS(Lager!$D:$D;Lager!$A:$A;B5;Lager!$B:$B;$C$2)
[TABLE="width: 500"]
<tbody>[TR]
[TD](A1)[/TD]
[TD]Jan (B1)[/TD]
[TD]Feb[/TD]
[TD]Mar[/TD]
[TD]Apr[/TD]
[/TR]
[TR]
[TD]1:e[/TD]
[TD]256[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2:e[/TD]
[TD]IF value here is 0 then grab B2 value.[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3:e[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Anyone know how this could be done?