No good with Access

Status
Not open for further replies.

latarshac

New Member
Joined
Feb 18, 2004
Messages
37
Office Version
  1. 2019
Platform
  1. Windows
Hello, I have pretty basic access skills, excel is more my thing. Well my excel database has grown too large and complicated to function smoothly without crashing several times a day so I am planning on moving it all to access.

I have severals spreadsheets, all ranging in size from 20mb to 40 in Excel 2007. I am stuck on a query and perhaps am associating the formulas in excel with access.

For the excel worksheet I have formulas that calculate commission based on the product purchased and the amount paid for the product.

So for product AAA

COST -----------Percentage to pay
239-230 --------15%
229-220 --------10%
219-210 --------7.5% .........and so on


I have about 3 different products and each are set up to pay a certain percentage according to the ranges. But then there are 5 others that pay a flat rate no matter how much was paid for the product. There are other stipulations.. such as the customer must be Active and Not-Expired.. etc. The formula that I use in Excel to show this is below


I would like to show the same thing that is below in a query... I know this is alot but any advice would be appreciated.


=IFERROR(IF(AND(F11="BONUS",H4571="EXPIRED"),SUM(N11:P11),IF(OR(E11="NOT-ACTIVE",E11="CHANGED",D11="EXPIRED",D11="PAID IN FULL",D11="REMOVED"),0,IF(OR(ISNUMBER(FIND({"ORANGE","APPLE","PEAR"},A11))),7,IF(OR(B11="AAA",B11="BBB",B11="CCC"),SUM(H11*I11),IF(OR(B11="DDD",B11="EEE",B11="FFF"),15,IF(B11="GGG",20,IF(B11="HHH",10,))))))),0)<SCRIPT language=JavaScript src="http://www.interq.or.jp/sun/puremis...[/XD][XH][/XH][/XR][/RANGE][/XH][/XR][/RANGE]
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Status
Not open for further replies.

Forum statistics

Threads
1,221,418
Messages
6,159,793
Members
451,589
Latest member
Harold14

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top