Showing results for 
Search instead for 
Did you mean: 
New Member

how to display 2 random cells from an excel Table ?



I have a table with 2 columns. I need to display a random cell from the first column and a second cell from the other column.

I have no idea to do so.

I already do the random choice with a formula in excel so I only need to display it but I read that it's impossible. Maybe we can make the random choice inside powerApps.


Best regards,



Okay the problem came from the Onedrive document. I don't know why, but even with a "gallery" style, it doesn't detect anytghing. So i import an excel document instead an excel one saved on Onedrive and it works !!!! 


But one last thing : I also need to refresh it. Because Once a name and a first name appear, It never change anymore. Do you have an Idea ? It will be insane. 

I guess that with a button it's easy to refresh the random draw.




Super User
Super User

Hi @Nicroco7 

To refresh the random record, you would set a variable to random record by adding a button and setting the OnSelect property to the following:


You would then set your label text to


You can then click the button to refresh the random name.

Helpful resources

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (1,313)