output max/min from another worksheet

deuce

Active Member
Joined
Oct 6, 2006
Messages
346
Office Version
  1. 2007
I am requesting the creation of a formula that will output the max and min of the last 20 days from another worksheet, the problem is that the datasheet is automatically updated every 1 minute and filled with data going downwards. The data columns are C,D,E,F.

Is there a way to do this?

thanks and regards,
deuce
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
hi those are sales figures. i cannot post them here. sheet name is sheet1. both the isnumber functions come out as true.
 
Upvote 0
hi those are sales figures. i cannot post them here. sheet name is sheet1. both the isnumber functions come out as true.

I didn't ask you post the data, just that criterion value of J7. If

=ISNUMBER(J7)

is TRUE. That is good enough.

We count every record where a D-value >= J7 and the corresponding value E-value <= J7 in the last 7200 records, right?
 
Upvote 0
well the formula i posted does everything correctly only problem i am trying to save the time of having to adjust to match the range of the latest 7200 cells.
 
Upvote 0
well the formula i posted does everything correctly only problem i am trying to save the time of having to adjust to match the range of the latest 7200 cells.

Well, I have already provided you a solution.

Here another one:

Rich (BB code):
=SUMPRODUCT(
--(OFFSET(INDEX(D:D,MATCH(9.99E+307,D:D)),0,0,-7200)>=J7)
--(OFFSET(INDEX(E:E,MATCH(9.99E+307,D:D)),0,0,-7200)<=J7))

is effectively equivalent to

=SUMPRODUCT(--($D$47025:$D$54225>=J7),--($E$47025:$E$54225<=J7))

but one that will include any newly added records.

Note 1. The formula will produce an error if there aren't at least 7200 records available.
Note 2. The figure 9.99E+307 is the truncated version of 9.99999999999999E+307.
Note 3. The use of D:D twice is intentional.
 
Last edited:
Upvote 0
what would the difference be in output results of this formula compared to mine?
 
Upvote 0
hi well it appears to be working only that the number appeared 87 times but the formula outputted 7287 counts, how do we address this?
 
Upvote 0
hi well it appears to be working only that the number appeared 87 times but the formula outputted 7287 counts, how do we address this?

Missing the list separator between the 2 terms...

=SUMPRODUCT(
--(OFFSET(INDEX(D:D,MATCH(9.99E+307,D:D)),0,0,-7200)>=J7),
--(OFFSET(INDEX(E:E,MATCH(9.99E+307,D:D)),0,0,-7200)<=J7))
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,738
Members
452,940
Latest member
Lawrenceiow

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