Min Max formula

sanket_sk

Board Regular
Joined
Dec 27, 2016
Messages
140
Office Version
  1. 365
Platform
  1. Windows
Hi All,

Looking for min Max formula which will return following answer

If A1 =<.4% Result (in B1) will be 0% & if A1=>.2% Result will be 5%.

Please help me build this formula.

Thanks & Regards,
Sanket
7738414678
 

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).
something not quite right with your criteria

what if A1 = .3%?
 
Upvote 0
Code:
=IF(A1<0.4,0,IF(A1>0.2,5,A1))

give this a go?
it leaves the number alone if its in between those values

edit:
oh yeah AlanY has a point. You sure that criteria is correct?
 
Last edited:
Upvote 0
Here's the formula with error catching
Code:
=IF(AND(A65<0.4,A65>0.2),"DOES NOT COMPUUUUTE",IF(A65<0.4,0,IF(A65>0.2,5,A65)))
but you have to read the error in your best robot voice
 
Last edited:
Upvote 0
Hi,

Thanks for quick response ...

it may not solve purpose as it should also rerun 2.5% if A1 = .3%.... complete logic like this..



If =<.2 Result 5% if =.3 result 2.5% =>.4 Result 0%
 
Upvote 0
it may not solve purpose as it should also rerun 2.5% if A1 = .3%.... complete logic like this..



If =<.2 Result 5% if =.3 result 2.5% =>.4 Result 0%

I'm not sure i completely understand, so if this doesn't work for you please respond with examples using the table maker, a screenshot, or a direct download to your worksheet.
you can find examples of how to post these here

Code:
=IF(AND(A1<0.4,A1>0.2),2.5,IF(A1>0.4,0,IF(A1<0.2,5,A1)))

you changed the greater than and less than signs so i'm not sure what you're going for here.
an example would really help.
Please include both an example of how the data is presented as well as your expected results.
 
Upvote 0

Forum statistics

Threads
1,223,897
Messages
6,175,271
Members
452,628
Latest member
dd2

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