calculation help

Imran Azam

Board Regular
Joined
Mar 15, 2011
Messages
103
Hi Guys

i have the table below with some results the score seems to be incorrect i am not sure if its my formula

[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]a[/TD]
[TD]b[/TD]
[TD]c[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Name[/TD]
[TD]Result[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]James[/TD]
[TD]2%[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Alex[/TD]
[TD]-[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]score[/TD]
[TD]20[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

the formula i use to get the result are as follow for both james and Alex

If(IFERROR(COUNTIFS('Data'!$AC:$AC,"James",' Data'!$V:$V,"Sold",'Win Rate Data'!$S:$S,">=01/05/2019",'Win Rate Data'!$S:$S,"<01/06/2019")/(COUNTIFS('Data'!'Data'!$AC:$AC,"James",'Data'!$V:$V,"Open")"-"))

because there was no data for alex it returns -

The formula i am using for the score is as follow

[TABLE="width: 500"]
<tbody>[TR]
[TD]=IF(B2>0.2,10,2)+IF(B3>0.1,10,0)[/TD]
[/TR]
</tbody>[/TABLE]

for some reason it is coming up with the total 20 rather than 10, the issue is it is recording 10 for alex result which is "-"

does anyone know why this is happening?

how can i fix this?

thank for any help
 
Last edited by a moderator:

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
It's recognising any character in the cell as ">0.1", so rather than "-" you would be better using "0" - Alternatively you could add a "" instead of "-" to show a blank instead of - or 0
 
Upvote 0
All text ("-*" in this case) is greater than any number, so you'll need to either test for "" separately before the numeric test, or actually return 0 but format the cell to show "-" instead of 0.
 
Upvote 0
Thank for you reply i dont want to show a 0 there i need it blank so i will try "" lets see if that works thanks for your help
 
Upvote 0
"" would still be treated as greater than any number. I suggest you just return 0 and format the cells to display "-" or whatever you need.
 
Upvote 0
when i try the "" i still have the same issue

All text ("-*" in this case) is greater than any number, so you'll need to either test for "" separately before the numeric test, or actually return 0 but format the cell to show "-" instead of 0.
 
Upvote 0
Then you'll need a separate test like this:

=IF(B2="-",0,IF(B2>0.2,10,2))+IF(B3="-",0,IF(B3>0.1,10,0))
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,771
Members
452,353
Latest member
strainu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top