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

countifs

ResolvedVersion 2010

Hannah has attended:
Excel Dashboards for Business Intelligence course

COUNTIFS

Hi,

I'm trying to construct a COUNTIFS formula but am struggling with the last element. I would like it to count records that have:

- 'Achieved' in column B
- '2014/15' in column W
- a date in column W that is before or equal to the date in column U + 90 days.

Many thanks,

Hannah

RE: COUNTIFS

Hi Hannah

Thanks for your question.

The answer will depend on the way you've set your spreadsheet up.

Can I ask what format the data in column W is in? Is it text eg '2014/15' or date eg '01/01/15'?

Regards

Sarah
Excel Trainer

RE: COUNTIFS

Hi,

I made an error with the question I asked, it should have read:

I'm trying to construct a COUNTIFS formula but am struggling with the last element. I would like it to count records that have:

- 'Achieved' in column B (plain text)
- '2014/15' in column W (plain text)
- a date in column X that is before or equal to the date in column V + 90 days. (date format)

Many thanks,

Hannah

RE: COUNTIFS

Hi Hannah

I understand why you're having trouble with this, it's a bit fiddly!

In your last criteria you want to test each row individually to see if the date in each cell in column X<= the date in each corresponding cell in column V + 90, so you need to take one more step before using your COUNTIFS.

Try inserting a new column (let's say Y) and use an IF formula to test:

=IF(X1<=V1+90,TRUE,FALSE)

You can then use this column Y in your COUNTIFS:

=COUNTIFS(B:B,"Achieved",W:W,"2014/15",Y:Y,"TRUE")

Let me know if this works and if you have any further questions.

Regards,

Sarah

Excel tip:

Create own ribbon tab - Excel 2010

a. In Excel click on the File tab
b. Select Options from left hand side
c. Choose the Customize Ribbon section
d. Click the New Tab button (below the list of tabs on the right hand side of the dialog box)
e. Select the New Tab (Custom) and enter a name, by clicking the Rename button (below the list of tabs on the right hand side of the dialog box)
f. Select the New Group (Custom) and enter a name, by clicking the Rename button (below the list of tabs on the right hand side of the dialog box)
g. Add commands to your tab and group by locating them on the list on the right hand side (remembering that you can change the list using the drop down box at the top of the list of commands) and clicking the Add button between the two panes to add them to your tab and group
h. You can rearrange the commands in your group, the groups on any tab or the tabs, using the up and down arrow buttons beside the list of tabs.
i. Click OK to apply your changes

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.09 secs.