Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

creating a SUM, IF, COUNT statement

$
0
0
I am having major problems trying to create either a single or joint statement that would identify a named sales person from a list of other sales person look across at their price column then add (sum) only the totals that sales person has sold along with counting how many vehicles they have sold.

I have tried this

=sum(iif([sales_person]="Jeff",sum([price]) - this does not work so I am trying to see where I have gone wrong before trying to get the count section in even if it requires me to create a new statement.

Please help - my computer may take a flight if I don't get this right.

By the way I might just be stupid and can't see my errors or the logic sorry:eek:

Viewing all articles
Browse latest Browse all 13329

Latest Images

Trending Articles



Latest Images