Results 1 to 5 of 5
  1. #1
    klvasquez is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2014
    Posts
    2

    Converting Excel Formulas to Access Expressions

    I am trying to convert the following formulas into Access expressions:

    =IF(ROWS($1:1)>MAX(G:G),"-",MATCH(ROWS($1:1)-1,G:G)+1)

    =IF(OR(I2="",I2="-"),"",COUNTIF(I$2:I2,I2))



    =IF(OR($I2="",$I2="-"),"",INDEX(A:A,$I2))

    I tried several times to convert these but the "$1:!" part is where I run into trouble. Any help would be greatly appreciated.

    Thanks in advance.

  2. #2
    Xipooo's Avatar
    Xipooo is offline Sr. Database Developer
    Windows 8 Access 2013
    Join Date
    Jan 2014
    Location
    Arizona
    Posts
    332
    Honestly, this makes no sense at all. Are you trying to make a form? A Table? A report? A Query?

  3. #3
    klvasquez is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2014
    Posts
    2
    My apologies for not being very specific.

    I am trying to accomplish what is covered in this thread on an excel forum. My dataset exceeds the maximum number of cells that Excel can hold so I am trying to do these calculations in Access as a Calculated Field. I am having trouble converting the syntax used in Excel v. Access.

    Any input is appreciated.

  4. #4
    Xipooo's Avatar
    Xipooo is offline Sr. Database Developer
    Windows 8 Access 2013
    Join Date
    Jan 2014
    Location
    Arizona
    Posts
    332
    Access does not hold data in the same way that Excel does. You would have to create tables in a normalized manner which holds the data for you. Then you can run queries against that data to display the information in the manner you wish to view it. You can then use the results of that query to either display it as a form, report, or you can just open the query in a data view. You can also export a query as an Excel spreadsheet.

    There are calculations which can be made to create a field on a table, but 99.9% of the time you want to do calculations in the query, not the table.

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Describe the algorithm in plain English. What exactly are you trying to accomplish? Seems to me that reproducing what happens in the Excel (populating cells down the sheet) would require creating records in Access table. A very very different process.

    Calculated Fields in table are very limited. Many intrinsic functions are not available and custom functions not at all.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. help in converting excel to access
    By Daniel2000 in forum Access
    Replies: 11
    Last Post: 04-25-2013, 01:43 AM
  2. Expressions and formulas
    By kjcochran in forum Access
    Replies: 1
    Last Post: 03-25-2013, 02:19 PM
  3. Replies: 4
    Last Post: 12-17-2012, 01:21 PM
  4. Replies: 1
    Last Post: 08-31-2012, 04:41 AM
  5. Converting to access from Excel
    By Alexpi in forum Database Design
    Replies: 3
    Last Post: 05-24-2011, 02:46 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