Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / November 2007

Tip: Looking for answers? Try searching our database.

Count AND arguments

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jeff - 01 Nov 2007 23:43 GMT
Hi there,

I want to count the number of times two seperate things occure in
diffrent rows.

I want to count the times "v" appears in rows C7:AG7 AND the times
someting is put in rows e7:eG7.

So "something" in range e7:eg7 and "v" in range C7:AG7 should increase
the number that is put in A1.

How can I do this?

Thanks
Pete_UK - 01 Nov 2007 23:48 GMT
Are you sure your cell and range references are correct? They seem to
overlap and are not the same size.

Pete

> Hi there,
>
[quoted text clipped - 10 lines]
>
> Thanks
Jeff - 01 Nov 2007 23:59 GMT
Woops,

Let say C6:AG6 should contain "v"
AND
C12:AG12 should not be empty

And I need to know how many times this appears

Thanks for pointing me out!

>Are you sure your cell and range references are correct? They seem to
>overlap and are not the same size.
[quoted text clipped - 15 lines]
>>
>> Thanks
Peo Sjoblom - 02 Nov 2007 00:11 GMT
=SUMPRODUCT(--(C6:AG6="v"),--(C12:AG12<>""))

Signature

Regards,

Peo Sjoblom

> Woops,
>
[quoted text clipped - 25 lines]
>>>
>>> Thanks
Jeff - 02 Nov 2007 00:25 GMT
>=SUMPRODUCT(--(C6:AG6="v"),--(C12:AG12<>""))

Oh great!!
It works...

Can you please explain what the "--" means?

Thank you very much!!!!
Pete_UK - 02 Nov 2007 01:00 GMT
Basically, it converts TRUEs and FALSEs to 1s and 0s, so they can be
used arithmetically. Here is a more detailed description:

http://www.mcgimpsey.com/excel/formulae/doubleneg.html

Hope this helps.

Pete

> >=SUMPRODUCT(--(C6:AG6="v"),--(C12:AG12<>""))
>
[quoted text clipped - 4 lines]
>
> Thank you very much!!!!
Jeff - 02 Nov 2007 01:27 GMT
Thanks again, you're a great help!!

>>=SUMPRODUCT(--(C6:AG6="v"),--(C12:AG12<>""))
>
[quoted text clipped - 4 lines]
>
>Thank you very much!!!!
Pete_UK - 02 Nov 2007 02:11 GMT
You're welcome, Jeff - thanks for the feedback.

Pete

> Thanks again, you're a great help!!
>
[quoted text clipped - 6 lines]
>>
>>Thank you very much!!!!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.