Forum Discussion
Please Help!!
- Oct 29, 2022
Assuming that you don't want to include CALL in the average:
=AVERAGE(IFERROR(--SUBSTITUTE(SUBSTITUTE(R2:W2,"CALL",""),">",""),""))
This will result in #DIV/0! for a row with all CALL. If you want to suppress that error:
=IFERROR(AVERAGE(IFERROR(--SUBSTITUTE(SUBSTITUTE(R2:W2,"CALL",""),">",""),"")),"")
If you want to count CALL as 0:
=AVERAGE(IFERROR(--SUBSTITUTE(SUBSTITUTE(R2:W2,"CALL",0),">",""),""))
=AVERAGE(--SUBSTITUTE(DONO.csv!R2:W2,">",""))*AND(--SUBSTITUTE(DONO.csv!R2:W2,"CALL","0")) ive obviously done this wrong
below is a sample of the data
CALL CALL CALL CALL CALL CALL
>5 CALL CALL >5 CALL CALL
CALL CALL CALL CALL CALL CALL
CALL CALL CALL CALL CALL CALL
CALL CALL CALL CALL CALL CALL
CALL CALL CALL CALL CALL CALL
>5 CALL CALL CALL >5 CALL
>5 >5 CALL CALL >5 CALL
>5 5 >5 >5 >5 >5
4 4 CALL CALL CALL CALL
CALL CALL CALL CALL CALL CALL
1 CALL CALL CALL 1 CALL
regards mark
Assuming that you don't want to include CALL in the average:
=AVERAGE(IFERROR(--SUBSTITUTE(SUBSTITUTE(R2:W2,"CALL",""),">",""),""))
This will result in #DIV/0! for a row with all CALL. If you want to suppress that error:
=IFERROR(AVERAGE(IFERROR(--SUBSTITUTE(SUBSTITUTE(R2:W2,"CALL",""),">",""),"")),"")
If you want to count CALL as 0:
=AVERAGE(IFERROR(--SUBSTITUTE(SUBSTITUTE(R2:W2,"CALL",0),">",""),""))
- NZViPeROct 29, 2022Copper Contributorperfect mate
altered it slightly to get the data from the other workbook
=AVERAGE(IFERROR(--SUBSTITUTE(SUBSTITUTE(DONO.csv!R12145:W12145,"CALL",0),">",""),""))
is there away to take the answer and for anything with decimal places after the first number round it up i.e. 1,3333333 rounded to 2 and 0.345333 rounded to 1- HansVogelaarOct 29, 2022MVP
Like this:
=ROUNDUP(AVERAGE(IFERROR(--SUBSTITUTE(SUBSTITUTE(DONO.csv!R12145:W12145,"CALL",0),">",""),"")),0)
- NZViPeROct 30, 2022Copper Contributorthankyou so much for your help I really appreciate it