N/A throwing out P&L calculations

honkin

Active Member
Joined
Mar 20, 2012
Messages
374
Office Version
  1. 2016
Platform
  1. MacOS
I have a sheet which tallies profit and loss in football matches. it works pretty well except for one thing. Some matches simply have no data for particular metrics; Over or Under 0.5 Goals as an example.

The cells which have no odds data come to me with N/A in them and it is throwing my calculations out.

So here is what I have

=IF(AU7265<>"",IF(H7265>0,(AU7265-1)*1,-1),"0")

It basically checks if cell AU is blank and if not, performs the calculation. The problem is that every now and then, the cell in AU has N/A instead of a number and the result shows then as #VALUE!. This throws out any sum calculations on that column

How is it possible to include the ability to account for N/A in cell AU and simply output the result as a zero? I assume it will be something like adding IF(AU7265="N/A","0",""). Just unsure exactly where to put it so it does not affect anything else. I have tried inputting it in various locations, but get too many arguments entered when I do. I'm sure it will be some simple error in the syntax, but am not spotting it

Thanks in advance for any help
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Could you try

Excel Formula:
=((H7265>0)*AU7265)-1
 
Upvote 0
Hello!

See if this helps
Excel Formula:
=IFERROR(IF(AU7265<>"",IF(H7265>0,(AU7265-1)*1,-1),"0"),0)
 
Upvote 0
Solution
Hello!

See if this helps
Excel Formula:
=IFERROR(IF(AU7265<>"",IF(H7265>0,(AU7265-1)*1,-1),"0"),0)
cheers hrayani
Apologies for the delay. Yes, that worked a treat
Thanks so much
 
Upvote 0

Forum statistics

Threads
1,214,946
Messages
6,122,401
Members
449,081
Latest member
JAMES KECULAH

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