IF AND formula needed

londa_vba

Board Regular
Joined
May 11, 2023
Messages
61
Office Version
  1. 365
Platform
  1. Windows
Hello
Is there a way to combine all the following scenarios into one formula or two formulas in Excel

First logical is Quantity (D9) < Target (E9)

If first logical test = false, then Target (E9) / Quantity (D9)

If first logical test = true And If (Quantity (D9) / 10) < 1 = 10
-OR-
If first logical test = true And If Quantity (D9) / 10 > 1 = 100

Lastly based on whether the answer to the second logical test is 10 or is 100....
I need the true result to be Target (E9) / (Quantity (D9) / either 10 or 100)
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Try:

Libro1
DEF
910200.02
Hoja1
Cell Formulas
RangeFormula
F9F9=E9/D9/IF(D9<E9,IF(D9/10<1,10,100),1)
 
Upvote 0
Solution
Try:

Libro1
DEF
910200.02
Hoja1
Cell Formulas
RangeFormula
F9F9=E9/D9/IF(D9<E9,IF(D9/10<1,10,100),1)
I appreciate the attempt. That code did not work for me.
I am using D9=0.19, E9=0.75, and answer should = 3.87 to check the false statement.
I am using D9=11.42, E9=0.75, and answer should = 6.57 to check one option for the true statement.
 
Upvote 0
I appreciate the attempt. That code did not work for me.
I am using D9=0.19, E9=0.75, and answer should = 3.87 to check the false statement.
I am using D9=11.42, E9=0.75, and answer should = 6.57 to check one option for the true statement.
Sorry that actually did work for me. THANK YOU SO MUCH!
 
Upvote 0
I'm glad to help you. Thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,135
Messages
6,123,238
Members
449,093
Latest member
Vincent Khandagale

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