Data selection, subtotaling, etc. Big question. Big problems. Please help!

asprott

New Member
Joined
Jul 5, 2012
Messages
3
Hi everyone,

Longtime listener first time caller.

I have a couple of tasks that I am trying to complete for my boss. I am trying to rework some data and get some explanatory statistics out of it.

My data set is a time series with 10 variables and about 5800 daily observations.

First: I need to create a new set of only wednesdays for each variable. If wednesday data is not available, I need to select tuesday. I can't seem to write the if statement to save my life. I have created a label column with 0-4 indicating whether an observation is from Monday-Friday.

Second: I need to take the average of each week for each variable and create a new data set of that.

Third: I must pick the each observation from the end of the month. I can get that far, as I could with the first part. My problems start when there is a zero value/no value. How do I get excel to select in that manner.

Fourth: I need to perform the same averaging as question 2, but on the monthly basis. In both cases, I need to drop 0 values from the averages.

I am getting frustrated. I have the data labeled by week of year, where the weeks change, the day of the week. What else could help?

Thank you all very much for your time and input!
 

Some videos you may like

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

asprott

New Member
Joined
Jul 5, 2012
Messages
3
I did, but the file was too large and excel kept running out of memory.

If I can get the file to work, is there a way to select the specific data to paste to a separate sheet?
 

Watch MrExcel Video

Forum statistics

Threads
1,122,576
Messages
5,596,973
Members
414,115
Latest member
SFUser

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top