LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,696
Default Count(if) formula help

Noticing one of yours shows

=SUMPRODUCT(--(A2:B1000="country"),--C2:D1000="office type"))

should have been:

=SUMPRODUCT(--(A2:B1000="UK"),--(C2:D1000="service"))

The {} one would indicate an array. Not needed for this issue.

Hoping it was something as simple as that! :-)

"ELP" wrote:

Nope, definitely got the right characters etc. in there. :(

"David Biddulph" wrote:

Perhaps your cells contain something different from "UK" and "service"?
Perhaps you have spaces or other non-printing characters? Look at one of
the cells where you think you have "UK" and see whether =LEN(cell_ref) gives
you 2 or not.
--
David Biddulph

"ELP" wrote in message
...
For some reason, this doesn't work. I just get a 0 returned.

Initially when I tried this formula, I got #NAME, so i added inverted
commas
thus:
=SUMPRODUCT(--(A2:A1000="country"),--(B2:B1000="office type"))
Obviously changing the word "country" to "UK" etc, and "office type" to
"service" etc. to match the list.

Then I took note of your second point about tranges, so changed the
formula
thus:
=SUMPRODUCT(--(A2:B1000="country"),--C2:D1000="office type"))
and then tried a third variation on the same theme thus:
{=SUMPRODUCT(--(A2:A1000=country),--(B2:B1000=office type))}

The only thing that ever gets returned is a big fat 0!

Where am I going wrong?

"Sean Timmons" wrote:

=SUMPRODUCT(--(A2:A1000=country),--(B2:B1000=office type))

Needs to be a trange, not an entire column (Can't type A:A) and both
pieces
must have the same range (2 - 1000 in the above example).

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Count Formula - Count Ticks LittleAnn Excel Discussion (Misc queries) 3 May 8th 23 07:44 PM
Count formula Sue Excel Discussion (Misc queries) 3 June 26th 08 08:54 PM
is there a formula to count something like this.... driller Excel Worksheet Functions 3 July 6th 07 07:16 PM
Trying to construct a count count formula Chris K Excel Discussion (Misc queries) 6 May 26th 07 07:20 PM
Count formula Help... nosaj_enryb Excel Discussion (Misc queries) 3 November 11th 05 10:40 AM


All times are GMT +1. The time now is 05:04 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"