Hi,
I have a weight conversion formula in excel which looks at the values in two different cells and provides a result in a third cell.
I could really do with this 'conversion' happening in a query in Access based on values within two fields which are in the same table (I have Access 2010).
Can someone help me please?
The table is called "Dove" and the two fields that contain the data used for my conversion are called "Wt" (which is numeric) and "App" (which is text).
The formula from excel is...
=IF(A3=0,"?",IF(NOT(ISBLANK(B3)), IF(A3<112,,QUOTIENT(A3,112)),QUOTIENT( A3,112))&IF(NOT(ISBLANK(B3)),CHOOSE(MOD(QUOTIENT(A 3-QUOTIENT(A3,112)*112,28),7)+1,"","¼","½","¾")&"cwt ","-""IENT(A3-QUOTIENT(A3,112)*112,28)&"-"&MOD(A3,28)))
... where cell A3 is the "Wt" and B3 is "App"
FYI... This formula converts a single Lbs figure to old fashioned cwts-qtrs-lbs. The "Wt" is Lbs, and the "App" is either blank if the Wt value is exact, or populated "app" if the Wt is approx.
Here's hoping!
Gareth
I have a weight conversion formula in excel which looks at the values in two different cells and provides a result in a third cell.
I could really do with this 'conversion' happening in a query in Access based on values within two fields which are in the same table (I have Access 2010).
Can someone help me please?
The table is called "Dove" and the two fields that contain the data used for my conversion are called "Wt" (which is numeric) and "App" (which is text).
The formula from excel is...
=IF(A3=0,"?",IF(NOT(ISBLANK(B3)), IF(A3<112,,QUOTIENT(A3,112)),QUOTIENT( A3,112))&IF(NOT(ISBLANK(B3)),CHOOSE(MOD(QUOTIENT(A 3-QUOTIENT(A3,112)*112,28),7)+1,"","¼","½","¾")&"cwt ","-""IENT(A3-QUOTIENT(A3,112)*112,28)&"-"&MOD(A3,28)))
... where cell A3 is the "Wt" and B3 is "App"
FYI... This formula converts a single Lbs figure to old fashioned cwts-qtrs-lbs. The "Wt" is Lbs, and the "App" is either blank if the Wt value is exact, or populated "app" if the Wt is approx.
Here's hoping!
Gareth