Convert Excel Formula to access

weldtaha

New Member
Joined
Mar 14, 2016
Messages
1
Hi All,

I never use access but have to create a field in a table with a formula in it. The formula works fine in excel. Does anybody know how to change it to access?

The Excel formula is:

=IF(RET.*Rate<=500,IF(J15>0,N15*L15*0.35*0.3,0),IF(J15>0,N15*L15*0.35*0.25,0))

Best Regards

Thanks
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Welcome to the Board!

In Access, you should create calculated field in Queries, not Tables. Newer version of Access allow you to do some basic calculation right at the table level, but it isn't really advised to do so (it isn't compatible with other database programs).

The formula in your query would look very similar, except use IIF instead of IF.
 
Upvote 0
The J15, N15, L15 references would also have to be field names from the table. As Joe said, once you create the table with the base data, the calculation would normally be done in a query but with some exceptions you might save the results of a calculation in a table. The only common example I know of is storing a price that is the result of a lookup, because it's a value that might change in the future and you want to capture the current price at the moment and keep it for later use.
 
Upvote 0

Forum statistics

Threads
1,221,825
Messages
6,162,166
Members
451,750
Latest member
dofrancis

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