Maximum and minimum values for last quarter

ice_28

New Member
Joined
Jul 8, 2011
Messages
7
Every business day I enter a date and a corresponding numeric value.
When I enter the first entry of a new quarter, that should be a trigger to calculate the maximum value of the previous quarter, the minimum value of the previous quarter and the last value of the previous quarter.
Each quarter does not have the same number of days/entries – they vary. Quarters go as follows: 1 Jan-31 March (Q1), 1 Apr – 30 Jun (Q2), 1 Jul – 30 Sep (Q3), 1 Oct -31 Dec (Q4).
Can you please help me calculate the maximum, minimum and last price of the previous quarter – without a VBA code? Instead, I’d prefer using formulas and functions.
icon7.gif
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Is there any data that marks a new quarter, a date for example ?

Yes, there is a quarter number in each row.

Column A = date
Column B=prices
Column C= calculates the quarter number based on the date in column A
Column D - I need to calculate the maximum value of all prices in the prevous quarter.
Column E= I need to calculate the minimum value of all prices in the prevous quarter.

The problem is, quarters can have different number of days, so we can't use a constant range.

I have a simple example of the data in Excel, but can't figure out how to attach a file here.
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,718
Members
452,939
Latest member
WCrawford

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