Ssd Laptop

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Thursday, 15 September 2011

Data Normalization & Windows 8

Posted on 08:28 by Unknown
Well yesterday morning I believe I was the first downloadee of the publicly released Windows 8 Dev Preview to get it set up on the Asus EP121. Details and video here.

Last night's 'grit' stemmed from a task to import 600+ entries from a hardcopy member directory by hand into MailChimp.

Fortunately, I found the data online- however, it was presented in a very inaccessible fashion... (one big list, impossible to upload directly).

I set out to normalize the data autonomously with a VBA script... and copied it below. It's been years since I've used VBA, so apologies for the inefficiencies.

If anyone has another way to do this, I'd be very interested.

Sub NormalizeData()

Sheets("Sheet1").Select
Dim ws As Worksheet, iRow As Long, iCol As Long, i As Long, curAdd As Integer, curRow As Integer
Dim isStart As Boolean
isStart = True
curRow = 2
curAdd = 6
iRow = 1

For iRow = 1 To 7886

'first data is company name after view more info
'run if statement- if email then put in email go to next, if memb. type, phone, then paste
'if view then go to next and add one to row number
'if none of the above add it to address, do 3 times
'skip empty cells
'dont paste address data after the 5th data row for each entry/company

If Sheets("Sheet2").Range("A1").Offset(0 + iRow, 0).Value = "" Then

GoTo endWith2
Else

End If


If isStart = True Then
curAdd = 6
activeCustomerCellNum = 1
If Sheets("Sheet2").Range("A1").Offset(0 + iRow, 0).Value = "" Then GoTo endWith2
Sheets("Sheet2").Range("A1").Offset(0 + iRow, 0).Copy
Sheets("Sheet1").Range("A1").Offset(curRow - 1, 0).PasteSpecial
Application.CutCopyMode = False
isStart = False
GoTo endWith
Else
End If

If InStr(1, Sheets("Sheet2").Range("A1").Offset(0 + iRow, 0).Value, "More Info") > 0 Then
isStart = True
curRow = curRow + 1
curAdd = 6
GoTo endWith
Else
End If

If InStr(1, Sheets("Sheet2").Range("A1").Offset(0 + iRow, 0).Value, "Key Staff") > 0 Then
curAdd = 6
GoTo endWith
Else
End If

If InStr(1, Sheets("Sheet2").Range("A1").Offset(0 + iRow, 0).Value, "E-mail") > 0 Then
Sheets("Sheet2").Range("A1").Offset(0 + iRow, 0).Copy
ThisWorkbook.Worksheets(1).Activate
ThisWorkbook.Worksheets(1).Cells(curRow, 2).PasteSpecial
Application.CutCopyMode = False
curAdd = 6
GoTo endWith
Else
End If
If InStr(1, Sheets("Sheet2").Range("A1").Offset(0 + iRow, 0).Value, "Phone") > 0 Then
Sheets("Sheet2").Range("A1").Offset(0 + iRow, 0).Copy
ThisWorkbook.Worksheets(1).Activate
ThisWorkbook.Worksheets(1).Cells(curRow, 3).PasteSpecial
Application.CutCopyMode = False
curAdd = 6
GoTo endWith
Else
End If
If InStr(1, Sheets("Sheet2").Range("A1").Offset(0 + iRow, 0).Value, "Member Type") > 0 Then
Sheets("Sheet2").Range("A1").Offset(0 + iRow, 0).Copy
ThisWorkbook.Worksheets(1).Activate
ThisWorkbook.Worksheets(1).Cells(curRow, 5).PasteSpecial
Application.CutCopyMode = False
curAdd = 6
GoTo endWith
Else
End If

' .Value.Copy
If activeCustomerCellNum < 5 Then
Sheets("Sheet2").Range("A1").Offset(0 + iRow, 0).Copy
ThisWorkbook.Worksheets(1).Activate
ThisWorkbook.Worksheets(1).Cells(curRow, curAdd).PasteSpecial
Application.CutCopyMode = False
curAdd = curAdd + 1


GoTo endWith
Else
End If
curAdd = 6
'.Value = .Value & ", " & curState
endWith:
activeCustomerCellNum = activeCustomerCellNum + 1
endWith2:

Next

