V
V
vladislavik952021-12-06 15:23:44
Google Sheets
vladislavik95, 2021-12-06 15:23:44

How to make a randomness formula?

I need to use VLOOKUP in line F to find post ID 1, but this formula always selects the very first option for post ID 1 -1212. And I need the formula to select, for example, each of the posts from the first plate, and that post ID 1 is not duplicated.
That is, if it is duplicated, then the formula does not work. Or random somehow?
Can this be done somehow?

61adffdb55aeb334123398.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2021-12-06
@ForestAndGarden

In Google Sheets, use the FILTER function .

G
Grigory Boev, 2021-12-06
@ProgrammerForever

1)
This formula will return all the data for the filter:
=FILTER(ДАННЫЕ;УСЛОВИЕ_ФИЛЬТРАЦИИ)
2)
This is how you can take a random one from the set:

=ИНДЕКС(ДАННЫЕп1;ОКРУГЛВВЕРХ(СЛЧИС()*ЧСТРОК(ДАННЫЕп1)))

Demo table

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question