Adding two IF Statements 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
Car
Groceries/Gas

<tbody>
[TD="align: center"]40[/TD]

[TD="align: right"]$445[/TD]
[TD="align: center"]25[/TD]

[TD="align: center"]41[/TD]

[TD="align: right"]$150[/TD]
[TD="align: center"]Saturday[/TD]

</tbody>


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

GHIJ
Money OutMoney In
Wednesday
Thursday
Friday
Saturday
Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Cell Phone
KCPL
Mortgage/Insurance
Car
Groceries/Gas

<colgroup><col style="width: 25pxpx"><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]2[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]3[/TD]
[TD="align: right"]1[/TD]

[TD="align: right"] $ - [/TD]
[TD="align: right"][/TD]

[TD="align: center"]4[/TD]
[TD="align: right"]2[/TD]

[TD="align: right"] 0 [/TD]
[TD="align: right"][/TD]

[TD="align: center"]5[/TD]
[TD="align: right"]3[/TD]

[TD="align: right"] 0 [/TD]
[TD="align: right"][/TD]

[TD="align: center"]6[/TD]
[TD="align: right"]4[/TD]

[TD="align: right"] $ 150 [/TD]
[TD="align: right"][/TD]

[TD="align: center"]7[/TD]
[TD="align: right"]5[/TD]

[TD="align: right"] $ - [/TD]
[TD="align: right"][/TD]

[TD="align: center"]8[/TD]
[TD="align: right"]6[/TD]

[TD="align: right"] 0 [/TD]
[TD="align: right"][/TD]

[TD="align: center"]9[/TD]
[TD="align: right"]7[/TD]

[TD="align: right"] 0 [/TD]
[TD="align: right"][/TD]

[TD="align: center"]10[/TD]
[TD="align: right"]8[/TD]

[TD="align: right"] 0 [/TD]
[TD="align: right"][/TD]

[TD="align: center"]11[/TD]
[TD="align: right"]9[/TD]

[TD="align: right"] $ - [/TD]
[TD="align: right"][/TD]

[TD="align: center"]12[/TD]
[TD="align: right"]10[/TD]

[TD="align: right"] 0 [/TD]
[TD="align: right"][/TD]

[TD="align: center"]13[/TD]
[TD="align: right"]11[/TD]

[TD="align: right"] $ 150 [/TD]
[TD="align: right"][/TD]

[TD="align: center"]14[/TD]
[TD="align: right"]12[/TD]

[TD="align: right"] 0 [/TD]
[TD="align: right"][/TD]

[TD="align: center"]15[/TD]
[TD="align: right"]13[/TD]

[TD="align: right"] 0 [/TD]
[TD="align: right"][/TD]

[TD="align: center"]16[/TD]
[TD="align: right"]14[/TD]

[TD="align: right"] 0 [/TD]
[TD="align: right"][/TD]

[TD="align: center"]17[/TD]
[TD="align: right"]15[/TD]

[TD="align: right"] $ - [/TD]
[TD="align: right"][/TD]

[TD="align: center"]18[/TD]
[TD="align: right"]16[/TD]

[TD="align: right"] 0 [/TD]
[TD="align: right"][/TD]

[TD="align: center"]19[/TD]
[TD="align: right"]17[/TD]

[TD="align: right"] 0 [/TD]
[TD="align: right"][/TD]

[TD="align: center"]20[/TD]
[TD="align: right"]18[/TD]

[TD="align: right"] $ 150 [/TD]
[TD="align: right"][/TD]

[TD="align: center"]21[/TD]
[TD="align: right"]19[/TD]

[TD="align: right"] 0 [/TD]
[TD="align: right"][/TD]

[TD="align: center"]22[/TD]
[TD="align: right"]20[/TD]

[TD="align: right"] 0 [/TD]
[TD="align: right"][/TD]

[TD="align: center"]23[/TD]
[TD="align: right"]21[/TD]

[TD="align: right"] 0 [/TD]
[TD="align: right"][/TD]

[TD="align: center"]24[/TD]
[TD="align: right"]22[/TD]

[TD="align: right"] 0 [/TD]
[TD="align: right"][/TD]

[TD="align: center"]25[/TD]
[TD="align: right"]23[/TD]

[TD="align: right"] 0 [/TD]
[TD="align: right"][/TD]

[TD="align: center"]26[/TD]
[TD="align: right"]24[/TD]

[TD="align: right"] 0 [/TD]
[TD="align: right"][/TD]

[TD="align: center"]27[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFF00]#FFFF00[/URL] , align: right"]25[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFF00]#FFFF00[/URL] "]Saturday[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFF00]#FFFF00[/URL] , align: right"] $ 445 [/TD]
[TD="align: right"][/TD]

[TD="align: center"]28[/TD]
[TD="align: right"]26[/TD]

[TD="align: right"] 0 [/TD]
[TD="align: right"][/TD]

[TD="align: center"]29[/TD]
[TD="align: right"]27[/TD]

[TD="align: right"] 0 [/TD]
[TD="align: right"][/TD]

[TD="align: center"]30[/TD]
[TD="align: right"]28[/TD]

[TD="align: right"] 0 [/TD]
[TD="align: right"][/TD]

[TD="align: center"]31[/TD]
[TD="align: right"]29[/TD]

[TD="align: right"] 0 [/TD]
[TD="align: right"][/TD]

[TD="align: center"]32[/TD]
[TD="align: right"]30[/TD]

[TD="align: right"] $ - [/TD]
[TD="align: right"][/TD]

[TD="align: center"]33[/TD]
[TD="align: right"]31[/TD]

[TD="align: right"] 0 [/TD]
[TD="align: right"][/TD]

[TD="align: center"]34[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]35[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]36[/TD]
[TD="align: right"][/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=00B0F0]#00B0F0[/URL] "]Expenses[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=00B0F0]#00B0F0[/URL] , align: right"][/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=00B0F0]#00B0F0[/URL] "]Day of the Month[/TD]

[TD="align: center"]37[/TD]
[TD="align: right"][/TD]

[TD="align: right"]$0[/TD]
[TD="align: center"]5[/TD]

[TD="align: center"]38[/TD]
[TD="align: right"][/TD]

[TD="align: right"]$0[/TD]
[TD="align: center"]9[/TD]

[TD="align: center"]39[/TD]
[TD="align: right"][/TD]

[TD="align: right"]$0[/TD]
[TD="align: center"]15[/TD]

[TD="align: center"]40[/TD]
[TD="align: right"][/TD]

[TD="align: right"]$445[/TD]
[TD="align: center"]25[/TD]

[TD="align: center"]41[/TD]
[TD="align: right"][/TD]

[TD="align: right"]$150[/TD]
[TD="align: center"]Saturday[/TD]

</tbody>
2018




I

<tbody>
[TD="align: center"]27[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFF00]#FFFF00[/URL] , align: right"] $ 445[/TD]

</tbody>
2018

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<tbody>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
[TR]
[TH="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]I27[/TH]
[TD="align: left"]=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")))))))[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Could this be a SUM+IF statement? Wondering if I am just missing a series of () and +...

Basically, if any (or all of these tests) qualify as TRUE, I want those TRUE values all add together.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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