Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
OZDOC1050
 
Posts: n/a
Default COUNT ACROSS SEVERAL PAGES

=COUNTIF(A:Z!B335:B343,B22)

When using this to count between several sheets I return an error, but cant
work out where I am going wrong. any help would be great

Pete

--
(][ THIS EMAIL HAS BEEN SCANNED BY NORTON ANTIVIRUS ][)


  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

One way

=SUMPRODUCT(COUNTIF(INDIRECT("'"&MySheets&"'!B335: B343"),B22))


where MySheets is a named range with a list of all worksheet names
(insertnamedefine) or you can use the range reference itself like H1:H26
(if you use the 26 sheet names), note that each sheet name that you want
included has to be there

--
Regards,

Peo Sjoblom

(No private emails please)


"OZDOC1050" wrote in message
...
=COUNTIF(A:Z!B335:B343,B22)

When using this to count between several sheets I return an error, but
cant work out where I am going wrong. any help would be great

Pete

--
(][ THIS EMAIL HAS BEEN SCANNED BY NORTON ANTIVIRUS ][)


  #3   Report Post  
OZDOC1050
 
Posts: n/a
Default

Thanks Peo,
but I cant get that to work ? im probably doing
something wrong ?

I will explain a little more if I can

=SUM(A:Z!E336)

I am building an order form and have a macro that inserts new sheets (
between sheets a and z ) these then need to total in the sub master order
form and the number of sheets it needs to total is a variable,

I could use the above option to sum all of these but have multiple and
variable second layer sub order forms which will total to a master, so in
between a and z I may have 3 reps each with multiple order forms that relate
to them.

each page has in cell c7 the owner of the sub order form ( name of the sub
master order form ) so I need the above sum to work but also reference cell
c7 to see if it matches and if so add to the sum.

thanks for any help you can give

Pete
--
(][ THIS EMAIL HAS BEEN SCANNED BY NORTON ANTIVIRUS ][)
"Peo Sjoblom" wrote in message
...
One way

=SUMPRODUCT(COUNTIF(INDIRECT("'"&MySheets&"'!B335: B343"),B22))


where MySheets is a named range with a list of all worksheet names
(insertnamedefine) or you can use the range reference itself like H1:H26
(if you use the 26 sheet names), note that each sheet name that you want
included has to be there

--
Regards,

Peo Sjoblom

(No private emails please)


"OZDOC1050" wrote in message
...
=COUNTIF(A:Z!B335:B343,B22)

When using this to count between several sheets I return an error, but
cant work out where I am going wrong. any help would be great

Pete

--
(][ THIS EMAIL HAS BEEN SCANNED BY NORTON ANTIVIRUS ][)




  #4   Report Post  
KL
 
Posts: n/a
Default

Hi,

Try this one:

=SUMPRODUCT(COUNTIF(INDIRECT(CHAR(ROW(INDIRECT("65 :90")))&"!B335:B343"),B22))

Regards,
KL


"OZDOC1050" wrote in message
...
=COUNTIF(A:Z!B335:B343,B22)

When using this to count between several sheets I return an error, but
cant work out where I am going wrong. any help would be great

Pete

--
(][ THIS EMAIL HAS BEEN SCANNED BY NORTON ANTIVIRUS ][)



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
Count Position of Filtered TEXT cells in a column Sam via OfficeKB.com Excel Worksheet Functions 8 May 18th 05 04:23 AM
Count Position of Filtered TEXT cells in a column Sam via OfficeKB.com Excel Worksheet Functions 0 May 15th 05 08:14 PM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
SUMPRODUCT Formula to Count Row of data Below Matched Criteria Sam via OfficeKB.com Excel Worksheet Functions 8 February 3rd 05 01:37 AM
How do I delete pages? Sara Excel Discussion (Misc queries) 5 December 8th 04 01:25 AM


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

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"