Repeat formula until is not Zero`

darkybot

New Member
Joined
Feb 13, 2022
Messages
16
Office Version
  1. 365
Platform
  1. Windows
H i everyone, I'm a noob regarding excel and I have a question for you more advance users that maybe you can help me out:

I created this as a test buy in which articles will constantly change every time the document is open, or they press F9. To do this, the following formula is in "Random" sheet in A# column:

=INDEX(Some!A2:A18,RANDBETWEEN(1,ROWS(Some!A2:A18)),1)

It gathers info from "Some" sheet, and it works well. Now what I want is to avoid showing articles with stock zero, and this is the part that I don't know how to do it.

Any help, I appreciate it!

Thanks.
 

Attachments

  • excel_small.png
    excel_small.png
    10 KB · Views: 4
As this is now a totally different question, you need to start a new thread. Thanks
 
Upvote 0

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Hi @Fluff, the last part of this post was locations, so I'm asking something that can be easily replied here since is part of the same original post, creating new ones each time something is asked I see it as such a waste of forum space. (I created a new one to comply, just wanted to give you my feedback regarding that)
Following this post: How can I show all locations without repeating it, and is there a way to sort this array by location from smallest to biggest?

Thanks! :)
 
Upvote 0
Thanks for starting a new thread. (y)
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,864
Members
449,052
Latest member
Fuddy_Duddy

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