Nested IF formula Nightmare

Rana Gray

Board Regular
Joined
Jan 26, 2023
Messages
53
Office Version
  1. 365
Platform
  1. Windows
  2. Web
Hey Everyone,

I have gotten most of my formula to work but I need to add one more condition and I can't seem to figure it out. Here is what I have so far (that I've tested and works): =IF(E16="*Mortgage*",5.25%,IF(F38>5.25%,SUM(F38+2%),5.25%))*OR(IF(E16="*Mortgage*",5.25%,IF(F38>5.25%,SUM(F38+2%),5.25%)))

What I need to add is: If E16="<>*Mortgage*" and/or "<>*Homeowner*" Then use value in cell F38 as is.

As always thank you in advance <3
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Rana,
is it possible you can post a mini workbook using the xl2bb add in? (Link below)? Or at least post a table?
 
Upvote 0
in your original formula can you explain what this does:
OR(IF(E16="*Mortgage*",5.25%,IF(F38>5.25%,SUM(F38+2%),5.25%)))
as far as I can tell there is only one logical statement to compare for the OR function, so that function is essentially this:
IF(E16="*Mortgage*",5.25%,IF(F38>5.25%,SUM(F38+2%),5.25%))

actually it looks like the statements before and after the *OR are identical.
 
Upvote 0
in your original formula can you explain what this does:
OR(IF(E16="*Mortgage*",5.25%,IF(F38>5.25%,SUM(F38+2%),5.25%)))
as far as I can tell there is only one logical statement to compare for the OR function, so that function is essentially this:
IF(E16="*Mortgage*",5.25%,IF(F38>5.25%,SUM(F38+2%),5.25%))

actually it looks like the statements before and after the *OR are identical.
Hey hun I apologize I wrote the second criteria incorrectly - this is the actual sheet:

1679521573405.png


1679521596680.png
 
Upvote 0
Please explain what happens if the test is true and what happens if it is false
You do not need the Sum and if the formula is the same for both Mortgage and HomeOwner see below.

Consider the following
 
Last edited:
Upvote 0
in your original formula can you explain what this does:
OR(IF(E16="*Mortgage*",5.25%,IF(F38>5.25%,SUM(F38+2%),5.25%)))
as far as I can tell there is only one logical statement to compare for the OR function, so that function is essentially this:
IF(E16="*Mortgage*",5.25%,IF(F38>5.25%,SUM(F38+2%),5.25%))

actually it looks like the statements before and after the *OR are identical.
=IF($E$16="*Mortgage*",5.25%,IF(SUM($F$26+2%)>5.25%,SUM($F$26+2%),5.25%))*OR(IF($E$16="*Homeowner*",5.25%,IF(SUM($F$26+2%)>5.25%,SUM($F$26+2%),5.25%)))

so new sheet for reference basically if "Product Name" contains "Mortgage" or "Homeowner" the 'Qualifying Rate' should be 5.25% of 'Customer Rate' + 2% whichever is higher. But for all other Products just use the 'Customer Rate'

I hope that makes sense haha
 
Upvote 0
T202303a.xlsm
DE
16 x
17
4d
Cell Formulas
RangeFormula
D16D16=IF(OR(E16={"*Mortgage*","*HomeOwner*"}),IF(F38>0.0525,F38+0.02,0.0525),"")
 
Upvote 0
It will help if you post your sheet with the forum's too named XL2BB.

explain what happens with each If
true part
false part

What works with your existing formula?

T202303a.xlsm
DE
165.25%Mortgage
17
4d
Cell Formulas
RangeFormula
D16D16=IF(OR(E16={"Mortgage","HomeOwner"}),IF(F38>0.0525,F38+0.02,0.0525),"")
 
Upvote 0
T202303a.xlsm
DEF
168.00%a Homeowner xyz
17
4d
Cell Formulas
RangeFormula
D16D16=IF(OR(IFERROR(SEARCH("Mortgage",E16),0),IFERROR(SEARCH("Homeowner",E16),0)),IF(F38>0.0525,F38+0.02,0.0525),"Customer rate")
 
Upvote 1
Solution

Forum statistics

Threads
1,215,514
Messages
6,125,273
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