sweetmetrics
New Member
- Joined
- Apr 29, 2011
- Messages
- 22
Happy Friday everyone. So, I am hitting my head on the wall trying to figure this out and could use some help because I need to save what little brain cells I have left to do the rest of my work today.
I have a data set that stores the date in YYYYMM format in one column and the sale amount of a transaction in another column. The data set can average tens of thousands of rows.
Data Set Example 1:
201104, 50.00
201104, 25.00
201105, 10.00
201105, 40.00
201105, 30.00
201106, 40.00
I need to process this into a new blank data set of 5 columns where each row is one month in the same format as above and the 4 columns to the right of the first column represent dollar ranges e.g. 0-25, 25-50, 50-75, 75+. The objective being a count of records that fall within a dollar range for the corresponding month.
Data Set Example 2 (Desired Finished Output):
Date, Range 1, Range 2, Range 3, Range 4
201104, 1, 0, 1, 0
201105, 1, 2, 0, 0
201106, 0, 1, 0, 0
I can do this fairly easily with the FREQUENCY function with a small data set, but I can't figure out how to do it very fast for the larger data set where I
can do a look up of the date in Data Set Example 2 and only count the corresponding date rows in Data Set Example 1 and then copy that down for all months in Data Set Example 2.
Does that make sense or have I already lost too many brain cells?
Is there a fast way to do this for a lot of records in Excel?
Sincerely,
Shilo
I have a data set that stores the date in YYYYMM format in one column and the sale amount of a transaction in another column. The data set can average tens of thousands of rows.
Data Set Example 1:
201104, 50.00
201104, 25.00
201105, 10.00
201105, 40.00
201105, 30.00
201106, 40.00
I need to process this into a new blank data set of 5 columns where each row is one month in the same format as above and the 4 columns to the right of the first column represent dollar ranges e.g. 0-25, 25-50, 50-75, 75+. The objective being a count of records that fall within a dollar range for the corresponding month.
Data Set Example 2 (Desired Finished Output):
Date, Range 1, Range 2, Range 3, Range 4
201104, 1, 0, 1, 0
201105, 1, 2, 0, 0
201106, 0, 1, 0, 0
I can do this fairly easily with the FREQUENCY function with a small data set, but I can't figure out how to do it very fast for the larger data set where I
can do a look up of the date in Data Set Example 2 and only count the corresponding date rows in Data Set Example 1 and then copy that down for all months in Data Set Example 2.
Does that make sense or have I already lost too many brain cells?
Is there a fast way to do this for a lot of records in Excel?
Sincerely,
Shilo