Results 1 to 3 of 3
  1. #1
    azhar2006's Avatar
    azhar2006 is offline Expert
    Windows 7 32bit Access 2007
    Join Date
    Mar 2012
    Posts
    528

    convert functions Excel to access

    How to convert these functions from Excel, to access
    =(INDEX(Baremes!$B$5:$R$21;F4;2))*45

    =(INDEX(Baremes!$B$5:$R$21;IF($D$7=1;$F$7;$F$4);$F$5+3))*45

    =IF($F$4>=9;($N$4+$N$5)*$N$7/100;0)

    =IF($H$10=1;($N$17+$N$18)*10/100;0)



    =IF($N$7>0;INDEX('95-28 et 95-300'!$E$2:$E$224;$E$9);0)

    =(VLOOKUP($N$3;AncienBareme;12))*INDEX(Divers!$K$2:$K$11;$H$9;1)/100

    =(K3+K4)*(INDEX(Grades!$F$3:$F$74;$D$2;1))/100

    =($K$3+$K$4)*(INDEX(Grades!$G$3:$G$74;$D$2;1))/100

    =IF($D$4=2;0;IF($D$6=1;0;IF($H$6=0;5.5;800)))

    =((ROUND(K23/10;0))*10)*9/100

    =(IF(N23>120000;29500+(N23-120000)*0.35;IF(N23>30000;2500+(N23-30000)*0.3;IF(N23>28750;2250+(N23-28750)*0.2;IF(N23>22500;1500+(N23-22500)*0.12;IF(N23>15000;(N23-15000)*0.2;0))))))

    =IF(OR(N7=35;N7=45;N7=80;N7=90);1;0)

    =(((VLOOKUP(IF($D$7=1;$N$6;$N$3);AncienBareme;13))*(VLOOKUP(IF($D$7=1;$N$6;$N$3);AncienBareme;(IF($F$5>10;10;$F$5))+14))))

    =IF(AND($F$4>=9;$F$4<=11);INDEX('95-28 et 95-300'!$D$2:$D$224;$E$9;1);0)

    =INDEX(Divers!$K$2:$K$11;$H$9;1)

    =VALUE((LEFT($H$7;LEN($H$7)-2)&RIGHT($H$7)))

    =(((VLOOKUP(IF($D$7=1;$N$6;$N$3);AncienBareme;13))*(VLOOKUP(IF($D$7=1;$N$6;$N$3);AncienBareme;(IF($F$5>10;10;$F$5))+14))))

    =VALUE((LEFT($F$6;LEN($F$6)-2)&RIGHT($F$6)))

    =((ROUND(K23/10;0))*10)*9/100

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    Most will be done in a query using the field,

    [field]* 45

    iif([field]>=9,[field2]/100,0)

    *Note: vlookups are not used....you link to the lookup table via matching fields.

  3. #3
    azhar2006's Avatar
    azhar2006 is offline Expert
    Windows 7 32bit Access 2007
    Join Date
    Mar 2012
    Posts
    528
    Thank you very much ranman

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

Similar Threads

  1. Convert Excel VBA to work in Access for Chart
    By tennisbuck in forum Programming
    Replies: 4
    Last Post: 12-26-2013, 12:12 AM
  2. Convert Excel to Access
    By wkenddad in forum Database Design
    Replies: 1
    Last Post: 04-19-2012, 01:55 AM
  3. Replies: 5
    Last Post: 12-14-2011, 08:24 AM
  4. Writing Access functions
    By new2access123 in forum Programming
    Replies: 5
    Last Post: 02-06-2010, 10:47 PM
  5. Convert Excel Macro to Access Query
    By crownedzero in forum Queries
    Replies: 1
    Last Post: 06-22-2009, 02:13 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