Translate

Showing posts with label Excel. Show all posts
Showing posts with label Excel. Show all posts

Friday, June 7, 2013

Excel - Sequentialy Count The Number Of Repeat Occurances

I a column in Excel I had to put in a sequence number for each matching value in another column. So if my column of values had the series (Red, Red, Blue, Red Blue) then I would end up with (1,2,1,3,2) for the number sequence.

The values that I was sequential numbering were in column D. This is the formula that I used:

=COUNTIF($D$1:D1, D1)

I just entered the formula in the first cell and then filled the remainder of the cells using the fill handle.

Here is a sample of my sequential count in Excel:

Monday, January 16, 2012

MS SQL Import Truncation Error

I was having a problem importing an Excel spreadsheet into SQL Server that I just couldn't figure out.



After many attempts I decided to try importing into MS Access. It worked and it showed me where the errors are!



After fixing the errors I imported the Access table into SQL Server.