best way to use index formula