Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-15-2017, 09:08 PM
marconexcel marconexcel is offline Use countif across multiple tabs for a column Windows 7 64bit Use countif across multiple tabs for a column Office 2013
Novice
Use countif across multiple tabs for a column
 
Join Date: Feb 2017
Posts: 6
marconexcel is on a distinguished road
Default Use countif across multiple tabs for a column

I would like to use countif across multiple month tabs for an entire column. I can use the following format for sum and it works: =sum(jan:dec!b:b)
I can use countif for one tab and a whole column: =countif(Jan!b:b,"item")
When I use countif across multiple tabs I get a #value! error message: =countif(jan:dec!b:b,"item")
Is there a way to use countif the way I am trying to use it?
Reply With Quote
  #2  
Old 02-15-2017, 10:38 PM
xor xor is offline Use countif across multiple tabs for a column Windows 10 Use countif across multiple tabs for a column Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,097
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

No.
COUNTIF cannot handle 3D references.

There may be a (quite involved) workaround (though not for whole columns) but it would require more info.
Reply With Quote
  #3  
Old 02-16-2017, 05:40 AM
jeffreybrown jeffreybrown is offline Use countif across multiple tabs for a column Windows Vista Use countif across multiple tabs for a column Office 2007
Expert
 
Join Date: Apr 2016
Posts: 673
jeffreybrown has a spectacular aura aboutjeffreybrown has a spectacular aura about
Default

See how this works for you...

=SUMPRODUCT(COUNTIF(INDIRECT("'"&MySheets&"'!B:B") ,"Item"))

List all your tab names and create a named range called MySheets
Reply With Quote
  #4  
Old 02-18-2017, 11:32 AM
marconexcel marconexcel is offline Use countif across multiple tabs for a column Windows 7 64bit Use countif across multiple tabs for a column Office 2013
Novice
Use countif across multiple tabs for a column
 
Join Date: Feb 2017
Posts: 6
marconexcel is on a distinguished road
Default Countif question

Quote:
Originally Posted by xor View Post
No.
COUNTIF cannot handle 3D references.

There may be a (quite involved) workaround (though not for whole columns) but it would require more info.
Thanks for the quick reply. Too bad countif has that limitation. Back to the drawing board.
Reply With Quote
  #5  
Old 02-20-2017, 08:53 PM
marconexcel marconexcel is offline Use countif across multiple tabs for a column Windows 7 64bit Use countif across multiple tabs for a column Office 2013
Novice
Use countif across multiple tabs for a column
 
Join Date: Feb 2017
Posts: 6
marconexcel is on a distinguished road
Default

Quote:
Originally Posted by jeffreybrown View Post
See how this works for you...

=SUMPRODUCT(COUNTIF(INDIRECT("'"&MySheets&"'!B:B") ,"Item"))

List all your tab names and create a named range called MySheets
Thanks for your reply. I've tried several iterations to define a named range with tab names but I can't get the thing to work. I tried =Jan!ec! and ended up with Jan!:jan:dec (which gave me all columns from dec through jan on tab Jan). I tried Jan!,Feb!, through Dec! and got an error message. Is there a trick to listing all twelve tabs (Jan through Dec) in a named range? I would definitely appreciate any help you can give me with this naming convention.
Thanks for your help.
Reply With Quote
  #6  
Old 02-21-2017, 12:24 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Use countif across multiple tabs for a column Windows 7 64bit Use countif across multiple tabs for a column Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,779
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Why not :
group the tabs (click the first tab then the last while holding the Shift key)
enter the COUNTIF function in an occupied cell on the first sheet ( it will copy automatically to all sheets in the group)
Now on you master sheet use the SUM function with a 3D reference to obtain the final result
You can ungroup whenever needed
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #7  
Old 02-21-2017, 05:38 AM
jeffreybrown jeffreybrown is offline Use countif across multiple tabs for a column Windows Vista Use countif across multiple tabs for a column Office 2007
Expert
 
Join Date: Apr 2016
Posts: 673
jeffreybrown has a spectacular aura aboutjeffreybrown has a spectacular aura about
Default

See if this example helps...

http://www.contextures.com/xlNames01.html
Attached Files
File Type: xlsx marconexcel.xlsx (14.5 KB, 7 views)
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Use countif across multiple tabs for a column COUNTIF(INDIRECT doesn't autoupdate cell references when I add a column somewhere else in my sheet Helix2 Excel 7 10-25-2016 03:20 AM
Use countif across multiple tabs for a column Multiple browser windows or tabs Buckeyegator Outlook 1 11-28-2011 08:53 PM
Multiple browser windows or tabs Buckeyegator Office 0 11-27-2011 05:06 PM
Multiple IExplorer Tabs open with link robertkjr3d Outlook 2 07-26-2010 11:30 AM
Create Multiple Tabs from Template TeePee Excel 0 04-30-2009 11:54 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:15 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft