You are here:

# Excel/Relating data in two tables

Question
Hi,

I'm just trying to create a budget spread sheet, where by I have two tables (one for transactions, and one for a summary).

I'm trying to figure out a formula whereby if I enter a transaction it will appear in the summary table. e.g.

Table 1 (transactions):
Date          Transactions     Category        Amount
2-Mar-14   Chong Qing   Food          \$25.00
4-Mar-14   MacD          Food          \$14.99
16-Mar-14   Bus fare    Transport    \$3.50

Table 2 (Category Summary):

Summary Of Categories
Budget    Actual    Difference
Auto
Food          \$35.99
Entertainment
Housing

In the above example, if I enter two transactions in table 1 under the Food category it should appear in table 2 and continuously add the totals. In this case \$35.99 ( 25+14.99)

Just not sure if I have to use a pivot table of some sort or formulas to do this. Any help will be appreciated.

thanks for you time.

Hitesh

Make sure Table 2 is off to the right, not below the original data, so there are no shared columns.  Then use the SUMIF() function to create your sums.  Press F1 and read the Excel help files for some great examples and explanation of ways to use that function.
This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here

#### Jerry Beaucaire

##### Expertise

Excel Formulas, macros, automation. Microsoft Excel MVP - 2010. Code site with free code snippets and techniques: http://sites.madrocketscientist.com/jerrybeaucaires-excelassistant/files

##### Experience

Microsoft Excel MVP - 2010. I have my own extensive Excel help/code site: http://sites.madrocketscientist.com/jerrybeaucaires-excelassistant/files ===================== I have been offering free assistance as an Excel aid on many web sites for many years: (http://www.excelforum.com - JBeaucaire) ======== (http://www.askmehelpdesk.com/spreadsheets - JBeaucaire) ======= (http://www.mrexcel.com/forum - jbeaucaire)

Education/Credentials
Bachelor's Degree from Azusa Pacific University in Mathematics and Music Composition

Awards and Honors
Microsoft Excel MVP 2010