Average of a number of fields (1 Viewer)

JamesMcS

Keyboard-Chair Interface
Local time
Today, 08:34
Joined
Sep 7, 2009
Messages
1,819
Thanks APR - VBA solved this one for me last week but your code looks interesting!
 

scubadiver007

Registered User.
Local time
Today, 00:34
Joined
Nov 30, 2010
Messages
317
Hi all - I'm almost certainly being an idiot, but it's been a long week....

I've got 12 fields that I need to take an average from. How do I do this in one field in a query? I get the feeling I'm going to be slapping my forehead and saying "D'oh" in a loud voice in the middle of the office.... I tried (field1+field2....)/12 but there are some zeroes in there which, if possible, I'd like to avoid.

Ta in advance!


To me, that sounds like a simple design issue! :confused:
 

JamesMcS

Keyboard-Chair Interface
Local time
Today, 08:34
Joined
Sep 7, 2009
Messages
1,819
Forgotten I'd started this thread....

Not a design issue at all - I needed average sales, where there were sales, across a number of countries, represented by a number of different fields in the table.

VBA's solution worked perfectly.
 

JamesMcS

Keyboard-Chair Interface
Local time
Today, 08:34
Joined
Sep 7, 2009
Messages
1,819
Thanks, but this thread was solved months ago
 

Users who are viewing this thread

Top Bottom