close, but no cigar
📖 generalMeaning
To be very near to success but ultimately fail; to almost achieve something.
Literal Meaning
You were almost successful, but didn't win the prize (a cigar was often a prize in fairground games).
Example
“He tried to guess the exact number, and he was close, but no cigar.”