sum/count range, multiple columns

orsm6

Active Member
Joined
Oct 3, 2012
Messages
496
Office Version
  1. 365
Platform
  1. Windows
hi all,

is it possible to count in a range of multiple columns, if so, how would that work?

i am trying to count how many cells contain a date older than today (A1) in the range D13:IT1000

thank you.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
I have gotten it half way there by using
Code:
COUNTIFS(D13:IS1000,"<"&A8)

how can i change that to count only visible cells in this range?
 
Last edited:
Upvote 0
Not solved, but ended up just using a helper column.
 
Upvote 0
Try this:

=SUMPRODUCT(SUBTOTAL(102,OFFSET($D$13:$D$13,ROW($D$13:$D$1000)-ROW($D$13),,1))*($D$13:$IS$1000<=TODAY())*($D$13:$IS$1000<>""))
 
Upvote 0

Forum statistics

Threads
1,213,510
Messages
6,114,034
Members
448,543
Latest member
MartinLarkin

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