I want to return a number from a column, if the adjacent column contains either "nurse" or Receptionist"

I have a table with dates which i have converted to a number using the Month Fx.  This number is then in a seperate column, which inus e for charts.  I am trying to return this number only if the adjacent column contains either "nurse" or "receptionist". ie I dont want them all....

Kang,
Yes.  Happy Easter!  was cloudy yesterday in Austin, Texas.
I do not know where the formula you posted in your previous post came from.  It is certainly not correct.  What confuses me about the bottom table is I do not know how it connects to the top table.
Are the groups of people "Clinical Staff", "PDR", "Fire Training"  (bottom table column A) groupings of the staff types listed in in the top table, column C?
If so then it may be worth adding some columns to define how the roles map to the training groups.
At this point it must be defined and assumed.  Which row are you wanting to fill out for "Nurse" and "Nurse Practitioner"?
A little exaplaination:
the countif() function contains two arguments like this:
=countif(range, test)
the range is a group of cells (often, but not always, a column).  The test must be an expression that evaluates to true or false.
so if the column is set to column C of the top table then the range would be expressed as (assuming the table name is "Table 1"):
"Table 1::$G"
to test whether the role is a "Nurse" the test (or condition) would be:
"Nurse"
putting these together you would get a countif() function like this which would return the number of Nurses (not really what you want but getting close):
=countif(Table 1::$G, "Nurse")
you actually want to count when:
A) the month is a particular month and
B) the role is a "Nurse"
you also want to count when:
C) the month is a particular month and
D) the role is a "Secialist Nurse Practitioner"
so you can use the countifs() function.
the countifs() function counts the occurances where only ALL conditions are met.
you would use the counifs() twice and add the results together like this:
=COUNTIFS(test-values1,condition1, test-values2,condition2)
you can add as many test values and conditions as you like (you must add in pairs)
To do this you should add an extra row in the header of the bottom table to hold the month number.  Jan is 1, Feb is 2, etc.
Here is what I think you want:
The top table corresponds to the bottom table in your post.  notice I added an extra row (to contain the month number):
B3=COUNTIFS(Table 4::$C, "Nurse", Table 4::$G, B$1) + COUNTIFS(Table 4::$C, "Specialist Nurse Practitioner", Table 4::$G, B$1)
this is shorthand for select cell B3, then type (or copy and paste from here) the formula:
=COUNTIFS(Table 4::$C, "Nurse", Table 4::$G, B$1) + COUNTIFS(Table 4::$C, "Specialist Nurse Practitioner", Table 4::$G, B$1)
no select B3 and fill to the right by hovering the cursor over the right edge of the, now select, cell B3 and dragging the little yellow circle to the right.

