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

urgent formula help needed

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Urgent formula help needed please

Urgent formula help needed please

ResolvedVersion 2007

Katy has attended:
Excel Advanced course
PowerPoint Intermediate Advanced course

Urgent formula help needed please


Good morning

I need help with a formula, I think it needs to be an IF formula but I'm not sure.

In column A I have the number of days worked in a year. In column B, I need to look at the no of days in column A and calculate number between 41 and 120. In column C, I need to look at the no days in column A again and calculate the no of days after 121 (if there are any).

I probably haven't explained that very well! Any help would be greatly appreciated :-)


RE: Urgent formula help needed please

Hi Kate

You did explain it well. There are 2 methods that come to mind. One is to use a COUNTIFS function and the other is to use a Pivot Table.

I've made up some sample data in Column A so you can see which method is more practical

Countifs Method

To calculate 41-120
=COUNTIFS($A$2:$A$16,">40",$A$2:$A$16,"<121")
To calculate >120
=COUNTIF(A2:A16,">120")

Days
46
74
32
94
152
177
198
112
10
26
50
113
62
96
77

PivotTable method

With cursor in A1 choose Insert, Pivot table
Choose existing worksheet cell eg E5
Row Headings - Days
Value - Days - Summarize as Count
Then group the resulting data as follows (right click any value in the pivot table and choose Group)

Starting at 41
Ending at 120
By: 79

This is how the Pivot table displays:

Row Labels Count of Days
<41 3
41-120 9
>120 3
Grand Total 15

The Pivot table doesn't involve writing formulas but will need refreshing if data changes.
Hope that helps.

Doug Dunn
Best STL

Fri 6 Dec 2013: Automatically marked as resolved.

Excel tip:

Recovering Unsaved Work in Excel 2010

Ever closed your Excel workbook in a hurry without saving your work beforehand? Here's how to get it back.

Choose File then Info, click Manage Versions and then Recover Unsaved Workbooks which will automatically find the spreadsheets that haven't been saved.

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.