PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 5.00 average.

=Count([Category] if it is equal to 'Task ID'"), how do I fix thi

 
 
Iram
Guest
Posts: n/a
 
      2nd Apr 2010
Hello,

I have a report with the fields "Date","Catgory","Amount" and I have grouped
it by "Date" by day.

For each day I need to Count the indivudual categories. There are
approximately 22 categories that the records are categorized by. So I figured
that I would need to create 22 text box's each with their own variation of
their category such as somthing along the lines of the below but I need your
help. Please. How do I fix these? I will be placing these text boxes in the
"Date Footer". Thanks.

=Count([Category] if it is equal to 'Task ID'")
=Count([Category] if it is equal to 'ASAP'")
=Count([Category] if it is equal to 'Pay Type'")
=Sum([Amount]= if Category = RLSD)
etc...



Thanks.
Iram/mcp

 
Reply With Quote
 
 
 
 
Iram
Guest
Posts: n/a
 
      2nd Apr 2010
Marshal, your code worked for the first three examples I gave but now I need
a peice of code for this example...

=Sum([Amount]= if Category = RLSD)

I need to add up all of the money in the "Amount" field if the Category is
RLSD.

Can you help me with this too?


Thanks.
Iram



"Marshall Barton" wrote:

> Iram wrote:
> >I have a report with the fields "Date","Catgory","Amount" and I have grouped
> >it by "Date" by day.
> >
> >For each day I need to Count the indivudual categories. There are
> >approximately 22 categories that the records are categorized by. So I figured
> >that I would need to create 22 text box's each with their own variation of
> >their category such as somthing along the lines of the below but I need your
> >help. Please. How do I fix these? I will be placing these text boxes in the
> >"Date Footer".
> >
> >=Count([Category] if it is equal to 'Task ID'")
> >=Count([Category] if it is equal to 'ASAP'")
> >=Count([Category] if it is equal to 'Pay Type'")
> >=Sum([Amount]= if Category = RLSD)
> >etc...

>
> That's kind of ugly, but try this kind of thing:
>
> =Abs(Sum(Category = 'Task ID'))
>
> Personally, I think I would create a query to count the
> categories by date. THen create a little report with the
> new query as its record source and drio in into your
> report's date footer. At least this way you will pick up
> any new categories without having to modify your report.
>
> --
> Marsh
> MVP [MS Access]
> .
>

 
Reply With Quote
 
Duane Hookom
Guest
Posts: n/a
 
      2nd Apr 2010
=Sum([Amount] * Abs([Category] = "RLSD"))

--
Duane Hookom
MS Access MVP


"Iram" <(E-Mail Removed)> wrote in message
news:58878A59-0FCA-4665-B84B-(E-Mail Removed)...
> Marshal, your code worked for the first three examples I gave but now I
> need
> a peice of code for this example...
>
> =Sum([Amount]= if Category = RLSD)
>
> I need to add up all of the money in the "Amount" field if the Category is
> RLSD.
>
> Can you help me with this too?
>
>
> Thanks.
> Iram
>
>
>
> "Marshall Barton" wrote:
>
>> Iram wrote:
>> >I have a report with the fields "Date","Catgory","Amount" and I have
>> >grouped
>> >it by "Date" by day.
>> >
>> >For each day I need to Count the indivudual categories. There are
>> >approximately 22 categories that the records are categorized by. So I
>> >figured
>> >that I would need to create 22 text box's each with their own variation
>> >of
>> >their category such as somthing along the lines of the below but I need
>> >your
>> >help. Please. How do I fix these? I will be placing these text boxes in
>> >the
>> >"Date Footer".
>> >
>> >=Count([Category] if it is equal to 'Task ID'")
>> >=Count([Category] if it is equal to 'ASAP'")
>> >=Count([Category] if it is equal to 'Pay Type'")
>> >=Sum([Amount]= if Category = RLSD)
>> >etc...

>>
>> That's kind of ugly, but try this kind of thing:
>>
>> =Abs(Sum(Category = 'Task ID'))
>>
>> Personally, I think I would create a query to count the
>> categories by date. THen create a little report with the
>> new query as its record source and drio in into your
>> report's date footer. At least this way you will pick up
>> any new categories without having to modify your report.
>>
>> --
>> Marsh
>> MVP [MS Access]
>> .
>>

 
Reply With Quote
 
Iram
Guest
Posts: n/a
 
      3rd Apr 2010
I love you guys, you guys are the bomb!
Thanks Duane!



Iram

"Duane Hookom" wrote:

> =Sum([Amount] * Abs([Category] = "RLSD"))
>
> --
> Duane Hookom
> MS Access MVP
>
>
> "Iram" <(E-Mail Removed)> wrote in message
> news:58878A59-0FCA-4665-B84B-(E-Mail Removed)...
> > Marshal, your code worked for the first three examples I gave but now I
> > need
> > a peice of code for this example...
> >
> > =Sum([Amount]= if Category = RLSD)
> >
> > I need to add up all of the money in the "Amount" field if the Category is
> > RLSD.
> >
> > Can you help me with this too?
> >
> >
> > Thanks.
> > Iram
> >
> >
> >
> > "Marshall Barton" wrote:
> >
> >> Iram wrote:
> >> >I have a report with the fields "Date","Catgory","Amount" and I have
> >> >grouped
> >> >it by "Date" by day.
> >> >
> >> >For each day I need to Count the indivudual categories. There are
> >> >approximately 22 categories that the records are categorized by. So I
> >> >figured
> >> >that I would need to create 22 text box's each with their own variation
> >> >of
> >> >their category such as somthing along the lines of the below but I need
> >> >your
> >> >help. Please. How do I fix these? I will be placing these text boxes in
> >> >the
> >> >"Date Footer".
> >> >
> >> >=Count([Category] if it is equal to 'Task ID'")
> >> >=Count([Category] if it is equal to 'ASAP'")
> >> >=Count([Category] if it is equal to 'Pay Type'")
> >> >=Sum([Amount]= if Category = RLSD)
> >> >etc...
> >>
> >> That's kind of ugly, but try this kind of thing:
> >>
> >> =Abs(Sum(Category = 'Task ID'))
> >>
> >> Personally, I think I would create a query to count the
> >> categories by date. THen create a little report with the
> >> new query as its record source and drio in into your
> >> report's date footer. At least this way you will pick up
> >> any new categories without having to modify your report.
> >>
> >> --
> >> Marsh
> >> MVP [MS Access]
> >> .
> >>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Count non blanks" if cells don't equal certain values thegymshoe Microsoft Excel Worksheet Functions 6 23rd Jun 2009 08:29 PM
If two cells don't equal each other, notify; if they do equal eachother, do a "sum" rbrown999@gmail.com Microsoft Excel Discussion 4 4th Mar 2009 12:08 AM
Count using 2 conditions, one of which being a "less than or equal to" - URGENT SamGB Microsoft Excel Misc 2 15th Feb 2006 10:35 AM
the "by task" function no longer sorts by category. Howdo I fix? =?Utf-8?B?Q2FybA==?= Microsoft Outlook Discussion 4 21st Nov 2005 04:55 PM
How to print a task lists by category one category to a page on t. =?Utf-8?B?bWNib3Jlbg==?= Microsoft Outlook Discussion 0 1st Mar 2005 05:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:10 AM.