IF statements

ValleyQue

New Member
Joined
May 13, 2023
Messages
1
Office Version
  1. 365
Platform
  1. Windows
In my spreadsheet I have numbers in three cells. In the first cell, say I have the number 4,000. I need a formula that will look at the number in the second cell and see if the number in the second cell is greater than, less than or equal to 4,000, I need the formula to return only 4,000 or whatever the lesser number may be from the second cell. If the number in the second cells satisfies the 4,000, then I don't need it to look at the third cell, but if the number in the second cell is less than 4,000 then I need the formula to look at the third cell and return either the 4,000 or whatever amount is needed after looking at the second cell to satisfy the 4,000. I know it's a nested IF statement, but I can't figure out how to make it work.
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Welcome to the MrExcel board!

See if this is what you want. If not please give 4 or 5 varied examples, the expected results and explain again in relation to your samples.

I suggest that you investigate XL2BB for providing sample data & expected results to make it easier for helpers to understand just what you have & where it is and also what you want & where it is to be.

23 05 13.xlsm
ABCDEFGHIJK
14000400040004000
2300030006000400030003000100100
350050050002000100028002800
ValleyQue
Cell Formulas
RangeFormula
B2,K2,H2,E2B2=MIN(A1,A2)
B3,K3,H3,E3B3=MIN(A3,A1-B2)
 
Upvote 0
Question confusing without examples so here is my attempt
Book2
ABCD
14000200030002000
Sheet1
Cell Formulas
RangeFormula
D1D1=IF(B1<=A1,B1,IF(C1<=A1,C1,A1))
 
Upvote 0

Forum statistics

Threads
1,215,086
Messages
6,123,040
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