Forum Discussion

andrew_jmdata9's avatar
andrew_jmdata9
Copper Contributor
Feb 21, 2019
Solved

Bar length in cell based on value in another cell

Hi, We have a report where a column shows a value, usually between 1 and 200.    We want to have a horizontal bar in the next cell whose length is based on the cell value.   Something like below,...
  • Twifoo's avatar
    Twifoo
    Feb 21, 2019
    Let me correct myself. The formula in B2 should be:
    =REPT(“|”,MIN(A2,99)&
    IF(A2>99,
    “X”&REPT(“|”,A2-100),
    “”)

Resources