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

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
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,223,897
Messages
6,175,271
Members
452,628
Latest member
dd2

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