Formula in a query

DeeLaine

New Member
Joined
Feb 9, 2007
Messages
25
Gosh I wish formula syntax in Access Queries was the same as excel. Life would be so much easier.

I've tried the help to no avail. The expression builder - well - 'nuff said.

This is what my formula would look like in excel:

=IF(MAX(P5:V5)>=30000000,"yes","no")

I would like to write a formula in an access query that does the same thing.

I just can't seem to crack the code. I tried nesting if statements. Didn't work. I tried an IIf, OR combination.....nope - did something wrong there too, but don't know what.

Can anyone help me? Please?
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

giacomo

Well-known Member
Joined
Feb 20, 2002
Messages
1,796
you need to use an iif & OR combination but you said you tried that already... care to post your non-working expression?

also it seems as if your data is not normalized, this may be the cause of some of your frustration.
 

DeeLaine

New Member
Joined
Feb 9, 2007
Messages
25
Yup - Wouldn't you know it. I kept at the IIF statement and got it to work. Is there an icon for embarrassment?

Anyway - thanks so much for responding - got it to work - no more worries.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,167,958
Messages
5,856,518
Members
431,819
Latest member
hellosunshine

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
Top