title: Find last digits with IF
body: <p>I have lots of cells in the spreadsheet that contains the whole year, date and stock prices, but I only need the dates from 25th of the last month till the 5th of this month.How can I write a function to do that?  For example if the cells are like this in the column:   </p>
  
  <pre><code>19900101  
  19900102 
  19900103
  19900104
  19900105 
  .  
  .  
  19900125
  19900126  
  19900127  
  19900128
  19900129
  19900130
  19900131
  </code></pre>
  
  <p>I want it to show only days <code>(1,2,3,4,5,25,26,27,28,29,30,31)</code> with the date format.
  The date shows in the text format and I've tried format cell to change it but it doesn't work.</p>