thirdeye85
New Member
- Joined
- Aug 11, 2021
- Messages
- 28
- Office Version
- 2019
- Platform
- MacOS
I have a question about nesting calculations within the same =IF( function. For instance, I10 has a nested (IF function as follows: =IF($E10=I$1,$G10,IF($F10=I$1,-$H10,0))
This basically says that if the cell $E10=I$1 then G10 will be a positive number and if $F10=I$1 then it will be a negative. This functions well in its own right. However, I would like to attach the following calculation to this function (J14 within spreadsheet) =$G10-($G10*0.026)-0.1. This should only be calculated if B10 = CC, otherwise the calculation should not be performed and only the first two IF logical tests should apply.
I think all I need to do is add a third logical test that states that EVEN IF the first two are true, the last test given that B10=CC will supersede the previous arguments.
Am I going at this the right way?
And just some context the formula is a calculation of credit card fees that are tacked onto a dollar amount of $80.00; if CC is not input under type (B10) but rather CASH then the formula would not be required to calculate those fees.
Thank you for your help!
This basically says that if the cell $E10=I$1 then G10 will be a positive number and if $F10=I$1 then it will be a negative. This functions well in its own right. However, I would like to attach the following calculation to this function (J14 within spreadsheet) =$G10-($G10*0.026)-0.1. This should only be calculated if B10 = CC, otherwise the calculation should not be performed and only the first two IF logical tests should apply.
I think all I need to do is add a third logical test that states that EVEN IF the first two are true, the last test given that B10=CC will supersede the previous arguments.
Am I going at this the right way?
And just some context the formula is a calculation of credit card fees that are tacked onto a dollar amount of $80.00; if CC is not input under type (B10) but rather CASH then the formula would not be required to calculate those fees.
Thank you for your help!
Double Entry Bookkeeping Final.xlsx | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | |||
1 | Notes | Type | Month | Date | Account Debited | Account Credited | Debit | Credit | Income | SouthState | ||
2 | ||||||||||||
3 | ||||||||||||
4 | ||||||||||||
5 | ||||||||||||
6 | ||||||||||||
7 | ||||||||||||
8 | ||||||||||||
9 | ||||||||||||
10 | Doe, Joe | CC | 8 | 9/17/21 | Southstate | Income | $ 80.00 | $ 80.00 | -$80.00 | $80.00 | ||
11 | Doe, Jane | CASH | 8 | 9/17/21 | Southstate | Income | $ 80.00 | $ 80.00 | -$80.00 | $80.00 | ||
12 | ||||||||||||
13 | ||||||||||||
14 | $ 77.82 | |||||||||||
Sheet2 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
I10:J11 | I10 | =IF($E10=I$1,$G10,IF($F10=I$1,-$H10,0)) |
C10:C11 | C10 | =MONTH(Ledger3[@Date]) |
J14 | J14 | =$G10-($G10*0.026)-0.1 |