Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I am trying to figure out a way to find an average of a range of cells, most
of which contain an "x" (between quotes) character. For instance, I have several metrics like 12.2x, 10.9x, and 8.9x, for EBIT line items. This will eliminate the x ind get me results in ColumnB: =LEFT(A27,LEN(A27)-1) But I wanted to try to do it without using a helper column. This CSE function will get me the average of a range with zeros and N/A stuff: =AVERAGE(IF(ISNUMBER(B27:B42),B27:B42)) I wanted to combine everything into one single cell, if possible. I guess the first function can't be used on an array; that's pretty much the problem. Is there a workaround? Thanks, Ryan--- -- Ryan--- If this information was helpful, please indicate this by clicking ''Yes''. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
With values in column A:
=AVERAGE(--SUBSTITUTE(A1:A100,"x","")) This is an array function that must e entered with CNTRL-SHFT-ENTER rather than just the ENTER key. -- Gary''s Student - gsnu200844 "ryguy7272" wrote: I am trying to figure out a way to find an average of a range of cells, most of which contain an "x" (between quotes) character. For instance, I have several metrics like 12.2x, 10.9x, and 8.9x, for EBIT line items. This will eliminate the x ind get me results in ColumnB: =LEFT(A27,LEN(A27)-1) But I wanted to try to do it without using a helper column. This CSE function will get me the average of a range with zeros and N/A stuff: =AVERAGE(IF(ISNUMBER(B27:B42),B27:B42)) I wanted to combine everything into one single cell, if possible. I guess the first function can't be used on an array; that's pretty much the problem. Is there a workaround? Thanks, Ryan--- -- Ryan--- If this information was helpful, please indicate this by clicking ''Yes''. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks GS! There is actually a few "x" things and a couple "NA" things
hanging out in the range. I tried this: =AVERAGE(--SUBSTITUTE(--SUBSTITUTE(A25:A40,"x",""),"NA","")) To no avail. Any other ideas? Thanks, Ryan--- -- Ryan--- If this information was helpful, please indicate this by clicking ''Yes''. "Gary''s Student" wrote: With values in column A: =AVERAGE(--SUBSTITUTE(A1:A100,"x","")) This is an array function that must e entered with CNTRL-SHFT-ENTER rather than just the ENTER key. -- Gary''s Student - gsnu200844 "ryguy7272" wrote: I am trying to figure out a way to find an average of a range of cells, most of which contain an "x" (between quotes) character. For instance, I have several metrics like 12.2x, 10.9x, and 8.9x, for EBIT line items. This will eliminate the x ind get me results in ColumnB: =LEFT(A27,LEN(A27)-1) But I wanted to try to do it without using a helper column. This CSE function will get me the average of a range with zeros and N/A stuff: =AVERAGE(IF(ISNUMBER(B27:B42),B27:B42)) I wanted to combine everything into one single cell, if possible. I guess the first function can't be used on an array; that's pretty much the problem. Is there a workaround? Thanks, Ryan--- -- Ryan--- If this information was helpful, please indicate this by clicking ''Yes''. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=AVERAGE(IF(A25:A40="NA","",SUBSTITUTE(A25:A40,"x" ,)*1))
this is an array formula so CTRL+SHIFT+ENTER this formula rather than just use Enter On 8 Kwi, 18:24, ryguy7272 wrote: Thanks GS! *There is actually a few "x" things and a couple "NA" things hanging out in the range. *I tried this: =AVERAGE(--SUBSTITUTE(--SUBSTITUTE(A25:A40,"x",""),"NA","")) To no avail. Any other ideas? Thanks, Ryan--- -- Ryan--- If this information was helpful, please indicate this by clicking ''Yes''.. "Gary''s Student" wrote: With values in column A: =AVERAGE(--SUBSTITUTE(A1:A100,"x","")) This is an array function that must e entered with CNTRL-SHFT-ENTER rather than just the ENTER key. -- Gary''s Student - gsnu200844 "ryguy7272" wrote: I am trying to figure out a way to find an average of a range of cells, most of which contain an "x" (between quotes) character. *For instance, I have several metrics like 12.2x, 10.9x, and 8.9x, for EBIT line items. This will eliminate the x ind get me results in ColumnB: =LEFT(A27,LEN(A27)-1) But I wanted to try to do it without using a helper column. * This CSE function will get me the average of a range with zeros and N/A stuff: =AVERAGE(IF(ISNUMBER(B27:B42),B27:B42)) I wanted to combine everything into one single cell, if possible. *I guess the first function can't be used on an array; that's pretty much the problem. *Is there a workaround? Thanks, Ryan--- -- Ryan--- If this information was helpful, please indicate this by clicking ''Yes''.- Ukryj cytowany tekst - - Pokaż cytowany tekst - |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
If it is a true #N/A error, then we will combine our solutions:
=AVERAGE(IF(ISNUMBER(--SUBSTITUTE(A1:A100,"x","")),--SUBSTITUTE(A1:A100,"x",""))) Still an array formula. -- Gary''s Student - gsnu200844 "ryguy7272" wrote: Thanks GS! There is actually a few "x" things and a couple "NA" things hanging out in the range. I tried this: =AVERAGE(--SUBSTITUTE(--SUBSTITUTE(A25:A40,"x",""),"NA","")) To no avail. Any other ideas? Thanks, Ryan--- -- Ryan--- If this information was helpful, please indicate this by clicking ''Yes''. "Gary''s Student" wrote: With values in column A: =AVERAGE(--SUBSTITUTE(A1:A100,"x","")) This is an array function that must e entered with CNTRL-SHFT-ENTER rather than just the ENTER key. -- Gary''s Student - gsnu200844 "ryguy7272" wrote: I am trying to figure out a way to find an average of a range of cells, most of which contain an "x" (between quotes) character. For instance, I have several metrics like 12.2x, 10.9x, and 8.9x, for EBIT line items. This will eliminate the x ind get me results in ColumnB: =LEFT(A27,LEN(A27)-1) But I wanted to try to do it without using a helper column. This CSE function will get me the average of a range with zeros and N/A stuff: =AVERAGE(IF(ISNUMBER(B27:B42),B27:B42)) I wanted to combine everything into one single cell, if possible. I guess the first function can't be used on an array; that's pretty much the problem. Is there a workaround? Thanks, Ryan--- -- Ryan--- If this information was helpful, please indicate this by clicking ''Yes''. |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try an array formula** like this:
=AVERAGE(--SUBSTITUTE(A1:A3,"x","")) The "x" is case sensitive. ** array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT key then hit ENTER. -- Biff Microsoft Excel MVP "ryguy7272" wrote in message ... I am trying to figure out a way to find an average of a range of cells, most of which contain an "x" (between quotes) character. For instance, I have several metrics like 12.2x, 10.9x, and 8.9x, for EBIT line items. This will eliminate the x ind get me results in ColumnB: =LEFT(A27,LEN(A27)-1) But I wanted to try to do it without using a helper column. This CSE function will get me the average of a range with zeros and N/A stuff: =AVERAGE(IF(ISNUMBER(B27:B42),B27:B42)) I wanted to combine everything into one single cell, if possible. I guess the first function can't be used on an array; that's pretty much the problem. Is there a workaround? Thanks, Ryan--- -- Ryan--- If this information was helpful, please indicate this by clicking ''Yes''. |
#7
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
It wasnt a calculated N/A; someone just stuck NA in a few cells. Jareks
solution worked. I thank you very much!! One more thingI wrapped everything in Text, as such: =TEXT(AVERAGE(IF(A25:A40="NA","",SUBSTITUTE(A25:A4 0,"x",)*1)),"#.##")&"x" Only did that because those calculated average results we giving me way more precision than what I need for my business. Thanks everyone!! Ryan-- -- Ryan--- If this information was helpful, please indicate this by clicking ''Yes''. "T. Valko" wrote: Try an array formula** like this: =AVERAGE(--SUBSTITUTE(A1:A3,"x","")) The "x" is case sensitive. ** array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT key then hit ENTER. -- Biff Microsoft Excel MVP "ryguy7272" wrote in message ... I am trying to figure out a way to find an average of a range of cells, most of which contain an "x" (between quotes) character. For instance, I have several metrics like 12.2x, 10.9x, and 8.9x, for EBIT line items. This will eliminate the x ind get me results in ColumnB: =LEFT(A27,LEN(A27)-1) But I wanted to try to do it without using a helper column. This CSE function will get me the average of a range with zeros and N/A stuff: =AVERAGE(IF(ISNUMBER(B27:B42),B27:B42)) I wanted to combine everything into one single cell, if possible. I guess the first function can't be used on an array; that's pretty much the problem. Is there a workaround? Thanks, Ryan--- -- Ryan--- If this information was helpful, please indicate this by clicking ''Yes''. |
#8
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
New request; just a bit different. I have this kind of setup in several cells:
="(-30.5)" This will eliminate the left parentheses: =SUBSTITUTE(AD8,CHAR(40),"") This gets rid of the right: =SUBSTITUTE(AD8,CHAR(41),"") How, in the world, do I put them together, and get an average? I tried this, committed with CSE: =AVERAGE(--SUBSTITUTE(AD8:AD12,CHAR(40),""))--SUBSTITUTE(AD8:AD12,CHAR(41),"") Thanks, Ryan--- -- Ryan--- If this information was helpful, please indicate this by clicking ''Yes''. "ryguy7272" wrote: It wasnt a calculated N/A; someone just stuck NA in a few cells. Jareks solution worked. I thank you very much!! One more thingI wrapped everything in Text, as such: =TEXT(AVERAGE(IF(A25:A40="NA","",SUBSTITUTE(A25:A4 0,"x",)*1)),"#.##")&"x" Only did that because those calculated average results we giving me way more precision than what I need for my business. Thanks everyone!! Ryan-- -- Ryan--- If this information was helpful, please indicate this by clicking ''Yes''. "T. Valko" wrote: Try an array formula** like this: =AVERAGE(--SUBSTITUTE(A1:A3,"x","")) The "x" is case sensitive. ** array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT key then hit ENTER. -- Biff Microsoft Excel MVP "ryguy7272" wrote in message ... I am trying to figure out a way to find an average of a range of cells, most of which contain an "x" (between quotes) character. For instance, I have several metrics like 12.2x, 10.9x, and 8.9x, for EBIT line items. This will eliminate the x ind get me results in ColumnB: =LEFT(A27,LEN(A27)-1) But I wanted to try to do it without using a helper column. This CSE function will get me the average of a range with zeros and N/A stuff: =AVERAGE(IF(ISNUMBER(B27:B42),B27:B42)) I wanted to combine everything into one single cell, if possible. I guess the first function can't be used on an array; that's pretty much the problem. Is there a workaround? Thanks, Ryan--- -- Ryan--- If this information was helpful, please indicate this by clicking ''Yes''. |
#9
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Array entered.
Assuming no empty cells. =AVERAGE(--SUBSTITUTE(SUBSTITUTE(A1:A4,"(",""),")","")) If there might be empty cells: =AVERAGE(IF(A1:A4<"",--SUBSTITUTE(SUBSTITUTE(A1:A4,"(",""),")",""))) -- Biff Microsoft Excel MVP "ryguy7272" wrote in message ... New request; just a bit different. I have this kind of setup in several cells: ="(-30.5)" This will eliminate the left parentheses: =SUBSTITUTE(AD8,CHAR(40),"") This gets rid of the right: =SUBSTITUTE(AD8,CHAR(41),"") How, in the world, do I put them together, and get an average? I tried this, committed with CSE: =AVERAGE(--SUBSTITUTE(AD8:AD12,CHAR(40),""))--SUBSTITUTE(AD8:AD12,CHAR(41),"") Thanks, Ryan--- -- Ryan--- If this information was helpful, please indicate this by clicking ''Yes''. "ryguy7272" wrote: It wasn't a calculated N/A; someone just stuck "NA" in a few cells. Jarek's solution worked. I thank you very much!! One more thing.I wrapped everything in Text, as such: =TEXT(AVERAGE(IF(A25:A40="NA","",SUBSTITUTE(A25:A4 0,"x",)*1)),"#.##")&"x" Only did that because those calculated average results we giving me way more precision than what I need for my business. Thanks everyone!! Ryan-- -- Ryan--- If this information was helpful, please indicate this by clicking ''Yes''. "T. Valko" wrote: Try an array formula** like this: =AVERAGE(--SUBSTITUTE(A1:A3,"x","")) The "x" is case sensitive. ** array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT key then hit ENTER. -- Biff Microsoft Excel MVP "ryguy7272" wrote in message ... I am trying to figure out a way to find an average of a range of cells, most of which contain an "x" (between quotes) character. For instance, I have several metrics like 12.2x, 10.9x, and 8.9x, for EBIT line items. This will eliminate the x ind get me results in ColumnB: =LEFT(A27,LEN(A27)-1) But I wanted to try to do it without using a helper column. This CSE function will get me the average of a range with zeros and N/A stuff: =AVERAGE(IF(ISNUMBER(B27:B42),B27:B42)) I wanted to combine everything into one single cell, if possible. I guess the first function can't be used on an array; that's pretty much the problem. Is there a workaround? Thanks, Ryan--- -- Ryan--- If this information was helpful, please indicate this by clicking ''Yes''. |
#10
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Biff, that is amazing! Your functions must take everything before the final
quiote and convert all the stuff to numeric values. Very impressive. I was going about it totally the wrong way. Thanks so much! Ryan---- -- Ryan--- If this information was helpful, please indicate this by clicking ''Yes''. "T. Valko" wrote: Array entered. Assuming no empty cells. =AVERAGE(--SUBSTITUTE(SUBSTITUTE(A1:A4,"(",""),")","")) If there might be empty cells: =AVERAGE(IF(A1:A4<"",--SUBSTITUTE(SUBSTITUTE(A1:A4,"(",""),")",""))) -- Biff Microsoft Excel MVP "ryguy7272" wrote in message ... New request; just a bit different. I have this kind of setup in several cells: ="(-30.5)" This will eliminate the left parentheses: =SUBSTITUTE(AD8,CHAR(40),"") This gets rid of the right: =SUBSTITUTE(AD8,CHAR(41),"") How, in the world, do I put them together, and get an average? I tried this, committed with CSE: =AVERAGE(--SUBSTITUTE(AD8:AD12,CHAR(40),""))--SUBSTITUTE(AD8:AD12,CHAR(41),"") Thanks, Ryan--- -- Ryan--- If this information was helpful, please indicate this by clicking ''Yes''. "ryguy7272" wrote: It wasn't a calculated N/A; someone just stuck "NA" in a few cells. Jarek's solution worked. I thank you very much!! One more thing.I wrapped everything in Text, as such: =TEXT(AVERAGE(IF(A25:A40="NA","",SUBSTITUTE(A25:A4 0,"x",)*1)),"#.##")&"x" Only did that because those calculated average results we giving me way more precision than what I need for my business. Thanks everyone!! Ryan-- -- Ryan--- If this information was helpful, please indicate this by clicking ''Yes''. "T. Valko" wrote: Try an array formula** like this: =AVERAGE(--SUBSTITUTE(A1:A3,"x","")) The "x" is case sensitive. ** array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT key then hit ENTER. -- Biff Microsoft Excel MVP "ryguy7272" wrote in message ... I am trying to figure out a way to find an average of a range of cells, most of which contain an "x" (between quotes) character. For instance, I have several metrics like 12.2x, 10.9x, and 8.9x, for EBIT line items. This will eliminate the x ind get me results in ColumnB: =LEFT(A27,LEN(A27)-1) But I wanted to try to do it without using a helper column. This CSE function will get me the average of a range with zeros and N/A stuff: =AVERAGE(IF(ISNUMBER(B27:B42),B27:B42)) I wanted to combine everything into one single cell, if possible. I guess the first function can't be used on an array; that's pretty much the problem. Is there a workaround? Thanks, Ryan--- -- Ryan--- If this information was helpful, please indicate this by clicking ''Yes''. |
#11
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
welcome
thanks! On 8 Kwi, 20:08, ryguy7272 wrote: It wasnt a calculated N/A; someone just stuck NA in a few cells. *Jareks solution worked. *I thank you very much!! *One more thingI wrapped everything in Text, as such: =TEXT(AVERAGE(IF(A25:A40="NA","",SUBSTITUTE(A25:A4 0,"x",)*1)),"#.##")&"x" Only did that because those calculated average results we giving me way more precision than what I need for my business. Thanks everyone!! Ryan-- -- Ryan--- If this information was helpful, please indicate this by clicking ''Yes''.. "T. Valko" wrote: Try an array formula** like this: =AVERAGE(--SUBSTITUTE(A1:A3,"x","")) The "x" is case sensitive. ** array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT key then hit ENTER. -- Biff Microsoft Excel MVP "ryguy7272" wrote in message ... I am trying to figure out a way to find an average of a range of cells, most of which contain an "x" (between quotes) character. *For instance, I have several metrics like 12.2x, 10.9x, and 8.9x, for EBIT line items. This will eliminate the x ind get me results in ColumnB: =LEFT(A27,LEN(A27)-1) But I wanted to try to do it without using a helper column. This CSE function will get me the average of a range with zeros and N/A stuff: =AVERAGE(IF(ISNUMBER(B27:B42),B27:B42)) I wanted to combine everything into one single cell, if possible. *I guess the first function can't be used on an array; that's pretty much the problem. Is there a workaround? Thanks, Ryan--- -- Ryan--- If this information was helpful, please indicate this by clicking ''Yes''.- Ukryj cytowany tekst - - Pokaż cytowany tekst - |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how do i calculate the average of 30+ cells over multiple workshee | Excel Worksheet Functions | |||
average range of cells with zero and blanks | Excel Discussion (Misc queries) | |||
Average Selected Cells From a Range | Excel Worksheet Functions | |||
How do I calculate an average of the last 5 nonblank cells in a row? | Excel Worksheet Functions | |||
formula to calculate the average of a range basing on condition | Excel Worksheet Functions |