Results 1 to 6 of 6
  1. #1
    youba14 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2014
    Posts
    10

    Excel formula in Access

    Hello, please help. How can I create these excel formula under Access
    =((C13*3+D13+E13*2+F13*3)/9)*B13
    =(G13+G14+G15+G16+G17+G18+G19+G20+G21+G22)/23






    Here what I try ([MInterro]*3)+([Compo1]+[Compo2]*2)+([Compo3]*3)/9*[Coef]

    Thank you

  2. #2
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Where are you trying to add this formula?
    In a Calculated Field in a Query?

    The plus sign, parentheses, and multiplication all work the same in Access as they do in Excel.
    You should just be able to replace each Excel cell reference with your Access field reference to build a valid function that does the same thing.

  3. #3
    youba14 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2014
    Posts
    10
    in a table calculated field

  4. #4
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    I do not use calculated fields in tables. I think it is a bad thing to do - calculated fields in tables have issues (from what I have read).

    Calculated fields in queries is the way to go.


    Also, be aware that this formula
    ([MInterro]*3)+([Compo1]+[Compo2]*2)+([Compo3]*3)/9*[Coef]

    is NOT the same as
    =((C13*3+D13+E13*2+F13*3)/9 ) *B13

    Follow the parentheses ....

  5. #5
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    I do not use calculated fields in tables. I think it is a bad thing to do - calculated fields in tables have issues (from what I have read).

    Calculated fields in queries is the way to go.
    I agree wholeheartedly!

    See here for some reasons why: http://allenbrowne.com/casu-14.html

  6. #6
    youba14 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2014
    Posts
    10
    thanks to you all. I find the solution following all your advices, here the formula I use : ([MInterro]*3+[Compo1]+[Compo2]*2+[Compo3]*3)/9*[Coef]

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Excel formula to access vba.
    By tonycl69 in forum Programming
    Replies: 2
    Last Post: 10-20-2016, 06:36 AM
  2. Replies: 19
    Last Post: 07-13-2015, 10:15 AM
  3. Replies: 41
    Last Post: 05-29-2015, 02:58 PM
  4. set excel formula from access vba
    By trevor40 in forum Programming
    Replies: 16
    Last Post: 11-26-2014, 07:32 PM
  5. How to use this formula from Excel in Access?
    By jset818 in forum Queries
    Replies: 11
    Last Post: 10-16-2014, 03:32 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums