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

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
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
PLEASE HELP ME FIX THIS
 

Attachments

  • 455 SCREENSHOT.JPG
    455 SCREENSHOT.JPG
    200.4 KB · Views: 9
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,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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