Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-20-2018, 12:06 PM
trevorc trevorc is offline =COUNTIFS(Netc!C4:C1008,"open",Netcd!D4:D1008 ,"PC") Windows 7 32bit =COUNTIFS(Netc!C4:C1008,"open",Netcd!D4:D1008 ,"PC") Office 2013
Competent Performer
=COUNTIFS(Netc!C4:C1008,"open",Netcd!D4:D1008 ,"PC")
 
Join Date: Jan 2017
Posts: 174
trevorc will become famous soon enoughtrevorc will become famous soon enough
Default =COUNTIFS(Netc!C4:C1008,"open",Netcd!D4:D1008 ,"PC")

Hi All,
I need to add some extra conditions to the formula below, any ideas as to how this is done would be great.

=COUNTIFS(Netc!C4:C1008,"open",Netc!D41008,"PC")
This works ok for just one condition

I need to add the following somehow...

=COUNTIFS(Netc!C4:C1008,"open" or "Waiting Parts",Netc!D41008,"PC")



or do I need to add separate countifs to do it?
Reply With Quote
  #2  
Old 02-20-2018, 05:13 PM
jeffreybrown jeffreybrown is offline =COUNTIFS(Netc!C4:C1008,"open",Netcd!D4:D1008 ,"PC") Windows Vista =COUNTIFS(Netc!C4:C1008,"open",Netcd!D4:D1008 ,"PC") Office 2007
Expert
 
Join Date: Apr 2016
Posts: 673
jeffreybrown has a spectacular aura aboutjeffreybrown has a spectacular aura about
Default

Try...

=SUM(COUNTIFS(Netc!C4:C1008,{"open","Waiting Parts"},Netc!D4: D1008,"PC")

Note: No space between the the colon and the D1008. The board is thinking the : and the D combined is a smiley face.

If you want a little explanation you'll find it here
Reply With Quote
  #3  
Old 02-21-2018, 05:18 PM
trevorc trevorc is offline =COUNTIFS(Netc!C4:C1008,"open",Netcd!D4:D1008 ,"PC") Windows 7 32bit =COUNTIFS(Netc!C4:C1008,"open",Netcd!D4:D1008 ,"PC") Office 2013
Competent Performer
=COUNTIFS(Netc!C4:C1008,"open",Netcd!D4:D1008 ,"PC")
 
Join Date: Jan 2017
Posts: 174
trevorc will become famous soon enoughtrevorc will become famous soon enough
Default

Thanks but I had tried that already and it didn't work, it only found the first variable, I even swapped them to confirm this.

I think I'll go with using the above single variable and add extra countifs with a "+" in between to get the result I need. seems to work ok.

=COUNTIFS(Netc!C4:C1008,"open",Netc!D41008 ,"PC") + COUNTIFS(Netc!C4:C1008,"waiting parts",Netc!D41008 ,"PC")
Reply With Quote
  #4  
Old 02-21-2018, 05:31 PM
jeffreybrown jeffreybrown is offline =COUNTIFS(Netc!C4:C1008,"open",Netcd!D4:D1008 ,"PC") Windows Vista =COUNTIFS(Netc!C4:C1008,"open",Netcd!D4:D1008 ,"PC") Office 2007
Expert
 
Join Date: Apr 2016
Posts: 673
jeffreybrown has a spectacular aura aboutjeffreybrown has a spectacular aura about
Default

Well we tried. It works with the test file I have, but unfortunately I don't have what you are testing. If you want to post a sample where it doesn't work I would be happy to look at it.
Reply With Quote
  #5  
Old 02-21-2018, 07:20 PM
trevorc trevorc is offline =COUNTIFS(Netc!C4:C1008,"open",Netcd!D4:D1008 ,"PC") Windows 7 32bit =COUNTIFS(Netc!C4:C1008,"open",Netcd!D4:D1008 ,"PC") Office 2013
Competent Performer
=COUNTIFS(Netc!C4:C1008,"open",Netcd!D4:D1008 ,"PC")
 
Join Date: Jan 2017
Posts: 174
trevorc will become famous soon enoughtrevorc will become famous soon enough
Default

Here's a sample of the problem I have, it sees only the first selection ???

Repairs Received .xlsx
Reply With Quote
  #6  
Old 02-22-2018, 03:01 AM
trevorc trevorc is offline =COUNTIFS(Netc!C4:C1008,"open",Netcd!D4:D1008 ,"PC") Windows 7 32bit =COUNTIFS(Netc!C4:C1008,"open",Netcd!D4:D1008 ,"PC") Office 2013
Competent Performer
=COUNTIFS(Netc!C4:C1008,"open",Netcd!D4:D1008 ,"PC")
 
Join Date: Jan 2017
Posts: 174
trevorc will become famous soon enoughtrevorc will become famous soon enough
Default

Just an updated thought.
Can I use a list for this in some way?
Reply With Quote
  #7  
Old 02-22-2018, 03:51 AM
jeffreybrown jeffreybrown is offline =COUNTIFS(Netc!C4:C1008,"open",Netcd!D4:D1008 ,"PC") Windows Vista =COUNTIFS(Netc!C4:C1008,"open",Netcd!D4:D1008 ,"PC") Office 2007
Expert
 
Join Date: Apr 2016
Posts: 673
jeffreybrown has a spectacular aura aboutjeffreybrown has a spectacular aura about
Default

Yes you can use a list, but to do that you will now need to wrap the Countifs in Sumproduct.

=SUMPRODUCT(COUNTIFS(Netcard!$C$4:$C$20,$F$1:$F$2, Netcard!$D$4:$D$20,"Kiosk Assembly"))

F1:F2 = Waiting Parts and Open

BTW: In the file you attached, you did not have the Countifs wrapped in Sum. It must be wrapped in order for the OR operation to take effect.
Reply With Quote
  #8  
Old 02-22-2018, 04:13 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is online now =COUNTIFS(Netc!C4:C1008,"open",Netcd!D4:D1008 ,"PC") Windows 7 64bit =COUNTIFS(Netc!C4:C1008,"open",Netcd!D4:D1008 ,"PC") Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,771
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

Post moved to non VBA section
@trevorc Please post in the correct forum - Thx
__________________
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
  #9  
Old 02-22-2018, 11:28 AM
trevorc trevorc is offline =COUNTIFS(Netc!C4:C1008,"open",Netcd!D4:D1008 ,"PC") Windows 7 32bit =COUNTIFS(Netc!C4:C1008,"open",Netcd!D4:D1008 ,"PC") Office 2013
Competent Performer
=COUNTIFS(Netc!C4:C1008,"open",Netcd!D4:D1008 ,"PC")
 
Join Date: Jan 2017
Posts: 174
trevorc will become famous soon enoughtrevorc will become famous soon enough
Default

thanks for that... works fine now.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Combine "sort within groups" and "identify duplicate/unique values" in two different variables. civilcervant Excel 3 06-12-2017 07:27 AM
"Open Recent" and "More..." in Excel and Word BudVitoff Office 0 04-03-2015 09:17 PM
Need help with conditional formatting & returning "Pass" / "Fail Results" in a Column N mikey386 Excel 2 12-11-2014 01:14 PM
remove repeated words with " macro " or " wild cards " in texts with parentheses and commas jocke321 Word VBA 2 12-10-2014 11:27 AM
=COUNTIFS(Netc!C4:C1008,"open",Netcd!D4:D1008 ,"PC") How to choose a "List" for certain "Heading" from "Modify" tool? Jamal NUMAN Word 2 07-03-2011 03:11 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:44 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