Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

using countif and offset

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Using Countif and Offset

Using Countif and Offset

ResolvedVersion 2003

Gareth has attended:
Excel VBA Intro Intermediate course
Excel Intermediate course
Excel Advanced course

Using Countif and Offset

Hello

Im having trouble using the countif with offset. i want to count a criteria but I only want to count it from a certain date, once I have sorted the dates in ascending order.

To locate the starting row for the date I have used the match function, no problem with that.

The problem arises when I try using the row reference in the countif and offset function.

Basically I would like to count the number of times the a criteria is met on a a given date (this will always be yesterday and the match function will locate my starting point)

The columns with he dates in ascending order is column C, The criteria I would like to match it up is in column H.

In a nut shell I want the countif and offset function to locate the row that yesterdays date starts, use the offset function to create the array and count the number of times a defined criteria occurs on that day.


Thanks in advance

RE: Using Countif and Offset

Further to the above.


A formula I have worked on (resulting in an error) is this...

=COUNTIF(OFFSET(MATCH($C$2,'Data Extract MTD'!$C:$C,0),0,5,),$B5)


C2 has yesterdays date.

'Data Extract MTD' is the tab with the list of data I want to count. Column C on this tab has the dates in ascending order

Column H is where the criteria is.

Again, basically i want the formula to look for the start position of cell c2, go across 5 columns to column H, then count the number of times a specified criteria is met.


Thanks

Excel tip:

Use Paint Brush to Format More than one Cell

To copy a format to many cells or ranges

1. Select the cell with the format that you want to copy

2. Double-click on the paint brush

When you move to the cell where you want to paste the format you will notice that a paint brush follows the cursor.

Paste the format to all the cells or ranges you need to format.

When finished go back to the paint brush on the tool bar and single click on it to deactivate the function.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.11 secs.