Counting values in one column based on a date range in another column

Kelleyscott

New Member
Joined
May 21, 2020
Messages
9
Office Version
  1. 365
Platform
  1. Windows
Please can you assist me with a formula for the query within the attached picture.

In cell E36, I am needing a formula that will 'count the number of times that Column E is greater than >$80,000.' However only those that are within the date range noted in Cells A1 (start of month) and A2 (today -1day).

Therefore the answer in Cell E36 should be 3 as there are 3 instances that the balance was greater >$80,000 (12/5, 13/5 & 20/5).

The formula will need the dates in Column A and the values in Column E - but I just can't get it right.
Your help is appreciated.
 

Attachments

  • Excel query.PNG
    Excel query.PNG
    77.2 KB · Views: 41

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hi Kelleyscott,

Does this work?

Book1
ABCDE
101-May-207
221-May-20EOD Baln
328-Apr-20
401-May-20 $ 87,554.00
503-May-20 $ 87,939.00
605-May-20 $ 88,401.00
707-May-20 $ 88,940.00
809-May-20 $ 89,556.00
911-May-20 $ 22,445.00
1013-May-20 $ 23,215.00
1115-May-20 $ 24,062.00
1217-May-20 $ 79,033.00
1319-May-20 $ 80,034.00
1421-May-20 $ 81,112.00
1523-May-20 $ 82,267.00
1625-May-20 $ 83,499.00
1727-May-20 $ 84,808.00
Sheet1
Cell Formulas
RangeFormula
E1E1=COUNTIFS($A$3:$A$999,">="&$A$1,$A$3:$A$999,"<="&$A$2,$E$3:$E$999,">"&80000)
 
Upvote 0
Glad I could help. COUNTIFS wants the same range for criteria so that's why it starts in the empty E3 so it can match with the first date.
 
Upvote 0

Forum statistics

Threads
1,215,515
Messages
6,125,279
Members
449,220
Latest member
Excel Master

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