20pt Commercial Thread Available @ http://www.excelforum.com/showthread.php?t=944704
The original request below is out of date. Thus, I have provided an update here and in the final post:
Thank you all in advance!
Basically I need 4 formulas that do the following to an array of data similar to the one below.
1. Average all data associated with a column that contains the word "pig" in the heading. Hence, this must average even the column below called "Pigcow."
-Potentially solved with array formula: =AVERAGE(TRANSPOSE(IF(ISNUMBER(SEARCH("pig",B2:F2)),IF(LEN(B3:F5)>0,B3:F5))))
2. Do the same thing as the above formula (i.e. only looking at rows that contain "pig" somewhere in the header) and count all values that are 4 and 5 and divide that number by the number of total values (e.g. 1s, 2s, 3s, 4s, & 5s). Hence giving me the percentage of 4s and 5s in the data.
-Potentially solved with array formula: =SUM(IF(ISNUMBER(SEARCH("pig",B2:F2))*(B3:F5>3),1,0))/SUM(IF(ISNUMBER(SEARCH("pig",B2:F2))*(B3:F5>=1),1,0))
3. Calculate an average like in point 1 but this time only average things where columns contain "pig" within the text (same as before) and intersect with rows that have a label equal to "happy." The look up for the rows does not need to search within the text. The full cell contents will always be what I am looking up (e.g. Happy)
-not solved
4. Do the same thing as point 3 above but this time count things like was request in point 2. Thus, count 4s and 5s where the columns containing "pig" intersect with "happy" rows and divide that by the total number of data points (e.g. 1s, 2s, 3s, 4s, & 5s) contained in the same intersecting spots.
-not solved
I have posted in the formula forum if you are curious to see others partial solutions. My request evolved over a couple days and has not been fully solved.
http://www.excelforum.com/excel-form...55#post3351055
Thank you all for your help. I look forward to a solution!
Please note: The above formulas must properly skip blanks written by another formula that returns a value of "".
col1 col2 col3 col4 col5 col6 sad Pig Pigcow Cow Cow Pigcow Happy 1 3 4 2 5 Sad 4 4 3 1 Happy 5 3 4 5
---------------------------------
Hello everyone,
Can anyone help me create a formula that will reference the entire table below but average only the three columns headed by the letter A? It needs to not count blanks as 0.
My full dataset contains many columns and rows and I would love to be able to use formulas to average just those columns headed by A, B, C, D, etc.
A A A B B B
1 1 1 1 1 9
3 2 8 7
2 4 5 8 8
1 5 2 3 2 0
4 1 4 4 8 7
2 3 2 4 5 4
2 2 1 2 0
Thank you in advance for your help.
-Darwin
Bookmarks