How to use a formula to create a result based on a column

Hi all

So, I tried and failed and so turn to those of you who have much more experience than me

I have two columns, SHIFT and OFF.  There is a line for each day of the month.  In the column SHIFT is will be the 'Day' or 'Night' and in the column OFF it will be either empty or contains an "X".

I need three cells settled to reflect every day, night and OFF totals.

How the hell can I achieve that?

Thanks in advance for your help.

COUNTIF can help you here:

In B2 of table 2:

= COUNTIFS(Table 1::B,A2,Table 1::C,"<>"&TRUE)

In table 2 B3:

= COUNTIFS(Table 1::B,A3,Table 1::C,"<>"&TRUE)

IN B4:

= COUNTIFS (Table 1::C, TRUE)

I formatted the column C of table 1 as checkbox, a little easier to type in an X.

As an alternative, you can have just a column formatted as a pop-up Menu with three values: day, night, Off and use COUNTIF or COUNTIF for those who count.

If you are looking for COUNTIF and COUNTIF in help > formulas and functions help you will see they work with pairs of columns-condition.

SG

Tags: iWork

Similar Questions

  • How to use PL/SQL to create dynamic action to set the value of a selection by another list?

    Hello

    I would like to know how to use PL/SQL to create dynamic action to set the value of a list of selection by another selection list.

    1.PNG

    I wish can create dynamic action to manage the two above the Room select list (: P9_ROOM) and building (: P8_BUILDING).

    When you select "1074" in the bathroom, building highlights like "BRM BLD 5"

    When you select 'Area of the black box' in the room, building must assign the value "7 BLD BRM"

    When the room is Null, building should also be Null.

    I thank you,

    Alice

    I forgot to mention, for the PL/SQL Code, because you are working with items in the selection list, the return values are different from the display on your LOV values, you must instead use the return values.

    Thank you

    Erick

  • How to use a formula in column in the main query?

    Hi all
    I tried to use a formula columns defined in a query in the State of the query like this:
    where (: cf_ex -: cf_ex2) > = 5
    but when I run the report returned data! Why? and how to use the status of the query?

    Note: I'm using Forms 6i

    I gave you the reason:

    Formula columns are not part of the select statement (which runs in the database), but are dealt with in the report.
    So you actually reference the user settings in the query, not formulas columns.

    (Well, I should have said "you are referencing empty connection parameters", but with your experience you could have understood that)
    and the solution:

    Create database for cf_ex and cf_ex2 functions and use them in your application.

  • How to use this formula for images?

    Hello!

    I'm new to Labview and I don't get the following problem.

    What I want to do is to use the following formula with three colors BMP

    I = sqrt [(I1-I2) ^ 2 + (I1 - I3) ^ 2 + (I2 - I3) ^ 2] I is the intensity resulting, I1, I2, I3 are the intensities of three images.

    For the moment, I use images already recorded, later I would get from a camera (get 1 image, move Piezo; get 2 picture, move Piezo...)

    I tried to convert the images to the bays and apply the formula to them, but that didn't work.

    So, how do this calculation?

    Is it possible to transmit images to Matlab? (I used Matlab for now and its working fine, but I need to automate the entire process)

    I hope someone can help ^^

    Pandamutze

    PS: I use Labview Version 8.6, including LabviewVision

    the problem is almost solved. I get the right image, just a bit darker than the resulting image of matlab computation

    I have attached my last VI if anyone is interested

    Thanks to you, think of your hundred helped a lot ^^

    Kind regards

    Pandamutze

  • How to use the api to create users of developer class

    Hello

    I have the following code that will create end-users but im trying to create Developer users. the code creates end-users in designated work space, but I have to log on as admin admin apex to use and them to developers.

    Any ideas on why this won't mark the user as a developer?

    The database schema where it is built has the admin role assigned.

    TIA
    Richard.

    FUNCTION create_workspace_user (p_username in varchar2) return a Boolean value
    is

    l_workspace_name varchar2 (50);
    Boolean l_user_ceated: = false;
    l_wks_id NUMBER;

    number of lv_user_id;
    lv_workspace VARCHAR2 (255);
    lv_user_name VARCHAR2 (255);
    lv_first_name VARCHAR2 (255);
    lv_last_name VARCHAR2 (255);
    lv_web_password VARCHAR2 (255);
    lv_email_address varchar2 (240);
    date of lv_start_date;
    date of lv_end_date;
    number of lv_employee_id;
    lv_allow_access_to_schemas varchar2 (4000);
    lv_person_type varchar2 (1);
    lv_default_schema varchar2 (30);
    lv_groups varchar2 (4000);
    lv_developer_role varchar2 (4000);
    lv_description varchar2 (240);
    date of lv_account_expiry;
    lv_account_locked varchar2 (100);
    number of lv_failed_Access_Attempts;
    lv_change_pwd_on_first_use varchar2 (100);
    lv_first_pwd_use_occurred varchar2 (100);

    l_developer_role VARCHAR2 (255) default ' ADMIN: CREATE: DATA_LOADER:EDIT:HELP:MONITOR:SQL';
    l_description VARCHAR2 (255) default 'user Sandbox ';
    l_firstname varchar2 (30);
    l_surname varchar2 (30);
    l_password varchar2 (100);
    l_email varchar2 (50);

    Start

    Select nom_espace_de_travail
    in l_workspace_name
    of apex_user_workspace_required
    where workspace_created_flag = 'Y '.
    and username = p_username;


    Select the first and last name, e-mail, apex_secure_data.decryptor (password)
    in l_firstname, l_surname, l_email, l_password
    of apex_user_repository
    where username = p_username;

    l_wks_id: = apex_util.find_security_group_id (p_workspace = > l_workspace_name);

    workspace-set security id
    wwv_flow_api.set_security_group_id (l_wks_id);

    apex_util. CREATE_USER (p_user_name = > p_username,)
    p_first_name = > l_firstname,
    p_last_name = > l_surname,
    p_description = > l_description,
    p_web_password = > l_password,
    p_email_address = > l_email
    );

    lv_user_id: = APEX_UTIL. Widzilem (Upper (p_username));

    APEX_UTIL. () FETCH_USER
    p_user_id = > lv_user_id,
    p_workspace = > lv_workspace,
    p_user_name = > lv_user_name,
    p_first_name = > lv_first_name,
    p_last_name = > lv_last_name,
    p_web_password = > lv_web_password,
    p_email_address = > lv_email_address,
    p_start_date = > lv_start_date,
    p_end_date = > lv_end_date,
    p_employee_id = > lv_employee_id,
    p_allow_access_to_schemas = > lv_allow_access_to_schemas,
    p_person_type = > lv_person_type,
    p_default_schema = > lv_default_schema,
    p_groups = > lv_groups, - new
    p_developer_role = > l_developer_role,
    p_description = > lv_description,
    p_account_expiry = > lv_account_expiry,
    p_account_locked = > lv_account_locked,
    p_failed_Access_Attempts = > lv_failed_Access_Attempts,
    p_change_password_on_first_use = > lv_change_pwd_on_first_use,
    p_first_password_use_occurred = > lv_first_pwd_use_occurred);

    lv_change_pwd_on_first_use: = 'n';
    lv_default_schema: = 'SOMETHING ';

    APEX_UTIL. EDIT_USER)
    p_user_id = > lv_user_id,
    p_user_name = > lv_user_name,
    p_first_name = > lv_first_name,
    p_last_name = > lv_last_name,
    p_web_password = > l_password,
    p_new_password = > l_password,
    p_email_address = > lv_email_address,
    p_start_date = > lv_start_date,
    p_end_date = > lv_end_date,
    p_employee_id = > lv_employee_id,
    p_allow_access_to_schemas = > lv_allow_access_to_schemas,
    p_person_type = > lv_person_type,
    p_default_schema = > lv_default_schema,
    p_group_ids = > lv_groups, - new
    p_developer_roles = > lv_developer_role,
    p_description = > lv_description,
    p_account_expiry = > lv_account_expiry,
    p_account_locked = > lv_account_locked,
    p_failed_Access_Attempts = > lv_failed_Access_Attempts,
    p_change_password_on_first_use = > lv_change_pwd_on_first_use,
    p_first_password_use_occurred = > lv_first_pwd_use_occurred);


    Update apex_user_required
    Set user_created_flag = 'Y ',.
    run = sysdate
    where username = p_username
    and user_created_flag = 'n';

    COMMIT;

    l_user_ceated: = true;

    Return l_user_ceated;


    end create_workspace_user;

    Looks like your fetch_user in l_developer_role overrides its default value and your use of the lv_developer_role in edit_user then passes in null value.

    Scott

  • How to use the formula to give strength to nic as 3mg for vials of 10ml times 10 and 30 ml times 10 as the sum if formula

    I would like to find the formula to get amount in ml for a specific flavor and strength, above is a screenshot of what I have, I want to find the total ML anyway.

    something like SUMIF.  Force 18, A2, Bottlesize * quanitty, but if I do that it returns an incorrect amount. so as the size of bottle of 18mg, A2, works on the total of the size of the bottle, but I want to calculate the size strength then bottle by quanitty so I should be able to have 10ml and 30ml and quantitys different for some force so I should finish with total quantiy off varied packaging

    18mg, A2, 10 x 10 ml

    18mg, A2, 30 ml x 5

    18mg, A2, 120 ml x 2

    so they should add up to 490 no 160

    If I understand your question, you can do something like this:

    = SUMPRODUCT (C, D)

    SG

  • How to use Javascript to populate a text field based on a selection in a drop-down list?

    Greetings,

    I have virtually no experience with JavaScript and I'm trying to find a way to add some functionality to basic Automation to a form of Adobe.  I have a drop down box called "Hospital_Name" which will contain about 7 possible selections.  When the user makes a selection, I would like to have the field of text (called "Hospital_Address") under the drop-down list fill with the corresponding address to the selection.  I have the "Hospital_Address" text field set up for multiple lines and want the address to have a line break between the address and the city/province/postal code.

    For example, if the user has selected "Hospital 1", the text field would display:

    123 main St

    Anytown, CA 12345

    Help or you can provide examples would be greatly appreciated.

    'Re missing you the document level script that sets the data object and setItems function.

    document level JavaScript; Could be placed in the action open to the page if you cannot access the document JavaScripts level;

    Place all the pre-population data into a single data structure
    var Location = {}
    ' - Hospital - ': {line1: "', line2:" "" "},
    'Bellevue Medical Center': {line1: "2500 BMC Drive", line2: "Bellevue, NOT 68123"},

    "CHI Bergan Mercy": {line1: "7500 mercy Road", line2: "Omaha, NOT 68124"},
    'CHI Emmanuel': {line1: "6901 N 72nd Street", line2: "Omaha, NOT 68122"},
    'CHI Lakeside': {line1: "16901 Lakeside Hills Court", line2: "Omaha, NOT 68130"},

    'CHI Midlands': {line1: "11111 s. 84th Street", line2: "Papillion, DON'T 68046"},
    'Creighton University Medical Center': {line1: ' 601 n. 30th Street ', line2: "Omaha, NO 68131"},
    'Nebraska Medical Center': {line1: "4400 Emile Drive", line2: "Omaha, NOT 68105"}
    };

    function SetFieldValues (Hospital_Name) {}
    location [Hospital_Name] .line1 = this.getField("AddLine1").value;
    this.getField("AddLine2").value = location [Hospital_Name] .line2;
    }

    end document level scripts;

    custom script hits;

    If {(event.willCommit)

    If (event.value == "") this.resetForm (["AddLine1", "AddLine2"]); of other SetFieldValues (event.value);

    }

    end of custom keystroke script;

    Note the formatting of the elements in a column as a line we can help revise the code. Also use a text editor for processing code.

  • How can I return results based on 2 columns?

    I have had a problem and it cannot know for life. First of all, here is a series of example data that I use so you can see exactly what I'm asking.

    EmplId Effdt Effseq            

    10001 1 JANUARY 99 ' 0

    10001 1 JULY 11 ' 0

    10001 1 JULY 11 ' 1

    10001 1 JULY 11 ' 2

    10001 1 JULY 12 ' 3

    Do I have to do here is get 3 ranks. 3 rows, I need are lines 1, 4 and 5. I need rank 1 because it's a different date. I need line 5 for the same reason: it is another date. The question arises with how I can get the rank 4. The problem is that the lines 2, 3, 4, and all have the same date (effdt) effective, Developer SQL just returned one of these lines. Because these 3 rows all have the same date (effdt) effective the switch becomes the actual sequence number (effseq). When the date (effdt) effective is the same, you enter the maximum number of sequence (effseq) effective and return results of this whole line as the emplid, effdt and effseq. It seems so simple and something that you can use a subquery for, but its not as simple as that. Note, that you can specifically use the emplid = 10001 in any specific form because there are many employee also id, the lines will not be in a specific order so that you can always just grasp the lines 1, 4 and 5. Some employees may have only a single line in the database, and some may have 50 lines. Everything depends only on the combination of employee id (emplid) date (effdt) efficient and effective sequence (effseq) as the tiebreaker. Any help to fix this would be greatly appreciated. Thank you in advance.

    WITH t
         AS (SELECT 10001 emplid,
                    TO_DATE ('01-JAN-1999', 'dd-mon-yy') effdt,
                    0 effseq
               FROM DUAL
             UNION ALL
             SELECT 10001, TO_DATE ('01-JUL-2011', 'dd-mon-yy'), 0 FROM DUAL
             UNION ALL
             SELECT 10001, TO_DATE ('01-JUL-2011', 'dd-mon-yy'), 1 FROM DUAL
             UNION ALL
             SELECT 10001, TO_DATE ('01-JUL-2011', 'dd-mon-yy'), 2 FROM DUAL
             UNION ALL
             SELECT 10001, TO_DATE ('01-JUL-2012', 'dd-mon-yy'), 3 FROM DUAL)
    SELECT emplid, effdt, effseq
      FROM (SELECT t.*,
                   ROW_NUMBER ()
                      OVER (PARTITION BY emplid, effdt ORDER BY effseq DESC)
                      rn
              FROM t)
     WHERE rn = 1
    
    EMPLID EFFDT EFFSEQ
    10001
    01/01/1999
    0
    10001
    01/07/2011
    2
    10001
    01/07/2012
    3
  • regexp_substr - how to search for two different words and result based on returning a different part of the string

    Hello everyone

    I fight with this regexp_substr and I wonder if there is a way to deal with it. I have two string type in a column with the following structure:

    structure 1 always starts with "app.catalog.school.", as the following three examples

    app.catalog.school.DB.BT

    app.catalog.school.B.FTA

    app.catalog.school.ACA.CD

    structure 2 always begins with "app.catalog.admin.", as the following three examples

    app.catalog.admin.C.ABC

    app.catalog.admin.BT.AP

    app.catalog.admin.MI.RT

    If the value of the field begins with "app.catalog.school." it should return everything after the last period (.) as follows

    BT

    FREE TRADE AGREEMENT

    CD

    If the value of the field begins with "app.catalog.admin." it should return the string between the third and fourth period (.) as follows

    C

    BT

    MI

    I actually have a solution to this:

    decode)

    regexp_substr (myfield, ' [^.] +' 1, 3), 'school', regexp_substr (myfield, ' [^.] +' 1, 5), "admin", regexp_substr (myfield, ' [^.] +' 1, 4)

    )

    I am not happy with the solution above using decode(). I think I should be able to solve this problem purely with reg_exp but after hours to try again without success. You have better solution/suggestion?

    I use Oracle version 10.2. Thank you very much.

    Oops: Oracle version 10.2, here to use regexp_replace

    WITH testdata UNTIL
    (SELECT 'app.catalog.school.DB.BT' FROM DUAL str

    UNION ALL

    SELECT 'app.catalog.admin.C.ABC' FROM DUAL
    )

    Select
    Str
    , regexp_replace (str, ' ^. * (admin | school\.)) [ ^.] +)\. ([^.] +). (* $', "\2") res
    of testdata

    RES STR

    "app.catalog.school.DB.BT" 'BT '.

    'app.catalog.admin.C.ABC' 'C '.

    to 11.x, we can use regexp_substr because he has this subexpression setting more pure accident.

    WITH testdata UNTIL
    (SELECT 'app.catalog.school.DB.BT' FROM DUAL str

    UNION ALL

    SELECT 'app.catalog.admin.C.ABC' FROM DUAL
    )

    Select
    Str
    , regexp_substr (str, ' (admin | school\.)) [ ^.] +)\. ([^.] +)', 1, 1, null, res) 2.
    of testdata

    STR RES
    app.catalog.school.DB.BT BT
    app.catalog.admin.C.ABC C

    Post edited by: extended chris227

  • How to use newly created database in oracle

    Hi friends,

    I created a new database in the name of the model and I dono how to use this database.

    can someone help me through the process step by step.

    Note: I use the oracle 11g and working in the command prompt

    I thank in advance

    2749241 wrote:

    In fact, I learn about dblink so I need to know how to use it

    I created db using DBCA

    After I created db as a model and when tried to use the fake database

    his spear a mistake as TNS Protocol adapter error...

    Help me to enter this dummy database...

    Thank you

    That error is normally due to the eitehr you have a bad SID or in the service of the database is not started. In order to check what applies to you. Do a Google search for the same mistake.

    Aman...

  • How do column filter based on another column

    In my report, I have column a thru d. I would like to create a filter based on another column where column is column B. I can enter a value that the column cannot be equal to, but I would use a column instead of a value.

    Thank you.
    Jonathan

    Try this: icon on the filter columns->-> convert this advanced filter for SQL
    You can reference any other column

    BTW: Have you had a chance to look at my suggestion for your post
    Tables from a Table

  • How to use the TRUNC of DB function in "Evaluate" when you create a filter?

    When I create a new filter on a column with the expression: Evaluate ('Trunc (%1, %2)' Timestamp, 'Time'. ("' SURVIVE ', 'MONTH')

    OBIEE gives the following error:

    The formula syntax is not valid.

    Assertion failure: column! = 0 to 1205 of the project/webreport/reportmetadata.cpp line

    OK (ignoring the error)

    "Time". "' SURVIVE ' is a timestamp column, having dates.

    Can someone help me on how to create this expression correctly?

    Thank you.

    You don't have to use function should be assessed, bI is capable of it.

    Make sure that (you must have this value in db) that required your this timestamp column is

    min (columnName by month (columnName))

    Thank you

    http://cool-bi.com

  • I created a template. How to use it?

    I created a template for an e-mail message that I want to customize many different recipients. The model is in the 'Template' folder How to use this template? Thank you!

    _ http://KB.mozillazine.org/Thunderbird: _FAQs_:_Using_Templates

  • How to use formulas to extract a picture from the base of the summary sheet

    Hi, I have a database of over 1,000 products. each has a picture. and I want to extract the picture of a product to see the summary of this product. And I hope

    and every time I change the name of the product indicates the corresponding picture in his column. I tried the lookup function, but is does not work. I used the DRAG & DROP

    to put the photo in the database. How can I solve this problem? Thanks Yanni [email protected]

    Hi Tulip.

    What you ask is likely not possible in number.

    Cells in a table of numbers can act as "containers" for images. Images can be placed in the cells only as a 'picture fill", which is the 'format' rather than 'content '.

    'Format' can be changed by using a formula.

    You might try experimenting an AppleScript script to copy the actions you would take to make the transformation thi "by hand." While such a solution may be possible, it is not one that I can recommend.

    To include images that can be changed according to what data are placed in another field in the record, you will need to probably upgrade the capabilities of "Manager of the list" numbers to a real database application, like FileMakerPro, making fields "container" include that can contain an image 'data' rather than 'filler '.

    Kind regards

    Barry

  • How to use AppleScript to create a menu shortcut in figures?

    Does anyone know how I can create a pop up menu numbers using AppleScript.

    say application "Numbers".

    activate

    say le first table of the sheet active of the document 1

    the value the format of cell "B3" to popup menu

    end say

    end say

    I can create a pop up menu by using this code, but this is the default list.

    If I have a composed list {'mouse', 'Keyboard', 'Trackpad'}, how would be to create a context menu with these items?

    Thanks in advance.

    Steve Longley

    Hi Steve,.

    I wonder why you feel the need to use (or what you think you would get to use) an AppleScript to create a cell in the context menu.

    With the help of numbers 3, it's a fairly simple process:

    Open a table, or use a column with enough empty cells to accommodate the menu in the menu items.

    Access to the list of items of a line in your column.

    Select all cells that contain entries.

    Open the Inspector to Format, choose the cell, choose the context menu.

    Any selected cell now contains the same menu, each set to the original value in this cell.

    If you want that each menu includes a "white" cell, then:

    Select all the cells (three).

    Modify the beginning with... pop - up 'Start with white '.

    Click on one of the cells, and then click control v next to the cell to display the menu choices. Each cell contains the same menu with the value initially entered in the selected cell, so what a no point, which will produce a cell empty, at the top of the list.

    The menu can be copied and pasted into other places or can be filled in the column or line using the handles to fill yellow appearing in the centres of the edges of the cell when the mouse cursor is brought near. The cell glued/filled setting will be the same as that of the pasted source cell.

    Kind regards

    Barry

Maybe you are looking for

  • S-video on Satellite Pro A100 problem

    Hi, I recently bought a new satellite pro a100 with XP pre-installed-one of my main reasons to choose this as the price was the built-in s-video connector so I can get my screen up on my tv. However, I have not yet got it working and you'd be gratefu

  • Still need AHCI driver for Win XP for Satellite L500D-159

    I apologize for the insistence, I followed the path of Tonny, but the pilot, that it is not set, compatibly Xp is slower and I can't use the dual boot with Win 7. I tried with Nlite + Xp, but he continues to not read the fixed disk. Thank you

  • power adapter 608425-002

    During a trip overseas (220 volts) can I use my power adapter 608425-002 normally with my HP G72 laptop as I have the right plug adapter?

  • Swipe to unlock or none

    I can't activate call unlock or none for my premium double Xperia Z5, can anyone help

  • HP Deskjet 2540: Deskjet 2540 status offline

    I have a deskjet 2540/scanner printer, which shows in offline mode in each program with the exception of hp printer control app. It works perfect in this application in windows 8. I have all the updates made since 08/07/15 HP I have all the updates o