Min and IF formula Not Returning Intended Result

polsaggie

New Member
Joined
Nov 9, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I am trying to return a letter in Column N that returns the lowest number as the result. I am currently only able to return the number.

Formula: =MIN(IF((C2-$O$2)/($O$2)>0*(C2-$O$2)/($O$2),(C2-$O$2)/($O$2)),IF((C2-$O$3)/($O$3)>0*(C2-$O$3)/($O$3),(C2-$O$3)/($O$3)),IF((C2-$O$10)/($O$10)>0*(C2-$O$10)/($O$10),(C2-$O$10)/($O$10)))

1636494253050.png
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
MIN is a mathematical function, it can only return a number. If you want to return any text associated with that number then you would need to use other methods. FILTER is the most likely practical option, possibly with MIN or SMALL as a criteria.

You would need to explain the logic of your MIN formula before we attempt anything, the existing syntax looks a bit mixed up and could easily be misinterpreted if we try to break it down.
 
Upvote 0
I tried the formula below and it seems to work. Thank you!

=INDEX(N:N, MATCH(MAXIFS(O:O, O:O,"<"&C2),O:O,0),1)
 
Upvote 0
Welcome to the MrExcel Message Board!

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: IF and MIN Formula Not Returning Intended Result
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0

Forum statistics

Threads
1,214,830
Messages
6,121,831
Members
449,051
Latest member
excelquestion515

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