COUNTIF using range defined by ADDRESS fuction

flixtan

New Member
Joined
May 31, 2012
Messages
8
Hi all, I'm new here.:)
Just have a question on how to solve this problem.

So basically I have a table of values, one with dates on the columns and the other with employee number on the rows.

What I want to do is then get a count of "A" in between two dates.
So what I have done is use the ADDRESS function to get the required Range
The problem is now that I can't seem to use the value that was returned by the ADDRESS range into the COUNTIF formula to make up the lookup range.

Does that make sense?

Thanks in advance for the help =)
 
Try this

=SUMPRODUCT(('Mthly Roster (2)'!A3:Z3>=M7)*('Mthly Roster (2)'!A3:Z3<=I9)*(INDEX('Mthly Roster (2)'!A1:Z1000,MATCH('Annual Leave'!B14, 'Mthly Roster (2)'!B:B,0),0)="A"))

Make sure the ranges
A3:Z3 and A1:Z1000
Are sufficiently large to cover the entire dataset
We prefer to not use entire column/row references.
Use defined row#s and column letters.
They should both reference the same columns.
 
Last edited:
Upvote 0

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

Forum statistics

Threads
1,220,965
Messages
6,157,120
Members
451,399
Latest member
alchavar

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