End Sub
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • How to upgrade the SSD in your Samsung Series 9 NP900X4C or NP900X3B/C Ultrabook
    -----UPDATE------ If you'd like to see some photos of ultrabook internals (including what the mSata form factor looks like), see some of...
  • Use Milkdrop with Spotify - SOLVED
    So I decided to give Spotify a go a while back, and so far have been enjoying it. However, it really won't do to part ways with the best...
  • How to Fix the Lenovo Yoga Fan Noise & Upgrade SSD // RAM
    ~~Update - 1/13/2013~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ After using the Yoga for almost two months, I am pleased to report that I a...
  • Isn't it about time you switched to a standing desk?
    The idea of switching to a standing desk has plenty of initial appeal, but isn't so easy to realize (it might seem). And the longer you ...
  • LED Light Staff (3d Printed Bo Staff w/LEDs)
    I've been looking for a new form of entertainment at music festivals (aside from the music) and decided Bojutsu might be fun. I came up ...
  • Build a bossy 3D Printer Cave #ikeahacks
    It started with a desire to reduce the noise and insulate the heat generated by my Replicator, but as techneesh grew, I found the need to h...
  • How to Make Pebble Watch Control Spotify on Android Using Bluetooth!
    I just got my Pebble watch today - which is awesome. I've been wanting an e-ink bluetooth bridge to my phone for a while now and when I ...
  • Predatorothology
    I'm in episode 3 of Hemlock Grove and got curious about the term 'predatorothology'. Then Google told me there were literally 0 ...
  • Scallion Pancakes!
    I really enjoyed living in San Francisco (albeit not as much as Ann Arbor, but that's a tale for a different blog), however, there was o...
  • I can't believe the Lenovo Yoga is still the best machine! How to fix the intermittent keyboard and mouse randomly stopping working bug
    (for why the Yoga is the best, see my original post, here ). Also be sure to pick up a stand dock to use/dock the yoga in portrait orientat...

Categories

  • 3d printing
  • 8gb ram
  • 8gb upgrade ram
  • aero snap
  • allgood
  • asana
  • bass head
  • bluetooth spotify
  • bo staff
  • bojutsu
  • bonnaroo
  • control spotify pebble
  • davincisnightmare
  • diy bo staff
  • electric forest
  • fix fan noise lenovo yoga
  • fix spotify for windows hotkeys
  • fix yoga fan noise
  • fix yoga keyboard stopping working
  • gmail
  • hacking
  • how to wall mount a computer
  • ikeahacks
  • keyboard mouse bug
  • led juggling balls
  • led staff
  • led toys
  • lenovo yoga
  • lenovo yoga fan noise
  • light-up juggling balls
  • makerbot
  • mba
  • music festival
  • normal window behavior spotify
  • np900x3b
  • np900x4c
  • pebble
  • pebble android
  • pebble bluetooth
  • pebble spotify
  • pebble watch
  • productivity
  • ram upgrade
  • rave gear
  • replicator
  • rothbury
  • samsung
  • samsung series 9
  • samsung ultrabook
  • sd slot
  • series 9
  • series 9 2012
  • share gmail with another page
  • solidoodle
  • spotify windows snap
  • ss9
  • task management
  • techneesh
  • thingiverse
  • ultrabook
  • upgrade samsung series 9
  • upgrade ssd
  • upgrade ssd yoga
  • upgrade yoga ram
  • wall mounted pc
  • wall-mounted computer
  • windows snap-to
  • workflowy
  • yoga fan noise
  • yoga grinding
  • yoga making noise
  • yoga pcie

Blog Archive

  • ►  2013 (7)
    • ►  October (1)
    • ►  May (2)
    • ►  April (1)
    • ►  February (3)
  • ►  2012 (19)
    • ►  November (2)
    • ►  October (2)
    • ►  September (1)
    • ►  July (3)
    • ►  June (1)
    • ►  May (3)
    • ►  April (6)
    • ►  March (1)
  • ▼  2011 (4)
    • ►  November (1)
    • ▼  September (3)
      • Droid Bionic Optimizations - Extended Bat. Wireles...
      • Data Normalization & Windows 8
      • puzzletime
Powered by Blogger.

About Me

Unknown
View my complete profile