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_squareCC-ALT-59 LCC
blu_squareCC-ALT-3707AA
blu_squareCC-ALT-3707DD
blu_squareCC-ALT-3740AA
buildingsCC--4032AA
buildingsCC-VIL-4130AA
buildingsCC--2911BB
ylw_circleCC-ASP-3201BB
ylw_circleCC-ASP-2195AA
purple_squareCC-DEI-2791AA
purple_squareCC-DEI-2122AA
purple_squareCC-DEI-1011BB

<tbody>
[TD="align: right"]1500[/TD]

[TD="align: right"]3[/TD]
[TD="align: right"]1500[/TD]

[TD="align: right"]1502[/TD]

[TD="align: right"]2[/TD]

[TD="align: right"]1470[/TD]

[TD="align: right"]30[/TD]

[TD="align: right"]1503[/TD]

[TD="align: right"]3[/TD]

[TD="align: right"]200[/TD]

[TD="align: right"]1500[/TD]

[TD="bgcolor: #ffff00, align: right"]1455[/TD]

[TD="align: right"]45[/TD]

[TD="align: right"]1500[/TD]

[TD="align: right"]335[/TD]
[TD="align: right"]502[/TD]

[TD="align: right"]998[/TD]

[TD="align: right"]675[/TD]
[TD="align: right"]733[/TD]
[TD="align: right"]886[/TD]

[TD="align: right"]614[/TD]

[TD="align: right"]552[/TD]
[TD="align: right"]800[/TD]
[TD="align: right"]706[/TD]
[TD="align: right"]1700[/TD]

[TD="align: right"]200[/TD]

[TD="align: right"]522[/TD]
[TD="align: right"]620[/TD]
[TD="align: right"]746[/TD]
[TD="align: right"]2900[/TD]

[TD="align: right"]1400[/TD]

[TD="align: right"]780[/TD]
[TD="align: right"]716[/TD]
[TD="align: right"]1400[/TD]

[TD="align: right"]100[/TD]

</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

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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