IF Formula (and, I'm not sure this is the correct Formula?)

connman

New Member
Joined
Aug 11, 2023
Messages
5
Office Version
  1. 365
Platform
  1. Windows
What I'm trying to do:

  • I have a Cell that has a Number in it.
  • I have a Cell that has a Formula in it.
  • I'd like to have the Number Cell (Cell #1) be Greater Than and override/default from the Formula Cell (Cell #2) when applicable (otherwise it defaults to the higher value of the two).
  • I'd like it to return/total a Number.
  • Here's what I have: =IF(I8>(D8*I5)+J5,"I8")
  • Note:
    • I8, J5, and J8 are Formula Cells.
    • D8 is a Number Cell.
Any help would be appreciated.

Thank you in advance.
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Welcome to the Board!

Your explanation is a bit confusing. I think it would be beneficial if you could post a few different scenarios (with real values), in which you tell us what the values are in cells I8, J5, J8, and D8, and tell us what your expected result is in each situation.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
consider either of the following and/or provide sample data with the forum's tool named XL2BB.

T202308a.xlsm
J
815
915
3e
Cell Formulas
RangeFormula
J8J8=IF(I8>(D8*I5)+J5,I8,(D8*I5)+J5)
J9J9=MAX(I8,D8*I5+J5)
 
Upvote 0
Solution
I downloaded the App, but I can't seem to Upload a Mini-sheet. Here's a Pic in the meantime.
 

Attachments

  • Screenshot 2023-08-11 160328.png
    Screenshot 2023-08-11 160328.png
    7.9 KB · Views: 1
Upvote 0
The "=IF(I8>(D8*I5)+J5,I8,(D8*I5)+J5)" worked PERFECTLY! Thank you!
 
Upvote 0
OK. So, I separated 3 Formulas to Test. And, with the help of the above :), I was able to have all 3 Test positively. However, when I put them all together, the Formula doesn't work.

Here it is:

=1*(D8+(D8/0.89-D8)+(=MAX(I8,D8*I5+J5))/0.6
 
Upvote 0
You need to remove the "=" from the middle of your formula:
Excel Formula:
=1*(D8+(D8/0.89-D8)+(MAX(I8,D8*I5+J5))/0.6
 
Upvote 0

Forum statistics

Threads
1,215,084
Messages
6,123,028
Members
449,092
Latest member
ikke

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