Results 1 to 3 of 3
  1. #1
    ashish is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2012
    Posts
    7

    How to search a value previous cell based on formula

    Hello,
    I want to search a previous value in a table from a field if a condition is met. I can do this very easily in MS Excel using the formula: =IF(A2=A1,D1,C2)
    Can someone please help? Any suggestion to do this in MS Access will be highly appreciated.
    PS: The result in the green cell is what I am expecting to see in MS access.
    MO Numb UP Die Die First Die
    7894300 UP00297 GLO805/8 GLO805/8
    7890323 UP04672 GLO1557/2 GLO1557/2
    7890323 UP04672 GLO1557/1 GLO1557/2
    7894299 UP04672 GLO1557/1 GLO1557/1
    7894299 UP04672 GLO1557/2 GLO1557/1
    7894307 UP08921 3-6138/A 3-6138/A


  2. #2
    smithse is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2012
    Posts
    37
    Hi ashish,

    Table sorts would make this a bit difficult. It appears you might be trying to extend functionality of Excel into Access. What exactly does your data store and if you are moving to to Access, there may be a better way to structure your tables.

  3. #3
    ashish is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2012
    Posts
    7
    Hi,
    Thanks for advising about the question I asked. I have searched for this question on many blogs and finally settled down with MS excel file (with formula) and linked with MS Access as a table. I am calling the Excel table with a VBA which clears the contents of the cell and then copy and paste to Excel file which calculates the fields as per the formula. Since the excel file is linke with MS access so Access reads the calculated field to get the required results.
    Hope this helps someone else. Not a ideal solution but Access lacks this feature as it is not a spreadsheet but a database.

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

Similar Threads

  1. Rename cell based on duplicate compound key
    By luckycharms in forum Access
    Replies: 1
    Last Post: 04-23-2012, 06:18 PM
  2. Replies: 1
    Last Post: 04-09-2012, 02:14 PM
  3. Replies: 0
    Last Post: 04-18-2011, 01:01 PM
  4. Replies: 3
    Last Post: 02-02-2011, 08:04 PM
  5. Total based on Formula based on field value
    By cjbuechler in forum Reports
    Replies: 15
    Last Post: 07-10-2009, 09:56 AM

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