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

abc
1NameResult
2James2%
3Alex-
score20

<tbody>
</tbody>

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

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

<tbody>
</tbody>

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

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
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
See my last post. :)
 
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,214,985
Messages
6,122,605
Members
449,089
Latest member
Motoracer88

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