I want to resuse some of this formula in FrontPage database results to select certain data from my Excel spreadsheet.
I have an MS Excel function which works in excel:
=3443.917*ACOS(COS(RADIANS(90-38.556216))*COS(RADIANS(90-38.3147))+
SIN(RADIANS(90-38.556216))*SIN(RADIANS(90-38.3147))*COS(RADIANS(90.59731-90.1758)))
This formula calculates the distance between 2 sets of lats and longs. I am trying to locate records based on Lat and Longs which are only 25 miles from my home. I know the lat and long for my home and store that in a variable.
The spreadsheet contains lats and longs for many other sites/address and I need to find the ones within a certain distance from my home. I would replace the hardcoded values with the names used in excel for the columns. When I attempt this formula in the FrontPage database results wizard I get an error that the ACOS function isn't recoginzed or supported.
To set this up I registered my excel spreadsheet as my datasource and then selected the wizard to create "database results". I can locate the excel sheet in question and then attempt to customize the result set. I know that the connection is successful because if I have no criteria or SQL selected then I get all of the records returned to me.
How can I found out what functions are supported? and how can I add functions which I need?
I have an MS Excel function which works in excel:
=3443.917*ACOS(COS(RADIANS(90-38.556216))*COS(RADIANS(90-38.3147))+
SIN(RADIANS(90-38.556216))*SIN(RADIANS(90-38.3147))*COS(RADIANS(90.59731-90.1758)))
This formula calculates the distance between 2 sets of lats and longs. I am trying to locate records based on Lat and Longs which are only 25 miles from my home. I know the lat and long for my home and store that in a variable.
The spreadsheet contains lats and longs for many other sites/address and I need to find the ones within a certain distance from my home. I would replace the hardcoded values with the names used in excel for the columns. When I attempt this formula in the FrontPage database results wizard I get an error that the ACOS function isn't recoginzed or supported.
To set this up I registered my excel spreadsheet as my datasource and then selected the wizard to create "database results". I can locate the excel sheet in question and then attempt to customize the result set. I know that the connection is successful because if I have no criteria or SQL selected then I get all of the records returned to me.
How can I found out what functions are supported? and how can I add functions which I need?