SOLVED

Who can explain this to me?

%3CLINGO-SUB%20id%3D%22%5C%26quot%3Blingo-sub-3143928%5C%26quot%3B%22%20slang%3D%22%5C%26quot%3Ben-US%5C%26quot%3B%22%3EWho%20can%20explain%20this%20to%20me%3F%26lt%3B%5C%2Flingo-sub%26gt%3B%3CLINGO-BODY%20id%3D%22%5C%26quot%3Blingo-body-3143928%5C%26quot%3B%22%20slang%3D%22%5C%26quot%3Ben-US%5C%26quot%3B%22%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3EWho%20can%20explain%20this%20to%20me%3F%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3EI%20used%20the%20formula%26nbsp%3B%3DUNIQUE(RANDBETWEEN(9788723527370120%2C%209788723527370990))%3CSPAN%20class%3D%22%5C%26quot%3Blia-inline-image-display-wrapper%22%20lia-image-align-inline%3D%22%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Fgxcuf89792%2F%5C%26quot%3Bhttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F346768i3C8473301B423FFE%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%5C%26quot%3B%22%20role%3D%22%5C%26quot%3Bbutton%5C%26quot%3B%22%20title%3D%22Sk%C3%A6rmbillede%202022-02-09%20163400.png%22%202022-02-09%3D%22%22%20163400.png%3D%22%22%20alt%3D%22Sk%C3%A6rmbillede%202022-02-09%20163400.png%22%20%2F%3E%26lt%3B%5C%2Fspan%26gt%3BDBETWEEN(9788723527370120%2C%209788723527370990))%26lt%3B%5C%2FP%26gt%3B%26lt%3B%5C%2Flingo-body%26gt%3B%3CLINGO-LABS%20id%3D%22%5C%26quot%3Blingo-labs-3143928%5C%26quot%3B%22%20slang%3D%22%5C%26quot%3Ben-US%5C%26quot%3B%22%3E%3CLINGO-LABEL%3EExcel%26lt%3B%5C%2Flingo-label%26gt%3B%3CLINGO-LABEL%3EFormulas%20and%20Functions%26lt%3B%5C%2Flingo-label%26gt%3B%26lt%3B%5C%2Flingo-labs%26gt%3B%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3C%2FLINGO-SUB%3E
Occasional Contributor

 

Who can explain this to me? 

I used the formula =UNIQUE(RANDBETWEEN(9788723527370120, 9788723527370990))Skærmbillede 2022-02-09 163400.pngDBETWEEN(9788723527370120, 9788723527370990))

10 Replies
This number should not have come twice if the range in the Unique formula had been between say A1 to A500. You are using Unique in each cell. That is why they can repeat in the list.
Do you have ant idea on how to solve this? i need a list with unique numbers within this range.
best response confirmed by Ohayonson (Occasional Contributor)
Solution

@Ohayonson 

Let's say you want 100 random numbers, but list only the unique values:

 

=UNIQUE(RANDARRAY(100,1,9788723527370120,9788723527370990,TRUE))

 

Warning: keep in mind that ALL numbers will end in 0 because your numbers have 16 digits but Excel only displays 15 significant digits. Why not generate random numbers between 120 and 990?

@OhayonsonSee attached. You should apply Unique in column B not A.

@jitinm Thank you very much!

The reason why i need this long number is because i need a nubmer which is similar to an isbn nr. with the prefix 9788723527370 but i cam make it shorter so the prefix is 978872352737.
Thank you very much for your time and answer.

I get a spill error when i paste

 

 =UNIQUE(RANDARRAY(100,1,9788723527370120,9788723527370990,TRUE))

in a clean sheet at a1 cell.

 

Am i doing something wrong? 

 

@Hans Vogelaar 

@Ohayonson 

No, it appears to be a bug.

Paste the formula into any other cell - it should work.

After that it should work in A1 too.

@Ohayonson 

That's floating error which could appear could not #SPILL! - Volatile Size (microsoft.com) Maybe considered as bug, but that's how dynamic arrays are designed. 

@Sergei Baklan 

Thanks, Sergei!