JenniferMurphy
Well-known Member
- Joined
- Jul 23, 2011
- Messages
- 2,759
- Office Version
- 365
- Platform
- Windows
I'm working on a UDF to convert Moneyline odds into percentages. I created a 2-column table with a bunch of Moneyline odds in Column 1 and manually entered the correct percentages in Column 2. I added Column 3 that calls my UDF to generate the correct percentages based on the values in Column 1. I added Column 4 to compare Columns 2 & 3 to ensure that the UDF is working.
My problem is that the UDF also checks for invalid Moneyline odds and returns a #VALUE! error. I put the text string “#VALUE!” in Column 2, but the compare expression returns a value error not true or false. This is the compare expression I'm using. Is there one that will work?
And here's an except of the table.
My problem is that the UDF also checks for invalid Moneyline odds and returns a #VALUE! error. I put the text string “#VALUE!” in Column 2, but the compare expression returns a value error not true or false. This is the compare expression I'm using. Is there one that will work?
VBA Code:
=Table1[@[UDF]]=Table1[@[Manual]]
And here's an except of the table.