Godders199
Active Member
- Joined
- Mar 2, 2017
- Messages
- 313
- Office Version
- 2013
Hello, i have a long formula, that displays the number and percentage in the same cell, however currently it is calculating the % incorrectly
=IFERROR(COUNTIFS(Appeal!$C:$C,"*FDMA*",Appeal!$D:$D,">="&MI!$E$2,Appeal!$D:$D,"<="&MI!$G$2,Appeal!$H:$H,"suitable")+COUNTIFS(Appeal!$C:$C,"*HSBCMA*",Appeal!$D:$D,">="&MI!$E$2,Appeal!$D:$D,"<="&MI!$G$2,Appeal!$H:$H,"Suitable")+COUNTIFS(Appeal!$C:$C,"*MSBMA*",Appeal!$D:$D,">="&MI!$E$2,Appeal!$D:$D,"<="&MI!$G$2,Appeal!$H:$H,"suitable")+COUNTIFS(Appeal!$C:$C,"*MPM*",Appeal!$D:$D,">="&MI!$E$2,Appeal!$D:$D,"<="&MI!$G$2,Appeal!$H:$H,"suitable")&"("&TEXT((COUNTIFS(Appeal!$C:$C,"*fdma*",Appeal!$D:$D,">="&MI!$E$2,Appeal!$D:$D,"<="&MI!$G$2,Appeal!$H:$H,"suitable")+COUNTIFS(Appeal!$C:$C,"*HSBCMA*",Appeal!$D:$D,">="&MI!$E$2,Appeal!$D:$D,"<="&MI!$G$2,Appeal!$H:$H,"Suitable")+COUNTIFS(Appeal!$C:$C,"*MSBMA*",Appeal!$D:$D,">="&MI!$E$2,Appeal!$D:$D,"<="&MI!$G$2,Appeal!$H:$H,"suitable")+COUNTIFS(Appeal!$C:$C,"*MPM*",Appeal!$D:$D,">="&MI!$E$2,Appeal!$D:$D,"<="&MI!$G$2,Appeal!$H:$H,"suitable")/$E58),"0.0%")&")","-(-)")
I have split the countifs out and the count figure comes to 2 and the count for the percentage is also 2..
The figure in E58 is 3 so 2/3 *100 should equal 66.6, but it comes out at 133.33, have checked the source of the data and the figures are correct, so presume there is something wrong somewhere in the formula.
If anyone can look through it and help me it would be much appreciated, been looking at it for hours .
=IFERROR(COUNTIFS(Appeal!$C:$C,"*FDMA*",Appeal!$D:$D,">="&MI!$E$2,Appeal!$D:$D,"<="&MI!$G$2,Appeal!$H:$H,"suitable")+COUNTIFS(Appeal!$C:$C,"*HSBCMA*",Appeal!$D:$D,">="&MI!$E$2,Appeal!$D:$D,"<="&MI!$G$2,Appeal!$H:$H,"Suitable")+COUNTIFS(Appeal!$C:$C,"*MSBMA*",Appeal!$D:$D,">="&MI!$E$2,Appeal!$D:$D,"<="&MI!$G$2,Appeal!$H:$H,"suitable")+COUNTIFS(Appeal!$C:$C,"*MPM*",Appeal!$D:$D,">="&MI!$E$2,Appeal!$D:$D,"<="&MI!$G$2,Appeal!$H:$H,"suitable")&"("&TEXT((COUNTIFS(Appeal!$C:$C,"*fdma*",Appeal!$D:$D,">="&MI!$E$2,Appeal!$D:$D,"<="&MI!$G$2,Appeal!$H:$H,"suitable")+COUNTIFS(Appeal!$C:$C,"*HSBCMA*",Appeal!$D:$D,">="&MI!$E$2,Appeal!$D:$D,"<="&MI!$G$2,Appeal!$H:$H,"Suitable")+COUNTIFS(Appeal!$C:$C,"*MSBMA*",Appeal!$D:$D,">="&MI!$E$2,Appeal!$D:$D,"<="&MI!$G$2,Appeal!$H:$H,"suitable")+COUNTIFS(Appeal!$C:$C,"*MPM*",Appeal!$D:$D,">="&MI!$E$2,Appeal!$D:$D,"<="&MI!$G$2,Appeal!$H:$H,"suitable")/$E58),"0.0%")&")","-(-)")
I have split the countifs out and the count figure comes to 2 and the count for the percentage is also 2..
The figure in E58 is 3 so 2/3 *100 should equal 66.6, but it comes out at 133.33, have checked the source of the data and the figures are correct, so presume there is something wrong somewhere in the formula.
If anyone can look through it and help me it would be much appreciated, been looking at it for hours .