Reputation: 606
How do i find ranges in excel i want to make dynamic ranges based on my current row position. i've already tried below code
=SUMIF(B5:B(ROW()-1), "<> ", E5:E(ROW()-1))
Upvotes: 1
Views: 79
Reputation:
INDEX is likely your best bet.
=SUMIF(B$5:index(B:B, ROW()-1), "<>", E$5:index(E:E, ROW()-1))
Upvotes: 1
Reputation: 824
Another approach is to put the formula
=SUMIF(B$5:B5,"<> ", E$5:E5)
In the column you are interested in on row 6 and then copy down the column.
Upvotes: 1