If formula in or paring another formula

N0t Y0urs

Board Regular
Joined
May 1, 2022
Messages
96
Office Version
  1. 365
  2. 2021
  3. 2019
  4. 2016
  5. 2013
Platform
  1. MacOS
  2. Mobile
  3. Web
I have the current formula of

=(G40+D41)*inputs!$B$11 and it works perfectly but I want to add this functionality to it.

If G40>1000000 then G40+D41-1000000 if not (G40+D41)*inputs!$B$11

I can’t seem to make it work any assistance would be amazing
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
I have the current formula of

=(G40+D41)*inputs!$B$11 and it works perfectly but I want to add this functionality to it.

If G40>1000000 then G40+D41-1000000 if not (G40+D41)*inputs!$B$11

I can’t seem to make it work any assistance would be amazing
I have amended my formula to the following
=ifs(G40+D41>1000,(G40+D41)*inputs!$B11,G40+D41>1000000,G40+D41-1000000)

It’s working all the way up to the second condition. It’s just subtracting the % from the first condition rather than ignoring it and subtracting anything over 1000000.

Do I need to change the >1000 to be a range of 1000-999999
 
Upvote 0
If G40+D41>1000000, then the first condition G40+D41>1000 will also be true, i.e. your IFS() will never reach the second condition.

You could simply reverse the order of the two conditions.

What should happen if G40+D41<=1000?
 
Upvote 0
If G40+D41>1000000, then the first condition G40+D41>1000 will also be true, i.e. your IFS() will never reach the second condition.

You could simply reverse the order of the two conditions.

What should happen if G40+D41<=1000?
Thanks but I just fine tuned it and in the process looked at my order.

My solution is

IFS(G40+D41-E41>1000000,G40+D41-E41-1000000,G40+D41-E41>1000,(G40+D41-E41)*inputs!$b$11,G40+D41-E41>1,0)

I did add the additional subtraction in after I found my error in the order I wrote the formula.

Thanks
 
Upvote 0
Solution

Forum statistics

Threads
1,224,818
Messages
6,181,151
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