Divide by specific cell if less than

gtd526

Well-known Member
Joined
Jul 30, 2013
Messages
657
Office Version
  1. 2019
Platform
  1. Windows
Hello,
If a cell in a range (B2:B8) is less than specific cell (E9), then divide specific cell by the cell less than specific cell value.
If no cells are less than, then "no cells".

Thank you.

The Whole Enchilada.xlsm
ABCDEF
1SymbolPriceQTYCostif any cell in B2:B8 is > E9, then divide E9 by that specific cell in B2:B8
2UBOT$22.7414$318.36want to create quantity
3CLDL$6.2544$330.00
4
5
6
7
8
9Total:58$648.36$14.81Total Remaining Funds
10
112expected result
Sheet1
Cell Formulas
RangeFormula
C9C9=SUM(C2:C5)
D9D9=SUM(D2:D8)
D11D11=ROUNDDOWN(($E$9/B3),0)
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
See if this does what you want:
Excel Formula:
=IF(MINIFS(B2:B8,B2:B8,">0")<E9,INT(E9/MINIFS(B2:B8,B2:B8,">0")),"no cells")
 
Upvote 0
Solution

Forum statistics

Threads
1,215,097
Messages
6,123,076
Members
449,094
Latest member
mystic19

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