Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

I want to sum a column in table A when a criteria is met in table B (per row)

$
0
0

Table A:

ExpIncCat
$10Car Repair
$300Salary
$5Car Repair
$300Salary

Table B:

CatSum
Car Repair$15
Salary$600

I have been searching query, sumif and other commands to generate Table B from Table A, but I'm not getting anywhere without some very long and complicated equations. Can anyone offer a simple solution?

Additional: When more information is added later and I need to append a column onto Table B (say a future time period, how would I include the numbers in Column C of Updated Table B? I notice that there were no Car Repair entries in the month of APR. Therefore, that row would not have an entry in the Sum_APR column.

Table APR|Exp|Inc|Cat||:---|:---|:---|||$300|Salary|

Updated Table B|Cat|Sum|Sum_APR||:---|:---|:---||Car Repair|$15|||Salary|$600|$300|


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>