How to Search for a total Range in another Range in Excel -


in excel need sum values, if of full column of text values appears in specific column. in other words: "sum values [column x] country=y, id= [anything a2:a2000, formatted text]. if id isn't 1 of values in range, don't want row value country=y summed.

i can't line-by-line, i'm looking syntax of range vs. range., since id "keys" in separate column countries summed by.

column = individual countries, in separate table have long list of "valid" ids. main data table, want sumif widgets column country, id = 1 of ids in "valid' id table.

you can use sumifs , sumproduct.

let's sheet1 column has countries, sheet1 column b has ids, sheet1 column c has values, sheet2 column has ids match , tables have headers in row 1. formula being put on sheet1.

=sumproduct(sumifs($c$2:$c$100,$a$2:$a$100,"countryname",$b$2:$b$100,sheet2!$a$2:$a$100))

sumifs gives sum of range c2:c100, range a2:a100 corresponds text "countryname", , ids in range b2:b100 correspond ids on other sheets. values returned in array, , such, uses sumproduct sum them up.

change range references accordingly.


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -