Formula to match and rank with an if statement

sandman85

New Member
Joined
Apr 4, 2012
Messages
23
Not sure what I'm trying to do will work. I have been able to return values using LARGE function and gets the rest of the values associated with the number from the data sheet. I now want to add a condition to the formula to only return values that match another criteria.

RankDate RevenueOrders P/HBest SaleStaff AvailabilityPerformance Rating
18/06/201511880.75133.15100.00Optimal
213/05/201711570.70117.69100.00Sub Optimal
312/05/201711550.70123.68100.00Optimal
411/05/201711360.70120.38100.00Optimal
514/05/201711340.68115.1898.40Sub Optimal
616/05/201711310.68115.11100.00Sub Optimal
715/05/201711290.68114.66100.00Sub Optimal
810/05/201711290.68116.6798.26Sub Optimal
917/05/201711210.68116.19100.00Sub Optimal
1018/05/201711190.68119.16100.00Sub Optimal

<colgroup><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>

I've been using the following formula to return and rank the revenue value and then adjusting it to return the corresponding date, order p/h, best sale, staff availability and performance rating.
=INDEX(Data!$D$2:$D$886,MATCH(LARGE(Data!$D$2:$D$886,$B4),Data!$D$2:$D$886,0))
I have tried to add an if statement to only return and rank values that have an optimal performance rating and can't figure it out!

Any help would be greatly appreciated.

Thanks.

Sandy
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Upvote 0
Thanks - I will try and further refine this with the info in the blog.
Mess won't bother me, I'll just hide it :)
You are awesome.
 
Upvote 0

Forum statistics

Threads
1,216,361
Messages
6,130,180
Members
449,563
Latest member
Suz0718

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