Help using countifs with pop-up menus please

made a spreadsheet and am using pop-up menus as the cell format to list several shifts when making a schedule for my job, so far so good.
now i would like to total across the rows for each type of shift in 3 categories so for instance, i would like to create a formula that will tally the number of times i selected either the drop down for 9a-6p or 10a-7pm...i can get it to count one occurance by using =COUNTIF(B5:H5, "=9A-6P")...so i was trying something like =COUNTIFS(B5:H5,"=9A-6P",B5:H5,"=10A-7P") to get it to total the number of times i chose both of those text entires for the drop down, but that seems to be missing something...any help would be appreciated....

Hi Steph,
What you're missing is this (From the iWork Formulas and Functions User Guide):
COUNTIFS(test-values, condition, test-values..., condition...)
test-values:   A collection containing values to be tested. test-values is a collection containing any type of value.
condition:   An expression that results in a logical TRUE or FALSE. condition is an expression that can contain anything as long as the result from comparing condition to a value in test-values can be expressed as a Boolean value of TRUE or FALSE.
test-values...:  Optionally include one or more additional collections containing values to be tested. Each test-values collection must be followed immediately with a condition expression. This pattern of test-values, condition can be repeated as many times as needed.
condition...:  If an optional collection of test-values is included, an expression that results in a logical TRUE or FALSE. There must be one condition following each test-values collection; therefore, this function will always have an odd number of arguments.
Usage Notes
Each value in test-values is compared to the corresponding condition. If the
corresponding values in each collection meet the corresponding conditional tests,
the count is increased by 1.
The test-values, condition pairs may be thought of as a series of tests connected by AND(s)—the whole set is TRUE only if ALL parts are TRUE.
Your formula should be returning a zero count and you are testing the same set of values for two exclusive conditions—any pop-up set to "9A - 6P" cannot be also set to "10A - 7P"—at least one of the conditions will be false in every case.
For the results you want, you'll need a formula that counts each value/condition set separately, and adds the results:
=COUNTIF(B5:H5,"=9A-6P")+COUNTIF(B5:H5,"=10A-7P")
OR
=SUM(COUNTIF(B5:H5,"=9A-6P"),COUNTIF(B5:H5,"=10A-7P")
Regards,
Barry

Similar Messages

  • Working with pop up menus in Dreamweaver CS4

    this is my first time working with pop up menus in CS4 (have built many in previous versions), Adobe says you cannot create the pop up menus due to the new Spry feature - but that you can alter existing menus using the Behaviours panel
    I have just launched a new website using pop up menus - and there is a glitch when viewing the rollover/pop up menus: I see a question mark to the left of each image in the menu (the images themselves are working beautifully), does anyone know why?
    view the website here:
    http://www.kiwihouse.org.nz
    I want to keep the pop up menu so am looking for a solution to eliminate the floating question mark
    does it have anything to do with the multiple javascripts on each page?.. I have one for the menus, and one for the multiple fadeshow
    any advice or suggestions would be greatly appreciated
    dQ

    Not sure if this is the problem, don't have time to go through all your code - but putting the page through the validator bought up a lot of errors...
    http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.kiwihouse.org.nz%2F
    Look at the 3rd error message - it's to do with the way the script link has been written.
    Lots of other errors that need fixing as well.
    On another note, these pop up menus are not the best way to create menus these days, that's why the pop up menu feature was removed from the latest DW version.
    Articles that may be of interest:
    http://www.losingfight.com/blog/2006/08/11/the-sordid-tale-of-mm_menufw_menujs/
    http://apptools.com/rants/jsmenu.php
    http://apptools.com/rants/menus.php

  • Need help with pop-up menu please!

    So I have an older version of Dreamweaver.
    I want to apply a drop-down menu or pop-up menu whatever to
    words, but so far I don't think I can do that.
    I've decided to apply it to a picture instead, and I've done
    this successfuly before.
    I select the picture, then go to behaviors and select "show
    pop-up menu", fill in the info and say OK, but I then get this
    message that goes something like "while applying behaviors action
    javascript failed" and "ReferenceError:imgName isNot defined" or
    whatever and it won't let me add it.
    I've restarted the program and even my computer but it won't
    go away.
    Does anyone know how to fix this?
    -anna

    > So I have an older version of Dreamweaver.
    DW4?
    The pop-up menus are very troublesome. Nobody here would
    recommend that you
    use them.
    > Does anyone know how to fix this?
    What is your operating system?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "anzya91" <[email protected]> wrote in
    message
    news:eibt0r$esr$[email protected]..
    > So I have an older version of Dreamweaver.
    > I want to apply a drop-down menu or pop-up menu whatever
    to words, but so
    > far
    > I don't think I can do that.
    > I've decided to apply it to a picture instead, and I've
    done this
    > successfuly
    > before.
    > I select the picture, then go to behaviors and select
    "show pop-up menu",
    > fill
    > in the info and say OK, but I then get this message that
    goes something
    > like
    > "while applying behaviors action javascript failed" and
    > "ReferenceError:imgName
    > isNot defined" or whatever and it won't let me add it.
    > I've restarted the program and even my computer but it
    won't go away.
    > Does anyone know how to fix this?
    >
    > -anna
    >

  • Help using AEWsetunsol() with PowerBuilder 7 on Nt4

    I am trying to use AEWsetunsol() with Powerbuilder 7 on WinNT 4 (sp6a) or Win2000.
    Can anyone help with regards to what we have to do in PB to get this to work?
    Please be explicit.
    Thanks in advance.
    ..Lyall

    Got it working but had to write a tpinit() wrapper in a DLL in order to get it
    to work.
    The wrapper function allocated the TPINIT buffer and populated the structure with
    appropriate usernames/passwords (none in my case) but we set the 'flags' field
    to 1 (notify by signal). [Powerbuilder does not handle structures terribly well
    I am led to understand]
    If we did not do this, the AEWsetunsol() did not work.
    The code window open is as follows :-
    // pb_SetLoginInfo() is custom written DLL function - simply
    // allocates the TPINIT buffer and populates it.
    // fields in same order as TPINIT buffer
    If (pb_SetLoginInfo("", "", "", "", 1, 0, "") < 0) Then //flag set to 1 - TPU_SIG
    indicating unsolicited notification selected by signals
         messagebox("Error", "Fail pb_SetLoginInfo()")
         return
    End If     
    // pb_tpinit() is custom written DLL function - simply calls tpinit() with the
    structure populated by pb_SetLoginInfo()
    IF ( pb_tpinit() < 0) Then //call tp_init from user defined external dll
         messagebox("Error", "Fail tpinit()")
         tpterm()
         return
    End If
    We wanted to be notified by PBM_CUSTOM68 (Powerbuilder custom event 68)
    Then, we called the AEWsetunsol as follows :-
    //start subscribing to event
    il_windowHandle = Handle(THIS)
    //set event to trigger when receive unsolicited message
    IF (AEWsetunsol(il_windowHandle, (1023+68)) < 0) Then //the (1023+68) indicates
    the event id for pbm_custom68
         messagebox("Error", "Fail AEWsetunsol()")
         tpterm()
         return
    End If
    We then setup a custom pb event to receive these events, subscribed to an event
    and off we went.
    Now, if we could only convince the Tuxedo 8 WS DLL to work with Powerbuilder (rather
    than crashing on APP exit)
    Hope this helps someone.
    ..Lyall

  • Need help using LR with a 2nd Computer/Laptop

    I just installed LR on to my laptop last night. I currently have all my photos saved to my desktop in e:\photos. I belived the sidecars are in that same folder, and the other stuff is in the default c:\docandsettings (or whatever it is).
    The laptop is on a wireless network and my desktop's e: drive is accessible.
    So last night I wanted to try lightroom on the laptop with the files I have on my desktop. Am I correct in that what I need to do is import files from current location so that I'll only have one version of the photos? If I make changes on the laptop, will the sidecar be changed so I'll see the change when I use the desktop? Or is there a different/better way to do this?
    The other thing I want to do is be able to teather my camera (Canon 30D) to the laptop and shoot that way. I was able to do it using Canon's DPP and EOS Utilities software where the photo is writen directly to the hard drive. But when I plug my camera in, Lightroom opens as well. Is there a way to shoot directly into Lightroom? Or shoot to the card so LR opens the file from the camera without having to do a separate import?

    Yes it will delete everything.
    I'm a little confused at what you are asking at the end.
    Does this help at all...
    Using iPod With Multiple Computers
    Or do you want to move everything to the new computer?
    Use Your iPod To Move Songs To A New Computer
    How to copy music between authorized computers
    btabz

  • Help using -replace with wildcard characters, specifically braces

    Hello all,
    Needing help in using -replace with literal wildcard characters, specifically the braces characters. From reading old posts online this seems to have been a notorious shortcoming of PowerShell, but not sure if it's been resolved or not. My simple
    code tries to remove the braces as follows (would like to keep the foreach loop and everything as is if possible):
    $string = "test[]"
    $braces = @("``[","``]")
    Foreach($brace in $braces){
    If($string -like "*$brace*"){
    $string = $string -replace ($brace,"")
    write-host $string
    This code gives an error at the -replace line, saying "The regular expression pattern `] is not valid." I'm not sure how to pass the literal brace characters to the -replace parameter? Can this be done?

    -like is a wildcard operator (it recognized wildcard patterns like * ,? and [a-z].
    For a regular expression you use the -match operator.  
    Wildcard patterns and regular expressions are not interchangeable.
    See:
    get-help about_wildcards
    get-help about_regular_expressions
    for an explanation and examples of each one, and 
    get-help about_comparison_operators
    for examples of using -like and -match.
    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

  • Keeping Nav Bars highlighted with pop-up menus

    How do I get navigation bars to stay highlighted while the
    mouse is over the pop-up menu in Dreamweaver 8 and Fireworks 8? I
    found directions on the Adobe Website, but it only works for the MX
    versions, as the codes are different. Navigation bars and pop-up
    menus were created in Fireworks and exported tov Dreamweaver.
    Thanks

    I am having this problem as well. Does anyone have a
    solution?

  • Need help with pop up menus...

    Hi guys, hope u can help me with this. Im working on a flash
    website. I have to include a pop up menu which I have managed to
    create no problem. However, when I try to make the buttons inside
    the pop up to change to another scene when clicked I cant get them
    to work. This is the code I've used:
    on (release) {
    _root.gotoAndStop("Student_area","tests");
    I have defined the action to go to the frame labeled "tests"
    in the "Student_area" scene as I have been told in a tutorial I
    have. However when I test it and click on it nothing happens. I
    have tried many variations such as simply telling it to take me to
    the students scene like I would do with a normal button but still
    nothing happens.
    What am I doing wrong?
    Hope someone can help me, gotta submit this soon.
    Thanks in advance.

    bump...
    Anyone?? Please.

  • Help with  pop-up menus specific to JText Fields

    hello,
    I am somewhat new to the popup menu aspect of java and so I was wondering how I can implement one popup menu to multiple and specificJTextFields.
    What I am looking for is a way that a menu selection can use information specific to the JTextField where the user clicked.
    I have tried this already but I have a problem where one selection in a given textfield will spread it to all the textfields with mouselisteners.
    Any help would be most appreciated!

    I am somewhat new to the popup menu aspect of java...So create a simple program to test how you think it should work. If it doesn't work, then you have some code to post on the forum so we can see exactly what you are doing. Something like:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.text.*;
    public class PopupTest extends JFrame implements MouseListener
         JPopupMenu popup;
         public PopupTest()
              popup = new JPopupMenu();
              popup.add( new DefaultEditorKit.CutAction() );
              popup.add( new DefaultEditorKit.CopyAction() );
              popup.add( new DefaultEditorKit.PasteAction() );
              JTextField textField = new JTextField("Right Click For Popup");
              textField.addMouseListener( this );
              getContentPane().add(textField);
         private void checkForPopup(MouseEvent e)
              if (e.isPopupTrigger())
                   popup.show(e.getComponent(), e.getX(), e.getY());
         public void mousePressed(MouseEvent e)
              checkForPopup( e );
         public void mouseReleased(MouseEvent e)
              checkForPopup( e );
         public void mouseClicked(MouseEvent e) {}
         public void mouseEntered(MouseEvent e) {}
         public void mouseExited(MouseEvent e) {}
         public static void main(String[] args)
              JFrame frame = new PopupTest();
              frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
              frame.pack();
              frame.setLocationRelativeTo( null );
              frame.show();
    }

  • Fireworks CS3 Pop up menus: Please Help!

    can anyone tell me how to properly link my drown down menus
    on my popup menus in fireworks cs3. when i bring it in to
    dreamweaver and test my it in my browser it doesn't work.

    grynchman wrote:
    > You need to export the entire thing (select all
    elements) to images & html.
    > Then open the html file in DW, copy the code and place
    where you wish.
    >
    > I am new to FW - so this may be a wacky way of doing ti,
    but it works for me.
    >
    >
    >
    Ideally, you need to run as far away from those menus as you
    can, before
    you try using them. From a maintenance perspective at least,
    they are a
    nightmare.
    Jim Babbage - .:Community MX:. & .:Adobe Community
    Expert:.
    http://www.communityMX.com/
    CommunityMX - Free Resources:
    http://www.communitymx.com/free.cfm
    .:Adobe Community Expert for Fireworks:.
    Adobe Community Expert
    http://tinyurl.com/2a7dyp
    .:Author:.
    Lynda.com -
    http://movielibrary.lynda.com/authors/author/?aid=188
    Peachpit Press -
    http://www.peachpit.com/authors/bio.aspx?a=d98ed798-5ef0-45a8-a70d-4b35fa14c9a4
    Layers Magazine -
    http://www.layersmagazine.com/author/jim-babbage

  • Help with pop-up menu --- please!

    I want to see if I can get this simple code working so that I can integrate the ideas into a larger application. But, I'm getting errors on this one! What am I missing or forgetting?
    public class example implements MouseInputListener,MouseMotionListener{
         JPopupMenu menu = new JPopupMenu();
         public static void main (String args[]) {
              Frame f = new Frame();
              {Window w = new Window(f);
              w.setSize(200,100);
              w.setVisible(true);
              w.setLocation(300,300);
              //New Red Window
              {Window w= new warningwindow (f);
              w.setSize(200,100);     //setSize is in a superclass
              w.setVisible(true);
              w.setLocation(370,370);}
              // Create and add a menu item
         JMenuItem item = new JMenuItem("Hi Kimberly!");
         addMouseListener(this); //ERROR WITH THIS LINE
         menu.add(item); //ERROR WITH THIS LINE ALSO
         // Set the component to show the popup menu
         public void mouseClicked (MouseEvent e) {
              if(e.isPopupTrigger()){
                   menu.show(e.getComponent(),e.getX(), e.getY());
         public void mouseReleased (MouseEvent e){
              if (e.isPopupTrigger()){
                   menu.show(e.getComponent(),e.getX(),e.getY());
         public void mouseExited (MouseEvent e){
         public void mouseMoved (MouseEvent e){
         public void mouseDragged (MouseEvent e){
         public void mousePressed (MouseEvent e){
         public void mouseEntered (MouseEvent e){
    }

    You're forgetting that we can't see your computer from here. Tell us what errors you are getting.

  • Need help big time with pop-up window!

    This is probably an easy answer, I'm not a programmer or a back end guy whatsoever, I'm a graphic designer trying to make his way through a project for a client.
    I'm working up a Flash template, and I need to make a simple pop up window that will view a more detailed version of an image.  The template has a pop up window system where you add your photo to a certain frame of a movie clip.  The problem is, the pop ups have scroll bars built in, and for the life of me I couldn't figure out how to get rid of them, so I duplicated one of the movie clips that looked like it housed the framework of the pop up and deleted the scroll bar (I didn't delete any of the scroll bar code because I had no idea what I was doing).  It actually kind of worked, but the pop up window is a bit too wide and doesn't look right.
    You can view my hack job here...
    http://truetilldeathhq.com/main8_v7/main8_v7.html
    Stay on the "Print" page and click the first "01" button and an ad for Ford will come up.  Click the "Detailed View" button in the description to see the pop up window.
    My question is, there MUST be an easier way to make a pop up window than the workaround I'm using with the template.  What I'm trying to do is have a pop up for each sample of the work (all images would be the same size) for the first four buttons, and then for the "Online Banners" page, have the pop up open up to the dimensions of the particular banner ad and play the swf.  The pop ups shouldn't have scroll bars, only a title and the button to close the window.
    To view the template files, you can download them at:
    http://truetilldeathhq.com/main8_v7/main8_v7.fla
    The "descripton" movie clips have the descriptions and the "Detailed View" links in the frames, and the movie clips I not so gracefully butchered to get the pop up to work were TM_page_content_scroll (where you're supposed to put an image in a certain frame and then put the # of that frame in the Actionscript of the "Detailed View" button), and the TM_main_cont_page2 and TM_pop_up_main3, which were the ones I duplicated.
    If ANYONE can offer even the slightest bit of help, I gratefully appreciate it.  I've been working on this thing for like 15 hours a day and I can't even think straight at this point, thanks!

    I admit to not having read everything you wrote... there's just too much of it. But...
    Hashtable (and HashMap, which you should really be using unless you have some external constraint requiring the use of Hashtable) map each key to a single value object.
    That is, you can map from the key string "4996" to one single other object. And then you can also map from a different key to a different object.
    In you put() method, you add a mapping from "4996" to "good", and then you replace that mapping with one from "4996" to "home". There is only ever one value associated with a given key.
    To map multiple values to a single key, you need the value object to be a collection of some kind (or an array). So, you could map your string "4996" to a List, and that list could contain the strings "good", "home", etc.

  • HELP :  using UPPER with LIKE in CMP finder??

    Hi,
    am trying to do a case insensitive wildcard search but am having little luck, if I run the sql query
    select * from my_view where UPPER(name) like '%SMI%'; then I get the right results back but when i try to use it in my CMP bean I get nothing unless the case matches.
    my xml entry is as below:
    <finder-method partial="False" query="SELECT * FROM MY_VIEW WHERE UPPER(name) LIKE ?1">
    <method>
    <ejb-name>View</ejb-name>
    <method-name>findByName</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </method>
    </finder-method>
    can anyone help please ?? can I not use UPPER in one of these queries ??
    Regards
    Rosie

    Rosie,
    I was able to get this example to work and it is nearly identical to yours. I passed "C%" into the bean and received all the records where the USR_MSG_CTGR_ID field started with "C". Is the problem a data issue? (Does the connection used by the bean use the same database and user ID that you used when you executed the query manually? If not, are they looking at the same table?)
    Good luck!
    <finder-method partial="False" query="select * from my_usr_msg where upper(usr_msg_ctgr_id) like ?1">
    <method>
    <ejb-name>My_usr_msg</ejb-name>
    <method-name>findByUpperValue</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </method>
    </finder-method>

  • Help Me, problems with my Zen Micro. (please see inside for scenar

    I turned on my Zen Micro
    then it is stucked at the CREATIVE LOGO
    so I did the Recovery Mode
    I chose Clean Up
    So a window came out that says something like are you sure you want to clean up so I chose YES.
    then a window came out that says "Scan Disk or Scanning Disk"
    I thought that my problem is already over
    but, Oh My God! I've already been waiting for like 8 hours and the window saying "Scan Disk" is still not finish. waaaaaa!
    then I thought, probably Clean Up is not the solution
    I tried Format All
    then a window came out saying "Formatting"
    What the! I did it like in the evening and I slept for like 0 hours to check in the morning, but still, it is still not finished.
    What is this?
    I also have a problem, my computer doesn't recognize my Zen, and just to double my bad luck I lost my warranty receipt.
    Oh my Lord, please help me.

    So -
    I have received a message from support, stating that the player most certainly is irreparable - and instructions on how to return it to have it replaced.
    It seems to me that the player harddisk is broken/damaged. This may be a result of using it while jogging/running... (in my view) It is dissapointing that the player can't handle this - which of course must be considered a fairly normal usage. I have experienced some skipping earlier, but never thought this would affect the player to such an extent.
    Hopefully - this is not a fault that applies to every Zen Micro out there, although your posts may indicate that this may be an issue with several players.
    regards,
    BjOlav

  • Can I get around using Spry for pop-up menus?

    Members of our organization tend to be older and not so quick
    to update their software or browsers. We're trying to develop a new
    site, and although we've had CS3 here since last year, it just
    grayed out our ability to use "Show pop-up menu" as an option this
    week.
    According to Adobe, Spry is only supported on the following
    browsers: Firefox, IE6 and higher, Safari 2, and Opera 9.
    According to our web stats, our users use: Netscape 4.x
    (32.92%), MSIE 6.x (23.08%), Netscape 7x. (8.62%), AOL (4.16%),
    Firefox 1.x (0.34%), Opera 3.x (0.13%), *Unknown (29.08%)
    I can't use a function that only 25% of my site visitors can
    see!
    Any suggestions? I'm desperate!

    > We're trying to develop a new site, and although we've
    > had CS3 here since last year, it just grayed out our
    ability to use "Show
    > pop-up menu" as an option this week.
    This has always been the case. CS3 will only enable that
    option on a page
    that already has one of those nasty menus on it. In other
    words, the effect
    has been taken on a long walk off a short pier. To see why I
    refer to these
    as 'nasty', read this -
    http://www.losingfight.com/blog/2006/08/11/the-sordid-tale-of-mm_menufw_menujs/
    There are so MANY MUCH BETTER ways to do these kinds of
    things -
    Check the uberlink and MacFly tutorials at PVII -
    http://www.projectseven.com/
    and the Navbar tutorial/articles at Thierry's place
    http://tjkdesign.com/articles/dropdown/
    Or this one (more recent article):
    http://tjkdesign.com/articles/Pure_CSS_Dropdown_Menus.asp
    Or to get it done fast, go here -
    http://www.projectseven.com/tutorials/navigation/auto_hide/index.htm
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Remps" <[email protected]> wrote in message
    news:fr6gil$hc7$[email protected]..
    > Members of our organization tend to be older and not so
    quick to update
    > their
    > software or browsers. We're trying to develop a new
    site, and although
    > we've
    > had CS3 here since last year, it just grayed out our
    ability to use "Show
    > pop-up menu" as an option this week.
    >
    > According to Adobe, Spry is only supported on the
    following browsers:
    > Firefox,
    > IE6 and higher, Safari 2, and Opera 9.
    >
    > According to our web stats, our users use: Netscape 4.x
    (32.92%), MSIE 6.x
    > (23.08%), Netscape 7x. (8.62%), AOL (4.16%), Firefox 1.x
    (0.34%), Opera
    > 3.x
    > (0.13%), *Unknown (29.08%)
    >
    > I can't use a function that only 25% of my site visitors
    can see!
    >
    > Any suggestions? I'm desperate!
    >

Maybe you are looking for