Finding the maximum of quotients of two non-contiguous cell groups...

DrDebit

Board Regular
Joined
May 20, 2013
Messages
123
Office Version
  1. 365
Platform
  1. Windows
I have a number in A1, A2, A3, A8, A9, and another set of numbers in C1, C2, C3, C8, C9.

I want to to find the maximum quotient from dividing the individual numbers in the second set by the corresponding numbers (for each cell) in the first set (sort of like a max of the sumproducts, but quotients).

In other words, I want max(C1/A1,C2/A2, etc.), but in my specific case the data sets are much bigger.

Thank you!
 
Row\Col
A​
B​
C​
D​
E​
1​
0​
1​
#DIV/0!
D1: {=MAX(IF(C1:C3/A1:A3=MAX(IFERROR(C1:C3/A1:A3,)),ROW(C1:C9)))}
2​
1​
2​
2​
D2: {=MAX(IFERROR(C1:C3/A1:A3,-9E+307))}
3​
2​
3​
4​
Ah, good point about the division by zero error. Here is my (still array-entered**) formula, corrected to avoid that...

=MAX(IF(A1:A9=0,,IF(C1:C9/A1:A9=MAX(IFERROR(C1:C9/A1:A9,)),ROW(C1:C9))))

**Confirm this formula using CTRL+SHIFT+ENTER and not just Enter by itself
 
Last edited:
Upvote 0

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Forum statistics

Threads
1,215,343
Messages
6,124,405
Members
449,157
Latest member
mytux

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