expression help

A

Amy Cooke

I'm trying to convert this excel expression over to
access. Can anyone help?

=IF(cell#,200000,cell#*.25,if(cell#=200000,50000,if(and
(cell#>200000,cell#<400000.01),500000,if
(cell#>400000,cell#-350000))))/cell#
 
J

JL

=IF(cell#,200000,cell#*.25,if(cell#=200000,50000,if(and
(cell#>200000,cell#<400000.01),500000,if
(cell#>400000,cell#-350000))))/cell#
.

Simply replace "IF" with "IIF" should do the trick.
Of course, "cell#" will be replace with the table field
name. You also have to rewrite the and statement as well.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Queries Based on Query 1
IF and OR question 5
Top n query tie problem... 3
LOOKUP 1
LOOKUP function 0
I'm John, My first post. 0
Advanced Sorting - urgent 0
Need Help with a VBA subroutine 0

Top