I have Excel sheet as below with merged cells in column A
in Cell D1 SUBTOTAL works fine
But when i filter Column b as below
SUBTOTAL not count MERGED cells, it only count row 22.
I tried use Countif but it count all rows(visible and hidden)
How i can count all visible rows on column A?
I would use the following workaround: in cell C2 use formula =INT(SUBTOTAL(3, B2:B4)>0) and similar formulas in cells C5, C9, C13, C16, C19, C22.. just replace B2:B4 with the respective range of rows of the merged cells. The formula will tell you whether at least one of the rows in a group is visible. Then make SUM of all values in the column C.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.