Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
The best of 5 cells
I have a worksheet that increase once a week. In the last coloumn I want to
find the best value of every second cell in that row. (a,c,e, ...) This figure is a percentage number of the cell next to. The amount of numbers on that row is much more that 5, but I want to pick 5 that are the highest and find the average of them. Today I use the manual way and look for the 5 numbers that are the highest. |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
The best of 5 cells
Hi,
I don't kown where your range ends or which row your using so this assumes Row 1 change M1 in the formula to the last cell you want to include. =AVERAGE(LARGE(MOD(COLUMN(A1:M1),2)*A1:M1,ROW(INDI RECT("1:5")))) 'This is an array formula which must be entered by pressing CTRL+Shift+Enter 'and not just Enter. If you do it correctly then Excel will put curly brackets 'around the formula {}. You can't type these yourself. If you edit the formula 'you must enter it again with CTRL+Shift+Enter. Mike "JanB" wrote: I have a worksheet that increase once a week. In the last coloumn I want to find the best value of every second cell in that row. (a,c,e, ...) This figure is a percentage number of the cell next to. The amount of numbers on that row is much more that 5, but I want to pick 5 that are the highest and find the average of them. Today I use the manual way and look for the 5 numbers that are the highest. |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
The best of 5 cells
I will test this formula.
Suddenly I thought I could move the "answer" column in the front of the row. Then I don't need to insert any new column. JanB "Mike H" wrote: Hi, I don't kown where your range ends or which row your using so this assumes Row 1 change M1 in the formula to the last cell you want to include. =AVERAGE(LARGE(MOD(COLUMN(A1:M1),2)*A1:M1,ROW(INDI RECT("1:5")))) 'This is an array formula which must be entered by pressing CTRL+Shift+Enter 'and not just Enter. If you do it correctly then Excel will put curly brackets 'around the formula {}. You can't type these yourself. If you edit the formula 'you must enter it again with CTRL+Shift+Enter. Mike "JanB" wrote: I have a worksheet that increase once a week. In the last coloumn I want to find the best value of every second cell in that row. (a,c,e, ...) This figure is a percentage number of the cell next to. The amount of numbers on that row is much more that 5, but I want to pick 5 that are the highest and find the average of them. Today I use the manual way and look for the 5 numbers that are the highest. |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
The best of 5 cells
Hi Mike
I found out that your formula would not work since I don't have an American Excel. I have to find the right words in Norwegian Excel Thanks anyway "Mike H" wrote: Hi, I don't kown where your range ends or which row your using so this assumes Row 1 change M1 in the formula to the last cell you want to include. =AVERAGE(LARGE(MOD(COLUMN(A1:M1),2)*A1:M1,ROW(INDI RECT("1:5")))) 'This is an array formula which must be entered by pressing CTRL+Shift+Enter 'and not just Enter. If you do it correctly then Excel will put curly brackets 'around the formula {}. You can't type these yourself. If you edit the formula 'you must enter it again with CTRL+Shift+Enter. Mike "JanB" wrote: I have a worksheet that increase once a week. In the last coloumn I want to find the best value of every second cell in that row. (a,c,e, ...) This figure is a percentage number of the cell next to. The amount of numbers on that row is much more that 5, but I want to pick 5 that are the highest and find the average of them. Today I use the manual way and look for the 5 numbers that are the highest. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel: match two cells in one sheet to two cells in another and return a third cells value | Excel Worksheet Functions | |||
Cells won't change font color or show hi-lighted cells in document | Excel Discussion (Misc queries) | |||
display a range of cells editible cells based on matching date | Excel Worksheet Functions | |||
Setting of input cells as blue font and formula cells as black fon | Excel Discussion (Misc queries) | |||
trying to create an (almost) circular formula between cells and data validated cells with lists | Excel Worksheet Functions |