Return Index Match with multiple criteria (ABS, MIN, possible IF statements)

qrtback10

New Member
Joined
Jan 19, 2015
Messages
20
I need to find the "Maximum Minimum" of S2 (the closest to S2 without going over like the Price is Right), WITH P2:P14 being equal to "AA". Sometimes it works, sometimes it doesn't. I feel like maybe now maybe the problem is with my original formula? Because your answer looks correct as far as what I'm looking for but again, I'm a novice at this obviously. Thoughts?

Beginning code that might not be doing what I need it to be doing:
Code:
[COLOR=#000000]=INDEX([/COLOR][COLOR=#F7981D]O2:O13[/COLOR][COLOR=#000000],MATCH(MIN(ABS([/COLOR][COLOR=#7E3794]K2:K14[/COLOR][COLOR=#000000]-[/COLOR][COLOR=#11A9CC]S2[/COLOR][COLOR=#000000])),ABS([/COLOR][COLOR=#7E3794]K2:K14[/COLOR][COLOR=#000000]-[/COLOR][COLOR=#11A9CC]S2[/COLOR][COLOR=#000000]),[/COLOR][COLOR=#1155CC]0[/COLOR][COLOR=#000000]))[/COLOR]

This is the code I was using to begin searching in column P for the Rating of "AA" but could never get it to work so I'm thinking maybe my problem lies within the code above? Obviously am missing what is needed to search column P.

Table that I'm working with: (Highlighted cell (1455 in K7) is what it should be returning but it's not)

0 BD From1 Bd2 BD From3 BD From4 BD FromMarker TypeABS ValueCodeRatingBedroomsRent Max
blu_square1500CC-ALT-59 LCC31500
1502blu_square2CC-ALT-3707AA
1470blu_square30CC-ALT-3707DD
1503blu_square3CC-ALT-3740AA
200buildings1500CC--4032AA
1455buildings45CC-VIL-4130AA
buildings1500CC--2911BB
335502ylw_circle998CC-ASP-3201BB
675733886ylw_circle614CC-ASP-2195AA
5528007061700purple_square200CC-DEI-2791AA
5226207462900purple_square1400CC-DEI-2122AA
7807161400purple_square100CC-DEI-1011BB

<tbody>
</tbody>

<table cellspacing="0" cellpadding="0" dir="ltr" border="1" fixed;="" font-family:="" arial,="" sans,="" sans-serif;="" border-collapse:="" collapse;="" border:="" 1px="" solid="" rgb(204,="" 204,="" 204);"="" class="wysiwyg_cms_table_grid wysiwyg_dashes" style="width: 500px;" width="500"><colgroup><col style="width: 100px;"><col width="100"><col width="100"><col width="100"><col width="100"><col width="100"><col width="100"><col width="100"><col width="100"><col width="100"><col width="100"><col width="100"></colgroup><tbody></tbody></table>
PLEASE let me know if you or anyone else has any thoughts!

Thank you

EDIT: My original post on what I thought the issue was is here: http://www.mrexcel.com/forum/excel-questions/830028-should-quick-answer-you-guys.html
 
Last edited:

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Forum statistics

Threads
1,215,064
Messages
6,122,939
Members
449,094
Latest member
teemeren

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