Forum Discussion

Nick2000's avatar
Nick2000
Copper Contributor
Mar 19, 2024

Extracting round values from an interval

Hello everybody, I'm really strugling with something here, I'm not even sure if the title is correct 40.5 - 67.5 Let's say I have these 2 values (40.5 is A1 and 67.5 is C1), I'm trying to f...
  • Detlef_Lewin's avatar
    Mar 19, 2024

    Nick2000 

    Try this:

    =LET(
    a,SEQUENCE(ROUNDDOWN(C1,0)-ROUNDUP(A1,0)+1,,ROUNDUP(A1,0),1),
    b,MOD(a,5)=0,
    d,FILTER(a,b),
    d)

Resources