Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have data that looks like this:
WW_Yr OpenDays Sminor Smedium Scritical Sundefined WW01 14 1 0 0 0 WW01 1 0 1 0 0 WW02 15 1 0 0 0 WW02 129 0 0 1 0 WW03 17 0 0 0 0 WW04 13 1 0 0 0 etc. This data starts in cell A1 and goes across to column M and the number of rows can be different. I can have 1 or more records with the same WW_Yr value. The other 5 columns will have either the number "1" or "0". There will only be a "1" in one of the fields and the rest will be "0". I want to create a dynamic table based on this data, with the data starting in cell O3, 4 columns wide and 26 rows. I will add to the the 1st column to the sheet from code, which will have the 26 distinct WW_Yr values from my source data above. The next column needs to be an average of OpenDays for each of the 26 WWW_Yr value where Sminor = 1, or it needs to be a 0 if no records are found to meet this criteria. It will work the same for Smedium, Scritical & Sundefined. Any help on how I can do this averging with these conditions and build out my table would be much appreciated. Thanks, Clint |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Look up Data by Row criteria and column criteria | Excel Worksheet Functions | |||
Sum data if 3 criteria are met | Excel Worksheet Functions | |||
Averging non-zero cells only | Excel Worksheet Functions | |||
averging prices real problem | Excel Programming | |||
averging prices real problem | Excel Worksheet Functions |