Complex Formula

W

Watty30

I need some help. I am trying to create a formula where I reference two
different cells in one spreadsheet that are in the same row(this is the
critera that I am pulling from on a "Data" page). On a separate tab I need
to average the numbers that coincide with the referenced cell from the
original tab.

A simple Vlookup formula doesn't work because it only uses one description
as a qualifier.

Please Help
 
B

Bob Phillips

Do you mean

=SUM((Sheet2!A2:A20="value1")*(Sheet2!B2:B20="value2"))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.
Excel will automatically enclose the formula in braces (curly brackets), do
not try to do this manually.
When editing the formula, it must again be array-entered.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
Top