Saturday, August 30, 2008   
  Search  
 
Register  Login  
Forums  
     Minimize  

Welcome to MeraWindows forums.

Thank you for being at the Microsoft Windows Community Site. You may have to register before posting in forums. It's absolutely free. After registering, you can get all the benefits available to our registered members, you can access our Downloads section, you can participate in contests, etc. You can post in forums in English as well as in Hindi, in fact we encourage you to use Hindi in your posts. If you have any problem with registration or login, please contact us.

     
  


 
  Microsoft Windows Forums  Microsoft Offic...  Microsoft Excel  Data breakup
Previous Previous
 
Next Next
New Post 2/11/2008 9:58 PM
User is offline Kanwaljeet
9 posts
Member


Data breakup 

Hi folks.

I have base Hourly data for production of a unit. I want to analyse it accroding to Year, Month, Summer( june-Sep), Non Summer( Rest of year), Peak( Weekdays: Hours 08-23) offPeak( Weekdays:00-07 and Weekends 08-23 and 00-07: the difference being that production within offpeak weekend hours varies and would need to analyse data for the two buckets of OffPeak).

The data comes in this format:

Date                      Production

1/3/2000 8:00    200

and so on.

For breaking up into years, i have used the Year(Cell Ref) function. For Breaking it into Month, i have used the formula: Vlookup( month(CellRef), DataSet1,2,False) where dataset is in the format:

Month Number      Month Name    Season

1                                  Jan                 non Summer

and so on

Did the same thing for Summer/Non Summer Differenciation. the formula  is Vlookup(Month(CellRef),Dataset1,3,False)

For Hours I used the formula:

IF(OR(VLOOKUP(INT(Basedata cellreference),Dataset2,2,FALSE)="Sat",VLOOKUP(INT(Basedata cellreference),Dataset2,2,FALSE)="sun")=TRUE,IF(AND(HOUR($B57)>7,HOUR($B57)<=23)=TRUE,"2x16","7x8"),IF(AND(HOUR($B57)>7,HOUR($B57)<=23)=TRUE,"5x16","7x8"))

DataSet 2 is like this

Base data                            Day

Int(Basedata)                     Sat

and so on

Finally, the breakup into Peak offpeak is by using the IF logic.

Now i have 65000 Rows base data for each machine( there are 4 machines)

also, DataSet2 is 2900 Rows, Dataset1 is small( 12 rows corresponding to each month)

As you can see, given the amount of data, the Vlookup function becomes too time consuming( not to mention xcel crashes).

Can you suggest a more elegant solution. Remember, I need to have all analysis( Peak, offpeak, summer, non summer, year, 5x16, 7x8, 2x16) on hourly basis.

Thanks!

Kanwaljeet

 

 

 

 
New Post 2/12/2008 12:29 PM
User is offline Argha
12 posts
Member


Re: Data breakup 

Hi Kanwaljeet,

Thanks for asking. I suppose what you need is something like this:

Date                      Production         Year         Month         Season         Day         Hour         Period

6/9/2001 21:00    100                      2001       Jun              Summer       Sat          21             2x16

 

Assuming the basedata to be in columns A and B, use formulae shown below from column C onwards ( I am showing this for Row2 )

column C:  Year:       =YEAR(A2)

column D: Month:     =CHOOSE(MONTH(A2),"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")

column E: Season:   =IF(AND(MONTH(A2)>5,MONTH(A2)<10),"Summer","Non Summer")

column F: Day:           =CHOOSE(WEEKDAY(A2,1),"Sun","Mon","Tue","Wed","Thu","Fri","Sat")

column G: Hour:        =HOUR(A2)

column H: Period:     =IF(HOUR(A2)<8,"7x8",IF(OR(WEEKDAY(A2,1)=1,WEEKDAY(A2,1)=7),"2x16","5x16"))

 

Hope this helps you. In case your query is not satisfied, please revert, we shall try to solve farther.

Regards,
Argha Bagchi

http://www.linkedin.com/in/argha

 
New Post 2/12/2008 8:18 PM
User is offline Kanwaljeet
9 posts
Member


Re: Data breakup 

Thanks Argha!

yeah..thats more or less what i want.

 

Kanwaljeet

 
New Post 2/13/2008 12:29 AM
User is offline Vasu Jain
2072 posts
www.cyberDimensions.blogspot.com
Forum Guru




Re: Data breakup 

Welcome to Forum KanwalJeet


"There are only '10' types of ppl in dis world. Those who understand BINARY and those who dont."
 
Previous Previous
 
Next Next
  Microsoft Windows Forums  Microsoft Offic...  Microsoft Excel  Data breakup
   Get Your Own E-Mail Account @MeraWindows.com Minimize  
New Page 1 New Page 1
Show your cool quotient with @merawindows.com email account