Adding Each If Statement Together

MrNerd

New Member
Joined
Jan 9, 2018
Messages
36
Office Version
  1. 2003 or older
Platform
  1. Windows
I am doing a personal budget and wanted I40 and I41 to add together if the 25th of the month fell on a Saturday.

HIJ
40Car$44525
41Groceries/Gas$150Saturday

<tbody>
</tbody>



Below you can see on the 25th of the month (Saturday) the $445 took (I27) but not adding in the $150 (below that is the formula held in I27). Not sure what I am missing.

GHIJ
2Money OutMoney In
31Wednesday$ -
42Thursday0
53Friday0
64Saturday$ 150
75Sunday$ -
86Monday0
97Tuesday0
108Wednesday0
119Thursday$ -
1210Friday0
1311Saturday$ 150
1412Sunday0
1513Monday0
1614Tuesday0
1715Wednesday$ -
1816Thursday0
1917Friday0
2018Saturday$ 150
2119Sunday0
2220Monday0
2321Tuesday0
2422Wednesday0
2523Thursday0
2624Friday0
2725Saturday$ 445
2826Sunday0
2927Monday0
3028Tuesday0
3129Wednesday0
3230Thursday$ -
3331Friday0
34
35
36ExpensesDay of the Month
37Cell Phone$05
38KCPL$09
39Mortgage/Insurance$015
40Car$44525
41Groceries/Gas$150Saturday

<tbody>
</tbody>

2018




I
27$ 445

<tbody>
</tbody>

2018

Worksheet Formulas
CellFormula
I27=IF(G27=$J$37,$I$37,IF(G27=$J$38,$I$38,IF(G27=$J$39,$I$39,IF(G27=$J$40,$I$40,IF(G27=$J$43,$I$43,IF(H27=$J$41,$I$41,IF(G27=$J$42,$I$42,"0")))))))

<tbody>
</tbody>

<tbody>
</tbody>
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Once an IF condtion becomes TRUE the rest of the formula doesnt get executed.
So if G27=J37 the result will be I37... and nothing else will get executed in that formula.

Here's a different way of doing it.
=(G27=J37)*I37+(G27=J38)*I38+(G27=J39)*I39+(G27=J40)*I40+(G27=J43)*I43+(H27=J41)*I41+(G27=J42)*I42

Each part in brackets evaluates to TRUE (1) or FALSE (0)
This is then muliplied by the value in column I, then the whole lot is added together.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,514
Messages
6,125,263
Members
449,219
Latest member
daynle

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