Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
petess
 
Posts: n/a
Default Counting entries in 2+ columns

Toppers,

Further to my earlier post, however, I find that I cannot use the formula
you suggest to work with data from ANOTHER worksheet within the same Excel
file... I can still get the answers I need in the same worksheet, but this
would be more elegant.

Petess

  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Counting entries in 2+ columns

You should be able to quite happily

=SUMPRODUCT(--('Other sheet name'!A1:A10="UAE"),--('Other sheet
name'!B1:B10="Construction"))

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"petess" wrote in message
...
Toppers,

Further to my earlier post, however, I find that I cannot use the formula
you suggest to work with data from ANOTHER worksheet within the same Excel
file... I can still get the answers I need in the same worksheet, but

this
would be more elegant.

Petess



  #3   Report Post  
Posted to microsoft.public.excel.misc
Toppers
 
Posts: n/a
Default Counting entries in 2+ columns

This works placed in Sheet2 wth data in Sheet1:

=SUMPRODUCT(--(Sheet1!A1:A10="UAE"),--(Sheet1!B1:B10="Construction"))

(Perhaps you should state your requirements more clearly)

"petess" wrote:

Toppers,

Further to my earlier post, however, I find that I cannot use the formula
you suggest to work with data from ANOTHER worksheet within the same Excel
file... I can still get the answers I need in the same worksheet, but this
would be more elegant.

Petess

  #4   Report Post  
Posted to microsoft.public.excel.misc
petess
 
Posts: n/a
Default Counting entries in 2+ columns

Toppers and Bob,

That's great. But how about selecting the entire column:

=SUMPRODUCT((ALL!B:B="Bahrain")*(ALL!D:D="Power"))

i.e. B:B rather than B2:B457

?

"Bob Phillips" wrote:

You should be able to quite happily

=SUMPRODUCT(--('Other sheet name'!A1:A10="UAE"),--('Other sheet
name'!B1:B10="Construction"))

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"petess" wrote in message
...
Toppers,

Further to my earlier post, however, I find that I cannot use the formula
you suggest to work with data from ANOTHER worksheet within the same Excel
file... I can still get the answers I need in the same worksheet, but

this
would be more elegant.

Petess




  #5   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Counting entries in 2+ columns

No you can't select the entire column. SP works on arrays, and as such is
limited to a defined range. It can be upto 65535 rows, but not the entire
column.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"petess" wrote in message
...
Toppers and Bob,

That's great. But how about selecting the entire column:

=SUMPRODUCT((ALL!B:B="Bahrain")*(ALL!D:D="Power"))

i.e. B:B rather than B2:B457

?

"Bob Phillips" wrote:

You should be able to quite happily

=SUMPRODUCT(--('Other sheet name'!A1:A10="UAE"),--('Other sheet
name'!B1:B10="Construction"))

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"petess" wrote in message
...
Toppers,

Further to my earlier post, however, I find that I cannot use the

formula
you suggest to work with data from ANOTHER worksheet within the same

Excel
file... I can still get the answers I need in the same worksheet, but

this
would be more elegant.

Petess








  #6   Report Post  
Posted to microsoft.public.excel.misc
Toppers
 
Posts: n/a
Default Counting entries in 2+ columns

SUMPRODUCT doesn't allow selection by columns. If you want to do that then
use B1:B65535.

"petess" wrote:

Toppers and Bob,

That's great. But how about selecting the entire column:

=SUMPRODUCT((ALL!B:B="Bahrain")*(ALL!D:D="Power"))

i.e. B:B rather than B2:B457

?

"Bob Phillips" wrote:

You should be able to quite happily

=SUMPRODUCT(--('Other sheet name'!A1:A10="UAE"),--('Other sheet
name'!B1:B10="Construction"))

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"petess" wrote in message
...
Toppers,

Further to my earlier post, however, I find that I cannot use the formula
you suggest to work with data from ANOTHER worksheet within the same Excel
file... I can still get the answers I need in the same worksheet, but

this
would be more elegant.

Petess




  #7   Report Post  
Posted to microsoft.public.excel.misc
petess
 
Posts: n/a
Default Counting entries in 2+ columns

Thanks for your help, guys. Appreciated. Am very impressed!

"Bob Phillips" wrote:

You should be able to quite happily

=SUMPRODUCT(--('Other sheet name'!A1:A10="UAE"),--('Other sheet
name'!B1:B10="Construction"))

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"petess" wrote in message
...
Toppers,

Further to my earlier post, however, I find that I cannot use the formula
you suggest to work with data from ANOTHER worksheet within the same Excel
file... I can still get the answers I need in the same worksheet, but

this
would be more elegant.

Petess




Reply
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
Counting distinct entries based on meeting month & year criteria jennifer Excel Worksheet Functions 3 February 9th 06 01:56 PM
Table to pick out most common entries and count occurences of each Neil Goldwasser Excel Worksheet Functions 4 August 6th 05 09:57 AM
Hidden Columns in Shared Workbooks Rotary Excel Discussion (Misc queries) 1 July 9th 05 12:28 AM
Counting differences in numbers across columns Ted Metro Excel Worksheet Functions 3 March 11th 05 09:50 PM
Counting the Contents of Two Columns Molochi Excel Discussion (Misc queries) 6 December 22nd 04 08:13 PM


All times are GMT +1. The time now is 02:12 PM.

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

About Us

"It's about Microsoft Excel"