+ Reply to Thread
Results 1 to 3 of 3

Thread: Excel formula conversion help

  1. #1
    Registered User
    Join Date
    04-24-2011
    Location
    Oregon
    MS-Off Ver
    Excel 2010
    Posts
    1

    Excel formula conversion help

    i need to convert this to work in an access database.

    =IF(OR(LEFT(G2,3) = "Mac", LEFT(G2,4) = "iMac" ), "North Mac", VLOOKUP(LEFT(L2,2),Calculations!A:B,2,FALSE))

    Basically I am compairing the first three (OR 4) Letters in G2 (Open_Cases.Equipment) and if either match I want to output “North IMAC” to the field (Open_Cases.Campus) and if they don’t match then the VLOOKUP portion I am trying to compare the first two letters of L2 (Open_Cases. EU_Location) to Calculations.Site. If it matches I want to output the corresponding Calculations.Campus to Open_Cases.Campus else output “N/A”.

  2. #2
    Forum Moderator DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Suffolk, UK
    MS-Off Ver
    2002, 2007 & 2010
    Posts
    21,423

    Re: Excel formula conversion help

    This is best placed in the Access Forum and as such will be moved accordingly.

  3. #3
    Valued Forum Contributor alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Lake County, Illinois
    MS-Off Ver
    MS Office 2010, 2007 and 2002
    Posts
    1,155

    Re: Excel formula conversion help

    Please post your db and indicating the fields. It is appears that there is more than one table. Need to see the primary keys and foreign keys to join the tables in order to provide an answer. Where are you trying to do this calculation. In a query or Form? There is no vlookup function in Access, so you must do a query to join tables on a common field. It is not a straight conversion and as a general rule, you should not be doing calculation in tables.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0