Hello,
From "The New Dictionary of Cultural Literacy, Third Edition. 2002.":
Close, but no cigar =
Even a near miss is still a miss. The saying probably originated with carnival contests in which a cigar was the prize for hitting a target.
Is it helpful?