Help With My Checkbook

Justinian

Well-known Member
Joined
Aug 9, 2009
Messages
1,557
Office Version
  1. 365
Platform
  1. Windows
I want to write a formula so that all expenses for January get summed in a cell below my checkbook labeled "January." I need a formula that sees if the word January is entered into a cell and if January is entered, no matter in how many cells, the formula adds those expenses into my total cell below which is also named January. The same applied for February and all months of the year. How do I do this?
 
You do not need any tool. Just copy from your worksheet and paste within a reply.
If you like you can try Table-It: on this forum you need the "CODE" system (you'll see if you want to use it)
 
Upvote 0

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Ok, here it goes:

VendorInvoice NumberDescriptionAmountMonth
$ 525.00 January
$ 525.00 January
$ 525.00 February
$ 525.00 February
$ 525.00 February
JanFebMarAprMayJunJulAugSepOctNovDec

<tbody>
</tbody><colgroup><col span="12"></colgroup>
 
Upvote 0
Under Amount you have "$ 525.00" which is considered as a string. Adding up strings will give you zero.
You must enter "525" and let the format add the "$" and the ".00".
Also you will make the formula easier when you use "Jan" or "January" and not a mix. Alternatively you could use numbers and format differently for the month names.

PS: avoid merging cells
 
Upvote 0
In your example:

In A14 to get Junuary totals:
=SUMPRODUCT(--($K$1:$L$12="January"),$I$1:$J$12)

In B14 to get February totals:
=SUMPRODUCT(--($K$1:$L$12="February"),$I$1:$J$12)
 
Upvote 0
Under Amount you have "$ 525.00" which is considered as a string. Adding up strings will give you zero.
You must enter "525" and let the format add the "$" and the ".00".
Also you will make the formula easier when you use "Jan" or "January" and not a mix. Alternatively you could use numbers and format differently for the month names.

PS: avoid merging cells

I am confused. Adding January's numbers, two occurrences of $525, will equal $1,050. That is the number that should be input into the running total at the bottom. Same for February.
 
Upvote 0
In your example:

In A14 to get Junuary totals:
=SUMPRODUCT(--($K$1:$L$12="January"),$I$1:$J$12)

In B14 to get February totals:
=SUMPRODUCT(--($K$1:$L$12="February"),$I$1:$J$12)

Yes, this worked perfectly! Thank you!
 
Upvote 0
I am confused. Adding January's numbers, two occurrences of $525, will equal $1,050. That is the number that should be input into the running total at the bottom. Same for February.
I was talking about the real contents of your cells as displayed in your example. It's a question of format: do you understand the difference between the number itself and the way it is displayed (formatted)?

Yes that would indeed equal 1050 of course which you can achieve with sumproduct as I told you from start or with SUM.IF which is the "native" function to do so (also within my 1ste reply)
If it worked for sumproduct it must work for SUM.IF.
PROOF:

Code:
   A      B    C              D   E           F   G   H   I      J   K     L   
 1 Vendor      Invoice Number     Description             Amount     Month     
 2                                                        525        Jan       
 3                                                        525        Jan       
 4                                                        525        Feb       
 5                                                        525        Feb       
 6                                                        525        Feb       
 7                                                                             
 8                                                                             
 9                                                                             
10                                                                             
11                                                                             
12                                                                             
13 Jan    Feb  Mar            Apr May         Jun Jul Aug Sep    Oct Nov   Dec 
14 1050   1575 0              0   0           0   0   0   0      0   0     0   
checkbook
[Table-It] version 09 by Erik Van Geit
Code:
RANGE   FORMULA (1st cell)
A14:M14 =SUMIF($K$2:$L$12,A13,$I$2:$J$12)
[Table-It] version 09 by Erik Van Geit
 
Upvote 0
FYI, I did enter only 525 and allow the formatting to add the "$" and the ".00." I am not sure why you would assume it was a formatting issue when you did not know what kind of formatting my cells had.
 
Upvote 0

Forum statistics

Threads
1,215,139
Messages
6,123,262
Members
449,093
Latest member
Vincent Khandagale

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top