RRinTetons
IS-IT--Management
I have a data set with about 10,000 rows of sample data. The system that provided the data doesn't output a 0 row for an instance in which a value wasn't recorded, i jus skips it. I need to fill in the missing sample rows.
Example:
Name Period Value
Fred 0 100
Fred 2 125
Fred 4 115
Fred 6 110
Martha 0 100
Martha 2 125
Martha 6 110
George 0 100
George 2 125
George 4 115
Fred has sample data for 4 periods, numbered 0,2,4,6.
Martha is missing period 4.
George is missing period 6.
Any suggestions on how to get the missing rows filled in?
One thing I've thought of is to extract the unique names and the unique periods and do a cross join containing all possible name/period pairs, then do a lookup into the actual data for data where it exists and supply a 0 where it doesn't. Except that I don't know how to do a cross join in Excel
. I can cobble together a quick and dirty SQL db with two tables and do it that way, I guess.
Any other ideas?
-
Richard Ray
Jackson Hole Mountain Resort
Example:
Name Period Value
Fred 0 100
Fred 2 125
Fred 4 115
Fred 6 110
Martha 0 100
Martha 2 125
Martha 6 110
George 0 100
George 2 125
George 4 115
Fred has sample data for 4 periods, numbered 0,2,4,6.
Martha is missing period 4.
George is missing period 6.
Any suggestions on how to get the missing rows filled in?
One thing I've thought of is to extract the unique names and the unique periods and do a cross join containing all possible name/period pairs, then do a lookup into the actual data for data where it exists and supply a 0 where it doesn't. Except that I don't know how to do a cross join in Excel
Any other ideas?
-
Richard Ray
Jackson Hole Mountain Resort