Skip to content

haacs/denormalizingUtilities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

denormalizingUtilities

MS Excel Visual Basic Macro Utilities

Tested in MS Excel 2010

The Problem

The "ids" column of the following table contains a list of ids separated by commas, or line breaks. The contained macros purpose is to create a separate row for each id in that list, i.e. the opposite of normalization, hence the name.

data ids
Foo 1,2
Bar 1
2
John 3
Doe 4,5

The Solution

  • In the first step one has to selct the ids column and execute the replaceLineBreak() macro to replace them with comma.
  • Then one has to select at least one cell in the ids column and execute the denormalize() macro.

The result should look like this:

data ids
Foo 1
Foo 1
Bar 1
Bar 2
John 3
Doe 4
Doe 5
  • To identify datasets that belong together the macro SetKitID checks whether the content of two cells in the selected column above each other have the same content and adds the same kit id to the column next to the selected one.

About

VBA Excel module for denormalizing tables

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published