VLOOKUP Query

JohnPoole

Active Member
Joined
Jun 9, 2005
Messages
267
Hi all, I'm looking for some help to randomize a VLOOKUP. I have four values on column A, all Zero. Column B has values A,B,C,D The VLOOKUP returns A as this is the first matched value.

The VLOOKUP correctly returns the result of the minimum value in column A:
=VLOOKUP(MIN(A1:A4),A1:B4,2,0)

Is there a way to randomly to return any of the other possible results which are joint lowest, rather than just returning the first matched value everytime?

Any help appreciated,

Thanks,

John
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
This array formula is a bit convoluted, might work for you

Code:
=INDEX(B1:B6,LARGE(IF(A1:A6=MIN(A1:A6),ROW(A1:A6)),RANDBETWEEN(1,COUNTIF(A1:A6,MIN(A1:A6)))))
 
Upvote 0
I should add I also tried entering as an array formula with CTRL+Shift+Enter and got #N/A .
 
Upvote 0
PLEASE HELP ME FIX THIS
 

Attachments

  • 455 SCREENSHOT.JPG
    455 SCREENSHOT.JPG
    200.4 KB · Views: 7
Upvote 0
@Sumanmathew
Please start a new thread for your question, When you do, you will need to give a lot more information. Thanks
 
Upvote 0

Forum statistics

Threads
1,214,627
Messages
6,120,610
Members
448,973
Latest member
ChristineC

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