94mustang
Board Regular
- Joined
- Dec 13, 2011
- Messages
- 133
- Office Version
- 365
- 2019
- Platform
- Windows
Hello Excel Forum Team,
I am using the desktop client version of Excel (Microsoft 365 MSO Version 2303). I am needing to calculate the Median across multiple worksheets which exclude zeros or text. I realized that the Median is NOT removing the zeros or text from the other worksheets. As you can see in my post, I am using the Index/Match function to calculate the Median. The other thing I noticed was that the median will not calculate unless all worksheets are filled in. How can the Median function be written so that I can calculate the matching identifier to the other worksheets while excluding the zeros or text in the cells. My company has disabled macros so I cannot seem to figure out how to post a "mini-sheet" using XL2BB. I do have it as an add-in, but it will not let me select a range. See screenshot below. I will do my best to provide the formula in the Score column. Formula is below the screenshot.
A further note, all the risks and opportunities will be copied to all the worksheets, and the unique Identifier will stay with the same row (record) of information. Each row will have a unique identifier number associated with based on the selection of the Value Proposition and Risk/Opportunity columns.
The formulas below are in a summary sheet which is the screenshot above.
B:B Col
=IF(OR(F3="",G3=""),"",CONCATENATE(LEFT(F3,1),LEFT(G3,1)))
C:C Col
=IF(B3="","",CONCATENATE(B3," - ",TEXT(COUNTIF($B$3:B3,B3),"000")))
H:H Col
=IFERROR(MEDIAN(
INDEX(Assoc01!$L$3:$L$201,MATCH(C3,Assoc01!$C$3:$C$201,0)),
INDEX(Assoc02!$L$3:$L$201,MATCH(C3,Assoc02!$C$3:$C$201,0)),
INDEX(Assoc03!$L$3:$L$201,MATCH(C3,Assoc03!$C$3:$C$201,0)),
INDEX(Assoc04!$L$3:$L$201,MATCH(C3,Assoc04!$C$3:$C$201,0)),
INDEX(Assoc05!$L$3:$L$201,MATCH(C3,Assoc05!$C$3:$C$201,0)),
INDEX(Assoc06!$L$3:$L$201,MATCH(C3,Assoc06!$C$3:$C$201,0)),
INDEX(Assoc07!$L$3:$L$201,MATCH(C3,Assoc07!$C$3:$C$201,0)),
INDEX(Assoc08!$L$3:$L$201,MATCH(C3,Assoc08!$C$3:$C$201,0)),
INDEX(Assoc09!$L$3:$L$201,MATCH(C3,Assoc09!$C$3:$C$201,0)),
INDEX(Assoc10!$L$3:$L$201,MATCH(C3,Assoc10!$C$3:$C$201,0))),"")
Basically, if each sheet (Assoc01, Assoc02, etc) has a value (col L: Score), then I want the value to be included in the median, otherwise, exclude empty cells, zeros, or text. Below is a visual of the "Assoc01" worksheet.
I am using the desktop client version of Excel (Microsoft 365 MSO Version 2303). I am needing to calculate the Median across multiple worksheets which exclude zeros or text. I realized that the Median is NOT removing the zeros or text from the other worksheets. As you can see in my post, I am using the Index/Match function to calculate the Median. The other thing I noticed was that the median will not calculate unless all worksheets are filled in. How can the Median function be written so that I can calculate the matching identifier to the other worksheets while excluding the zeros or text in the cells. My company has disabled macros so I cannot seem to figure out how to post a "mini-sheet" using XL2BB. I do have it as an add-in, but it will not let me select a range. See screenshot below. I will do my best to provide the formula in the Score column. Formula is below the screenshot.
A further note, all the risks and opportunities will be copied to all the worksheets, and the unique Identifier will stay with the same row (record) of information. Each row will have a unique identifier number associated with based on the selection of the Value Proposition and Risk/Opportunity columns.
The formulas below are in a summary sheet which is the screenshot above.
B:B Col
=IF(OR(F3="",G3=""),"",CONCATENATE(LEFT(F3,1),LEFT(G3,1)))
C:C Col
=IF(B3="","",CONCATENATE(B3," - ",TEXT(COUNTIF($B$3:B3,B3),"000")))
H:H Col
=IFERROR(MEDIAN(
INDEX(Assoc01!$L$3:$L$201,MATCH(C3,Assoc01!$C$3:$C$201,0)),
INDEX(Assoc02!$L$3:$L$201,MATCH(C3,Assoc02!$C$3:$C$201,0)),
INDEX(Assoc03!$L$3:$L$201,MATCH(C3,Assoc03!$C$3:$C$201,0)),
INDEX(Assoc04!$L$3:$L$201,MATCH(C3,Assoc04!$C$3:$C$201,0)),
INDEX(Assoc05!$L$3:$L$201,MATCH(C3,Assoc05!$C$3:$C$201,0)),
INDEX(Assoc06!$L$3:$L$201,MATCH(C3,Assoc06!$C$3:$C$201,0)),
INDEX(Assoc07!$L$3:$L$201,MATCH(C3,Assoc07!$C$3:$C$201,0)),
INDEX(Assoc08!$L$3:$L$201,MATCH(C3,Assoc08!$C$3:$C$201,0)),
INDEX(Assoc09!$L$3:$L$201,MATCH(C3,Assoc09!$C$3:$C$201,0)),
INDEX(Assoc10!$L$3:$L$201,MATCH(C3,Assoc10!$C$3:$C$201,0))),"")
Basically, if each sheet (Assoc01, Assoc02, etc) has a value (col L: Score), then I want the value to be included in the median, otherwise, exclude empty cells, zeros, or text. Below is a visual of the "Assoc01" worksheet.