SUMPRODUCT exclude zero

mole999

Well-known Member
Joined
Oct 23, 2004
Messages
10,524
Office Version
  1. 2019
  2. 2016
  3. 2013
Platform
  1. Windows
I have this, (=SUMPRODUCT(MAX((Q14:Q45<>"")*(ROW(Q14:Q45)))) and it works fine except when I need to add a cell marker and this results in 0:00 in the cell, can they be excluded somewhere in this?
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
What do you mean by "a cell marker"?

Why not use a more appropriate formula? Control+shift+enter:

=MAX(IF(Q14:Q45<>"",ROW(Q14:Q45)))
 
Upvote 0
I was using a dot in a rota table for when a week is empty from work, but being part of a longer rota. I.e. 6 weeks long, but the sixth has no hours, need to identify the last physical week, and had to show the last week somehow, which was producing 0:00 for hours against the dot
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
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