ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Index and match (https://www.excelbanter.com/excel-discussion-misc-queries/160819-index-match.html)

swanrage

Index and match
 
Able to return a value by matching 2 variables from 2 tables, would like to
sum the values that match both variables. The formula only returns the 1st
value (as a look-up function)...i.e., using the 'Sumif' function but matching
2 criteria instead of one.


Bob Phillips

Index and match
 
=SUMPRODUCT(--(criteria1_range="text_value"),--(Criteria2_range=num_value),sum_range)

--
HTH

Bob

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

"swanrage" wrote in message
...
Able to return a value by matching 2 variables from 2 tables, would like
to
sum the values that match both variables. The formula only returns the
1st
value (as a look-up function)...i.e., using the 'Sumif' function but
matching
2 criteria instead of one.





All times are GMT +1. The time now is 02:01 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com