Formula with sum/avg

A

adimar

I have numbers in columns A1:A100 and B1:B100.
I need the result for MAX(Ai / (Ai + Bi)).
Is there a way to write a worksheet formula and avoid populating an
intermediate column for Ai + Bi?
Also, I'm trying to avoid writing a macro.


Thank you.
 
R

Ron Coderre

Try this:

=MAX(INDEX(A1:A100/(A1:A100+B1:B100),0))

Note: I use the INDEX function to avoid creating an ARRAY FORMULA,
which would be committed with CTRL+SHIFT+ENTER, instead of just ENTER.

Example of the array formula version:
=MAXA1:A100/(A1:A100+B1:B100))

Does that help?
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)
 
M

Mike H

Try this
With no blanks in range

=MAX(A1:A100/(A1:A100+B1:B100))

Array entered
Ctrl+shift+enter

Mike
 
M

Mike H

or with blanks and once again (sadly) array entered

=MAX(IF(ISNUMBER(A1:A100/B1:B100),A1:A100/(A1:A100+B1:B100),FALSE))

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top