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?
 

Some videos you may like

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

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.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,521
Messages
5,596,652
Members
414,083
Latest member
Mrsash

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