Results 1 to 3 of 3
  1. #1
    Sigzop is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2014
    Location
    DC
    Posts
    5

    haveing trouble translating this into a Access table field

    I want Access to do this equation that works in excel. I was using the expression builder yet cannot get it to replicate. These are both the fields I need converted:




    =IF(AND($D2<G$1,$E2>F$1)=TRUE,($B2*$C2)*IF(AND($D3 <G$1,$D3>F$1)=TRUE,1-($D3-F$1)/30,1)*IF(AND($E4<G$1,$E4>F$1)=TRUE,1-(G$1-$E4)/30,1),0)



    and

    =IF(AND($D3<H$1,$D3>G$1)=TRUE,1-($D3-G$1)/30,1)

  2. #2
    JeffChr is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Feb 2014
    Posts
    82
    Access won't recognize cell references. Those equations will never work in Access.

  3. #3
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    A datasheet in Access MIGHT look like a spreadsheet, but it is a totally different animal.

    The IF statements might be able to be converted from Excel to Access, but it will take a lot of work... and probably some UDFs.

    The main problem is that some of the data is coming from different rows/columns. Access doesn't work that way. Tables in Access have no inherent order, so there is not a "next" row.

    The calculation in Excel has data from 6 different columns and 4 different rows. Being able to describe what the calculation is doing helps a lot.
    What is the column header that is column D? Column E?

    I have done this before. As I said, it is a lot of work and requires a really good understanding of the process.

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

Similar Threads

  1. Replies: 3
    Last Post: 03-21-2014, 04:28 PM
  2. Trouble Searching multivalued field
    By Gr0m in forum Access
    Replies: 4
    Last Post: 03-20-2013, 11:35 AM
  3. Replies: 3
    Last Post: 11-24-2012, 07:33 AM
  4. Replies: 14
    Last Post: 09-13-2012, 01:15 PM
  5. Translating Windows name into Real Name
    By runthis457 in forum Forms
    Replies: 13
    Last Post: 02-14-2011, 06:20 PM

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