Similar Messages

  • Set attribute to a Jfield to return type number from Lov

    in my lov , i need to return type number and put it in the Jfield . after doin some search , i found the method to set the attribute on that field. PLease and need to send me any URL of doing that method if there is one. (returning type number from LOV)
    i have tried this method but it didn't work!!!
    Return object from List of values page:
    FacesContext fctx = FacesContext.getCurrentInstance();
    Application app = fctx.getApplication();
    ValueBinding vb = app.createValueBinding("#{bindings}");
    DCBindingContainer dc = (DCBindingContainer) vb.getValue(fctx);
    DCIteratorBinding dciter = (DCIteratorBinding)dc.get("PrcPartiesLawer1Iterator");
    id = (Number)dciter.getCurrentRow().getAttribute("Id");
    Name = (String)dciter.getCurrentRow().getAttribute("FullNameN");
    setId(id);
    setName(Name); AdfFacesContext.getCurrentInstance().returnFromDialog(this,null);
    return listener to assign value to Number field:
    LawyerReturnOject b = (LawyerReturnOject)returnEvent.getReturnValue();
    if(b==null)return;
    Number i = b.getId();
    getIii().setSubmittedValue(null);
    getIii().setValue(i);
    String f = b.getName();
    getInputText1().setSubmittedValue(null);
    getInputText1().setValue(f);
    AdfFacesContext af = AdfFacesContext.getCurrentInstance();
    af.addPartialTarget(getLawyerLov());
    af.addPartialTarget(getInputText1());
    and the number type is oracle.jbo.domain.number

    Hi,
    its easier to set the returned value on the ADF binding then on the component directly (at least this is less error prone)
    FacesContext fctx = FacesContext.getCurrentInstance();
    Application app = fctx.getApplication();
    ValueBinding vb = app.createValueBinding("#{bindings}");
    DCBindingContainer dc = (DCBindingContainer) vb.getValue(fctx);
    FacesCtrlAttrsBinding the_attribute = (FacesCtrlAttrsBinding ) dc.get("nameOfAttributeToUpdate");
    the_attribute.set...
    Frank

  • I want to block a number from calling and message me but how do i do this is there any app avalible for this

    I want to block a number from calling and message me but how do i do this is there any app avalible for this

    Sadly, as Call Bliss uses the built in Do Not Disturb feature, it requires that your screen be locked in order to function.
    I'm hoping (and have submitted feedback) that Apple will beef up DND to work even when the screen isn't locked.

  • How to get payment document number from paid column in monthly invoice

    Dear experts
    I use SBO japan version and i need to know how to get payment document number from paid column in monthly invoice ?
    in table MIN1, only contain invoice and credit note document number, there is no payment document number
    thank you for your help
    Best Regards
    JeiMing

    Dear Gordon
    Yeah, you are right, i can use field MIentry in RCT2
    thank you
    Best regards
    jeiming

  • Need dissociation street name and street number from one column?

    Hi all,
    I have one table A with one column with Street name and street number.
    And I was adding second column and now need update this second column with street number
    and delete street number from first column.
    How can unpluging street name and street number from one column?
    (street name are 90% char, number is 100 numeric, in 10% street name name
    starts with number (1.HEROES 223, 1.HEROES 224...)
    Gordan

    Hi,
    Solution of Mr. Wijk come first, however I like to post (it's very similar and incomplete, I know...). Supose you have a table call address (use position -1 like Mr. Wijk to look backward). It's better in cases like '1.My Street 123' (the space before the number is very important)
    SELECT substr(a.street_name,
                  1,
                  instr(a.street_name,
                        -1) - 1) street_name,
           substr(a.street_name,
                  instr(a.street_name,
                        -1) + 1) street_number
      FROM address a;Regards,

  • I really want to purchase music albums from iTunes store. but the payment option is so painful. I have a SBI ATM *** Debit Card. So please do something on Indian store payment option. At-least create a alternative payment, like Internet Banking

    I really want to purchase music albums from iTunes store. but the payment option is so painful. I have a SBI ATM *** Debit Card. So please do something on Indian store payment option. At-least create a alternative payment, like Internet Banking...

    We are fellow users here on these user-to-user forums, you're not talking to iTunes Support nor Apple.
    Do you have a credit card, or a different debit card that you could try (some are apparently still accepted in India) ?
    If you want to leave feedback for Apple then you can do so via this page : http://www.apple.com/feedback/

  • Unable to return a number from CASE statement in plsql

    Hello all!
    Back in November of last year, I received some assistance from user "jarola" regarding changing the color of a column item in a query based on the resulting value. This discussion yielded;
    declare
       l_query varchar2(4000) := '';
    begin
       l_query := '
         select i.INVENTORY_ID,
                io.ORDER_QUANTITY,
                CASE
                   WHEN i.QUANTITY_AVAILABLE=0
                   THEN ''<span style="color:red;"> ''|| i.QUANTITY_AVAILABLE ||''</span>''
                   ELSE to_char(i.QUANTITY_AVAILABLE)
                END,
                i.QUANTITY_AVAILABLE qty_avail_hold,
                i.STRAIN_CODE,
                i.STRAIN_NAME,
                i.GENOTYPE,
                i.AGE,
                i.***,
                (lower(substr(i.ROOM_NUMBER,1,instr(i.ROOM_NUMBER,''-'',1,1)-1))) ROOM_NUMBER
         from   SM_INVENTORY i,
                SM_INVENTORY_ORDER io
         where  io.ORDER_ID (+)= :F111_MODIFYING_ORDER
         and    io.INVENTORY_ID (+)= i.INVENTORY_ID';
    return l_query;
    end;Problem is, sorting (report attributes for column set to "sort") on column i.QUANTITY_AVAILABLE is broken as even though the data in the table is number(12,0), the CASE statement returns it as alpha. I'm having difficulty getting this CASE statement to return a number as these modifications cause generic compilation errors.
    ELSE i.QUANTITY_AVAILABLE
    ELSE to_number(i.QUANTITY_AVAILABLE)
    Google/sqlplus docs have yielded little. Might anyone offer advice?
    Thanks!!!
    Paul

    Hello Varad! Thanks for the reply.
    Sorry, but I copied some old information in my code example. the CASE statement I'm actually using is;
    CASE
       WHEN i.QUANTITY_AVAILABLE=0
       THEN ''<span style="color:red;"> ''|| i.QUANTITY_AVAILABLE ||''</span>''
       ELSE to_char(i.QUANTITY_AVAILABLE)
       END AS QUANTITY_AVAILABLESo I'm already returning the result as labeled "QUANTITY_AVAILABLE".
    What I did was click on the pencil/paper icon to the left of the alias of my column in the "Column Attributes" pane in "Report Attributes" to get to the "Column Attributes" page and plugged #QUANTITY_AVAILABLE# into the HTML Expression field of the "Column Formatting" pane of the "Column Attributes" page for the "QUANTITY_AVAILABLE" column.
    No joy, sort still broken...
    Isn't the problem that fundamentally, the CASE statement returns an alpha? I wouldn't expect the sort to ever work until it can return a number (which it appears SQL, used this way, it cannot do).
    So, I considered that END AS QUANTITY_AVAILABLE might be the problem as it's named the same as the column, so I changed it (and the HTML Expression entry) to END AS QUANTITY_AVAIL (changed the name).
    Sort as alpha still happening.
    Any other thoughts?

  • Want to copy Serial number from Sales Order to Delivery

    Hi Gurus, I want to copy the serial number from the sales order to the delivery. ¿How can I do this?
    Thanks in advance
    -ITalo

    Please check if you get some helpful tip from the link below:
    http://help.sap.com/bp_bl603/BBLibrary/HTML/126_EN_IN.htm
    Regards,
    Rajesh Banka

  • Return specific number of rows depending on the data in a column in table

    Hi,
    I have a table named orders which has column orderid and noofbookstoorder in addition to other columns.
    I want to query the orders table and depending on the value of the 'noofbookstoorder' value return that number of rows.
    Eg
    Orderid noofbookstoorder
    1 1
    2 3
    3 2
    when I query the above data saying
    select * from orders where orderid=2;
    since it has noofbookstoorders value as 3 the query should return 3 rows and when I query
    select * from orders where orderid=3;
    it should return 2 rows and
    select * from orders where orderid=1;
    should return 1 row.
    Is it possible to achieve this. If yes, then how do I write my query.
    Thanks in advance.

    with t as (
               select 1 Orderid,1 noofbookstoorder from dual union all
               select 2,3 from dual union all
               select 3,2 from dual
    select  t.*
      from  t,
            table(cast(multiset(select 1 from dual connect by level <= noofbookstoorder) as sys.OdciNumberList))
      where Orderid = <order-id>
    /For example:
    SQL> with t as (
      2             select 1 Orderid,1 noofbookstoorder from dual union all
      3             select 2,3 from dual union all
      4             select 3,2 from dual
      5            )
      6  select  t.*
      7    from  t,
      8          table(cast(multiset(select 1 from dual connect by level <= noofbookstoorder) as sys.OdciNumberList))
      9    where Orderid = 2
    10  /
       ORDERID NOOFBOOKSTOORDER
             2                3
             2                3
             2                3
    SQL> with t as (
      2             select 1 Orderid,1 noofbookstoorder from dual union all
      3             select 2,3 from dual union all
      4             select 3,2 from dual
      5            )
      6  select  t.*
      7    from  t,
      8          table(cast(multiset(select 1 from dual connect by level <= noofbookstoorder) as sys.OdciNumberList))
      9    where Orderid = 3
    10  /
       ORDERID NOOFBOOKSTOORDER
             3                2
             3                2
    SQL> with t as (
      2             select 1 Orderid,1 noofbookstoorder from dual union all
      3             select 2,3 from dual union all
      4             select 3,2 from dual
      5            )
      6  select  t.*
      7    from  t,
      8          table(cast(multiset(select 1 from dual connect by level <= noofbookstoorder) as sys.Odc
    iNumberList))
      9    where Orderid = 1
    10  /
       ORDERID NOOFBOOKSTOORDER
             1                1
    SQL>  -- And if you want to select multiple orders
    SQL> with t as (
      2             select 1 Orderid,1 noofbookstoorder from dual union all
      3             select 2,3 from dual union all
      4             select 3,2 from dual
      5            )
      6  select  t.*
      7    from  t,
      8          table(cast(multiset(select 1 from dual connect by level <= noofbookstoorder) as sys.Odc
    iNumberList))
      9    where Orderid in (2,3)
    10  /
       ORDERID NOOFBOOKSTOORDER
             2                3
             2                3
             2                3
             3                2
             3                2
    SQL> SY.
    Edited by: Solomon Yakobson on Oct 26, 2009 7:36 AM

  • Adding caller with name and number from call list to the contact list only inserts the number and not the name

    I recently bought a BlackBerry Z10 and moved my cell service to Rogers to take advantage of the name display service offered by Rogers (Fido also offers this service).
    Due to the number of calls that I receive from first time clients, I wanted the name display service to help me know who was calling. Evidently it is impossible to add clients to my contact list before they call me so I'm constantly seeing numbers that have no name to help me decide if I want to answer the call.
    When I try to add a caller from my call list to my contact list, only the number gets inserted in the new contact. The name needs to be entered manually.
    I understand and realize that not all call display formats are the same and that it's virtually impossible to parse the first and last names from the name portion of the caller id.
    However, I would like to see BlackBerry add the functionality to insert the name portion of the call entry from the caller list to a "Nickname" entry in the contact list just like it adds the number to a "Home", "Mobile", or "Work" entry in the contact list.
    If a user doesn't have a name display service, there would be no change to how their contacts are added because there is no name variable to copy over.
    Can someone from BlackBerry please let me know if this feature can be added to BB10 and when it can be added? For me it's an obvious feature that should just work.
    I am really enjoying my Z10 but I'm feeling let down that something so logical and helpful is not supported out of the box.
    Regards,
    Marc

    Hey ViciousFerret,
    It appears that you are not aware of the fact that both Rogers and Fido offer name AND number display service (although the name display feature is an add-on service) and have been offering it for many years (since 2006). Here is a link to the name display service description of each provider...
    http://www.fido.ca/web/content/manageyourcalls/calldisplay&lang=en
    http://www.rogers.com/business/on/en/smallbusiness/products/wireless/addons/valuepacks/
    As you can see from the link below, Rogers and Fido have been offering this service since 2006.
    http://www.businesswire.com/news/home/20060914005951/en/Teams-HP-Rogers-Wireless-Fido-Succeed-North
    My BlackBerry Z10 shows both the name and number when someone calls (and the caller is not in my contact list).
    All I would like is for the Z10 (and Q10) to support the addition of the name and number from the caller list to my contact list without me having to type the name. As I mentioned in my original post, to avoid the OS having to parse the first name and last name from the name portion of the caller list entry the name could simply be added to the contact list as a "Nickname". If your provider only has number display, nothing would have to be copied from the name variable in the caller list to the contact list.
    I find it difficult to believe that BlackBerry would not be aware of this name display service since it's been around since 2006 with both Rogers and Fido.
    I hope I have clarified the reasons why I would like to have this feature added to BB10 and how it's surprising that this simple feature is not already a part of the BB10 OS.
    Either way, I don't think this is a difficult feature for the BlackBerry team to add. They're just copying a 2nd variable from the caller list to the contact list.
    I'm surprised that Rogers hasn't asked BlackBerry to add this feature to their phones. I think it would be a popular feature for those who receive a high number of calls from first time callers.
    How can I get this feature request to BlackBerry for their consideration?
    Cheers,
    Marc

  • Returning a value from a LOV to the main document

    Hi,
    I'm using jheadsrart with uix, I have a form with a LOV. When I chose a value in the LOV, I need to return another value from that LOV to a hidden field in my main document.
    How can I do that?
    Thanks for your help!
    Martin

    Hi Rohit,
    Just declare the two variables var1(variable for checking data) & var2(variable for counter) in your include program.
    Inside the include you can do the coding as under:
    IF VAR1 <condition for checking data>.
    VAR2 = VAR2 + 1.
    ENDIF.
    Now you can check the value of the variable VAR2 in the main program & call the desired function.
    Regards,
    Chetan.
    PS:Reward points if this helps.

  • Hello all, does any one know how to change the master number from one nuber to the other number, as in....she no longer wants to be the account holder and wants to change the accoutn master over to my number...i can figure it out...and help?

    any one in here?

        jason6911
    Help has arrived! Let's make sure we get this addressed. From my understanding you are trying to take ownership of a phone number that is currently under someone elses name correct? This would be called Assumption of Liability. Here is a direct link to get the process started. http://vz.to/1zruXOX
    JorgeO_VZW
    Follow us on Twitter @VZWSupport

  • Want to Track PO number from AUC settlement document in KO88

    Hi,
    I am settling AUC to CWIP in KO88.
    Accounting document is created. I want to find the PO document. How can I track the PO document linked to this AUC.
    Please advice.

    Can you try the List of Origin Reports by cost elements S_ALR_87012060? The report has drill down capability to show the WBS linked to the asset.

  • Finding the lowest number from several columns

    Hi all,
    I'm analysing data from students' two years course where they had 4 units. What I'd like to be able to do is see at a glance which of the 4 units for each student was their lowest - therefore allowing me to see if one unit in particular was letting them down. see pic and the 4 highlighted columns.
    I have got the info as a graph, but you have to look individual at each one.
    Can anyone help with a formula that could present the results for each student by the column header. E.g. In column A is the student names and in column B is the name of the column they got the lowest mark (in this case MS1, MS2, MS3 or MS4). I would love to be able make this as will really help next year's cohort!
    Best,
    Greg

    Hi Greg,
    Have a look at the SMALL function. It allows you to see the smallest, second smallest... value in a list.
    The SMALL function returns the nth-smallest value within a set of numeric values. The smallest value is ranked number 1.
    SMALL(value-set, ranking)
    value-set: A collection of number values, date/time values, or duration values. All values must be of the samevalue type.
    ranking: A number value representing the size ranking of the value you want to retrieve. ranking must be in the range of 1 to the number of values in the collection.
    Type = in a cell to bring up the Functions Panel. Type small in the search box.
    Regards,
    Ian.

  • I want to sent to values from a form to the sevlet

    Hello
    I have a html file with some like that:
    <form action="htpp://myservlet" method="post">
    <label>Select your favorites interests</label>
    <input type="checkbox" name="interests" value="Economy" />
    <input type="checkbox" name="interests" value="Sports" />
    <input type="checkbox" name="interests" value="Computers" />
    </form>
    In the servlet I've got:
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    String interest= request.getParameter("interests");
              if(interes!=null){
                   String[] interests= request.getParameterValues("interests");
                   String value ="";
                   for(int i=0;i<intereses.length;i++){
                        value += interests[i]+",";
         }     Well at the moment everything easy, I get my interest choosen, Economy, Sports, .... But What I want it's to get names (as now) and some id value as well.
    For example: Economy is 1, Sports is 2, Computers 3, and so forth. So I want to get from html the interest pick it but and number identicative for any option selected. If I choose Economy and Computers, this getParameterValues("interests"), I get Economy and Computers, but I would like to get 1 and 3 as well.
    I don't have really idea how to do this.
    Tranks in advance

    I think you want something like this:
    <input type="checkbox" name="interests" value="1" /> Economy
    <input type="checkbox" name="interests" value="2" /> Sports
    <input type="checkbox" name="interests" value="3" /> Computers

Maybe you are looking for

  • MacBook Pro 15" Retina 2013 slow down

    Hi Apple Support Experts, My almost new MacBook, bought in november, suddenly started to work slower and lost the flow of the OSX. I have been using same MacBook with worse spec (8GB and less memory) for a year before that without any problem when it

  • HT4847 Icloud storage

    I am a Smow Leopard User. I use Icloud only for mail and currently my account only has 8 messages. Why do I receive emails from ICLOUD telling me my Icloud storage is almost full? HOw can this be possible? There are no attachments, I didn't by anythi

  • LMS 3.2 - Problem with inventory of switches using AAA authentication

    Hi all, we want to migrate our network equpiment from local authentication (telnet password, enable password) to AAA authentication (Cisco ACS server - username, password for priv level 15). The network devices are managed with CiscoWorks 3.2 and inv

  • Upgrade from Broadband option 1 to option 2 - Help...

    I'm confused! Today I upgraded from option 1 to 2, and shortly after received a welcome email with my new username/email address! I don't want to change these, all I want to do is increase my monthly allowance from 10gb to 40gb! The email also says t

  • Adobe crashes on printing - unless I open the file and wait for 10 seconds

    We are having printing issues with Adobe Acrobat X or Xi Standard and or Professional on client PCs running Windows 7 32 Bit OS. If we open a PDF file and request a printed copy Adobe crashes. If we open the documnet and wait 10 seconds before printi