Amount based on certain letters in another column values

Hello

1. I would like to help to design a formula that sums values based on the presence of "coding" letters in another cell.

Basically, I have an information line that contains several different values in individual columns. Then, I want to have a cell "coding" that relates to that particular line, when I hit a certain letter or more likely letters. These letters say provide more information on the values of the row. I want to summarize some columns that depends on the presence of certain letters in the "coding" cell, but my current use the SUMIF formula (e.g. SUMIF (g4:g6, "m =", A4: A6 "totals only values in A4: A6, if ONLY the letter am' is located in g4:g6 - while I need the formula for hunting the letter'm ' even if there is no other letters in the same cell with him - for example g6 cells which")) contains 'Sir'

2. in addition, I would like to have the spreadsheet sum up occurrences of places (frequency) and sales of each place. I have maybe up to 40 locations to manage - so, how do I write a SUMIF formula that takes everywhere? Should be a long embrace formula that lists all of the 40 locations?

I hope someone can help!

Thanks in advance

Matthew

PS - It's just a spreadsheet example - real is normally 100 long lines for each month, so I have to get as automated as possible summary functions!

You can use wildcards in SUMIF and SUMIFS, like this:

= SUMIF(G,"*m*",A)

BTW, your layout seems very "Excel-like". Suggest that you break your table to enjoy the design of the numbers. Here, my tier 6 is defined as a footer line.  This way I can simply reference to column G without worrying about which define a particular range.

SG

Tags: iWork

Similar Questions

  • Column sum based on a single value of another column

    Hi all

    I've searched and searched, but just can't find if this is even possible, let alone how to do it.  What I'm trying to do, it's the sum of a column.  However, only summarize the results of this column if a specific value of another column is present.  So, for example, the following is a sample database entry:

    Rate of pay hours

    2.3                                  $14.00

    1.2                                  $14.00

    2.4                                  $12.50

    0.75                                $12.50

    So for that, I want the sum of hours worked column but only the sum of hours worked if the wage rate is $14.00 and $ 12.50.  Because these numbers are generated in a database (with the various people who enter multiple rates of pay), I won't be able to set the where statement to have a specific amount (since I don't know the specific amount each registrant), the amount must be a variable in the where the statement.  With MySQLI, I know not how to make the sum of hours worked, but I do not know how the sum of hours worked if and only if the line corresponds to the unique value in the rate column.

    Then have it automatically loop through and total hours worked for other unique values in the column salary rate.  Finally, out all unique values in the column rate in variables so that I can do the following for each game:

    $total1 = $total_hours1 * $wage_rate1
    $total2 = $total_hours2 * $wage_rate2
    $overall_total = $total1 + $total2
    

    where $wage_rate1 = $14.00 and $total_hours1 = 2.3 + 1.2: etc.

    Is it still possible?  If so, how?  If possible, can someone please let me know a good reference so I can learn how to be the best way to implement?

    Thank you

    So with that, I get the correct $final_total printed, but I still get the error, 'notice: Undefined variable: final_total. Why is it not defined, but prints the total exact? How to remove the error?

    You get this notice is because you use the assignment combined, operator that is normally used to add a value to a variable and assign the new value to it.

    $final_total += $total;

    is a shortcut for this:

    $final_total = $final_total + $total;

    The undefined $final_total is on the right side of the assignment operator. The first time through the loop, you add $total to a non-existent value. Because of the type of PHP juggling, this becomes:

    $final_total = 0 + $total;

    The next time the loop runs, $final_total has a value, so that you get the view variable not defined only once.

    To avoid advice, initialize $final_total to zero before the start of the loop.

    $final_total = 0;

    While ($row = {$sql-> fetch_array())}

  • 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

  • Delete based on another column dublicate records

    How can I remove duplicate records, based on another column.

    the table structure
    CREATE TABLE IA_EXPORT_LEVEL
    (
    A_NO VARCHAR2 (22 BYTE),
    IM VARCHAR2 (18 BYTE),
    ctn_level NUMBER (2)
    )

    reviews
    A_NO IM ctn_level

    S1 S1 1
    S1 M1 2
    S1 h1 3
    H2 S2 1
    S2 h2 2
    S3 h1 2
    S3 h1 3
    S4 h6 4
    S4 h6 5

    I want to delete all records other than the minimum value of the ctn_level

    output should like below
    S1 S1 1
    H2 S2 1
    S3 h1 2
    S4 h6 4

    Published by: OraFighter on December 16, 2011 13:44
    DELETE FROM IA_EXPORT_LEVEL where rowid IN
    (select rid from
    (select rowid rid, row_number() over (partition by A_NO,IM order by ctn_level) rn from IA_EXPORT_LEVEL )
    where rn > 1 )
    /
    

    Hope your question.

  • Filter column based on another column - OBIEE 11 g

    Hi, I have a strange requirement. I am trying to build a dashboard that allows a user to view the data for the current day, last week, last month or last year. I'll create a presentation called "date_range" variable where the user can choose one of these 4 options.

    On this basis, I defined a column in answers with the following formula:

    Cast
    (
    case
    When 1 = 0 then 'time of the query. "" Date ".
    When @{date_range} {"day"} = 'Day' then Current_Date
    When @{date_range} {'week'} = 'Week' then TIMESTAMPADD (SQL_TSI_DAY,-7, CURRENT_DATE)
    When @{date_range} {"day"} = 'Month' then TIMESTAMPADD (SQL_TSI_DAY-30, CURRENT_DATE)
    When @{date_range} {"day"} = 'Year' then TIMESTAMPADD (SQL_TSI_DAY,-365, CURRENT_DATE)
    of another TIMESTAMPADD (SQL_TSI_DAY,-10000, CURRENT_DATE)
    finish DATE
    )

    Based on the variable 4 presentation, this should give the good 'start date' when to extract data.

    Now, I've added the effective date of the date dimension column. But I need to put a filter on the date dimension date column that says that it is greater than or equal to the above computed column. How do I do that?

    Thank you
    Scott

    I always expect that you are pregnant, but you cannot filter a column on another column. The solution is just to write a formula that returns a literal, so it will be

    When case (your date column) > = (your long form), then put end to 'Y' else ' n

    Then filter this column on 'Y '.

    Kind regards

    Robert

  • Get the cumulative values in a single column based on another column in reports

    Hi all

    I have a requirement to get cumulative values based on another column.
    I 'Sales rep name' in the first column.
    Correspondent "Values of the invoice line" in the second column.
    Want to have cumulative of all the values for each sales invoice line.
    Then apply rank and display the top 10 sales reps based on invoice lines.
    Since there is no rank option in the PivotTable, I do this in the report table.

    Looking for the best entries...

    Thanks in advance...

    Try below
    2nd column: "name of Sales rep.
    column 2: SUM ("invoice line values ' BY 'Name of Sales rep'") and sort this field desc.
    3rd column: fx RANK (SUM ("invoice line values" BY "Sales rep name")), to hide this column, so that you don't confuse your users.

    and put the filter on the 3rd column below 5

    I hope this works for you

  • AF:Switcher, handfuls of line column values based on another column in the table

    Hello

    I have a question if you can help me on this. It's on af:switcher.

    What I'm trying to do this - is in a table of the adf, based on the value of a column, I want another column to display as a link or not.
    For example, if the status column is 1, then the id column display as a link (I just put a h:outputLink around outputText to do), if it is then show him without bond.

    For this I put two different facets and opportunities switcher to decide what facet of show which line.

    BUT what is happening is that only on opportunities is made. Either / or scenario. It is not made each line according to the value of the status column.

    What is planned.

    I just tried with the dept table.

                    
                    
                    
                      
                    
                    
                    
                        
    
                      
                    
    

    The lines for which the deptno > 20, I wanted to display the pass as link and for the deptno<=20, log="" will="" be="" an="" input="" text.="" it="" works="" fine="" for="" me.="" probably,="" you="" may="" need="" to="" get="" rid="" of="" h:outputlink="" and="" use="" commandlink="" golink="">

    Arun-

  • Link conditional branching to two different pages, based on another column

    Hello

    I have a sql report in which 1 column is a link. I want to link to two different pages depending on the value of another column.

    Example of

    the sql is

    Select a, b, c
    x;

    The link on column b must create a branch to the 500 page if c = 1 and on page 501 if c = 2.
    Is it possible to do? Thank you.

    Suni

    Can assign you points then accordingly...

    Thank you

    Tony Miller
    Webster, TX

  • How to merge values into a line, based on distinct values in another column

    I have a table like

    updatedby updateddate text
    Approval John 1st May 2009 1 added file
    Approval of John 1 May 2009 2 added file
    May 2, 2009 1 deleted David approval form

    I need the text column values to be concatenated and displayed for unique (updatedby updateddate) records. The output is something like

    updatedby updateddate text
    Approval of May 1, 2009 John save further approval 1 sheet, 2 added
    May 2, 2009 1 deleted David approval form

    I had planned to do it using PLSQL. Is there a way to achieve this in SQl...? Please suggest
    SQL> ed
    Wrote file afiedt.buf
    
      1  with t as (select 'John' as updatedby, to_date('01-May-2009','DD-MON-YYYY') as updateddate, 'Approval record 1 added' as text from dual union all
      2             select 'John', to_date('01-May-2009','DD-MON-YYYY'), 'Approval record 2 added' from dual union all
      3             select 'David', to_date('02-May-2009','DD-MON-YYYY'), 'Approval record 1 removed' from dual)
      4  -- END OF SAMPLE DATA
      5  --
      6  select updatedby, updateddate, ltrim(sys_connect_by_path(text,','),',') as text
      7  from (
      8    select updatedby, updateddate, text, row_number() over (partition by updatedby, updateddate order by text) as rn
      9    from t
     10    )
     11  where connect_by_isleaf = 1
     12  connect by rn = prior rn+1 and updatedby = prior updatedby and updateddate = prior updateddate
     13  start with rn = 1
     14* order by 2
    SQL> /
    
    UPDAT UPDATEDDA TEXT
    ----- --------- ----------------------------------------------------------------------------------------------------
    John  01-MAY-09 Approval record 1 added,Approval record 2 added
    David 02-MAY-09 Approval record 1 removed
    
    SQL>
    

    Edited by: BluShadow May 21, 2009 12:37
    Argh! hair to the pole by SY

  • Sum according to the condition of another column

    Hello
    I develop a RTF to BI Publisher 11g, where the situation to make the amount based on the value in another column I
    The sum of the column C amount what code = c
    Total sum of D of the column amount what code = D

    DATE CODE total
    Apr - 13 C 234
    Apr - 13 C 234
    Apr - 13 C 234
    Apr - 13 D 100
    Apr - 13 D 100
    Apr - 13 D 100
    Total C 702
    Total D 300

    Please, let me know the formula or the workaround to achieve this.

    Kind regards
    Agnes

    Need to see your xml structure to provide you with the exact code

    Assuming that it is the structure:

    Apr - 13

    C

    234

    8

    Apr - 13

    C

    234

    0

    After that you for each group pieces of code are the following:

    Total C:

    Total D:

    Thank you

    Bipuser

  • Firefox is not fully load site Barclaycard of authentication. It load regarding the demand for certain letters in my password but does not load the button 'Submit', so I can't continue with my purchase and I switch to IE8 browser to buy whatever it is ov

    Firefox is not fully load site Barclaycard of authentication. It load regarding the demand for certain letters in my password but does not load the button 'Submit', so I can't continue with my purchase and I switch to IE8 browser to buy anything on the internet. Clues?

    This has happened

    A few times a week

    Is a few weeks ago

    Your UserAgent string in Firefox is totally messed up by another program that you have installed and Barclays does not know you use Firefox 3.6.6 - it is probably similar to IE 6.0 on this site.
    http://en.Wikipedia.org/wiki/USER_AGENT

    type of topic: config in the URL bar and press ENTER.
    If you see the warning, you can confirm that you want to access this page.
    Filter = general.useragent.
    Preferences are "BOLD", a line at a time, and then select reset, right click
    Then restart Firefox

  • Add void partition on another column in oracle

    I have a table that has two partitions (as standard): first_half and second_half, based on a column "INSERT_DAY."

    I must add subpartitions 'SUCCESS' and 'SUCCESS' based on the values in another column 'STATUS' (subpartition by list) that I have to turn my score range on composite (range-list).

    I don't want to drop the existing tables or partitions. What is the ALTER query for this?

    PS: Is Oracle 9i database

    Thanks for posting the actual code. This makes it much easier to see what is happening and test things.

    The requirement is to remove all records with counter = 3 (which means successful load) for records that have more than 15 days.

    Then you should just REMOVE the lines and do with it.

    So I thought, why not create partitions of sub metered so that the final DDL would be something like the following.

    Any change like this for the partitioning of the table means that all data should be transferred into a new segment.

    Please explain how to move all THE data (including the data that you want to remove) is better than just delete the data.

    I would then write a request for DELETION, which would take a long time to run.

    What evidence do you have that a DELETION would "take some time" to run?

    How many lines are there in the table? How many of these lines you want to delete?

  • Insert data into the same table based on certain conditions

    Hello. I'm new to this forum.
    I have to write a stored procedure to insert data in a table MYTABLE say, having a structure like:

    Col1 Col2 Col3... TotalInstallments CurrentInstallment PaidAmount MonthYear
    I have to insert all the data that it is in the same table (MYTABLE) except change some fields based on certain conditions:

    1. if PaidAmount > 0 & & CurrentInstallment < TotalInstallment then

    CurrentInstallment = CurrentInstallment + 1

    2. in the field MonthYear I have data ex. 01/2012, 11/2012 formate(month/year)...

    So, I have to insert data by incrementing the month and year. for example:

    If currentdata is 11/2012 next data will be 12/2012

    But following will be 01, 2013
    I have to select all records that belongs to the previous month (across the field MonthYear) and put the audit on each record selected and insert data and then turns them into table (MYTABLE) even.

    How to achieve that?

    Thank you.

    978184 wrote:
    Hello. I'm new to this forum.
    I have to write a stored procedure to insert data in a table MYTABLE say, having a structure like:

    Col1 Col2 Col3... TotalInstallments CurrentInstallment PaidAmount MonthYear
    I have to insert all the data that it is in the same table (MYTABLE) except change some fields based on certain conditions:

    1. if PaidAmount > 0 & CurrentInstallment

    CurrentInstallment = CurrentInstallment + 1

    2. in the field MonthYear I have data ex. 01/2012, 11/2012 formate(month/year)...

    So, I have to insert data by incrementing the month and year. for example:

    If currentdata is 11/2012 next data will be 12/2012

    But following will be 01, 2013
    I have to select all records that belongs to the previous month (across the field MonthYear) and put the audit & on each of the selected data record and insert then turns them into table (MYTABLE).

    You can do this way:

    This is not tested, but if you can provide the example of table structure and data (IN create table and insert scripts), it can be put to the test.

    insert into your_table
    (col1, col2, col3...current_installment, month_field)
    select col1, col2, col3..,
           current_installment +
           case when paidamount > 0 and current_installment < total_installment then
            row_number() over (
                                partition by column1, column2,.. columnn      -->You may choose partition if you want the
                                                                              --Increment of Current_installment to reset after particular combination ends
                                order by primary_key        -->Order the Increment, you may choose to add more columns to order by
                              )
          else
            0                                               --> if condition is not met, then Add 0
          end curr_installment,
          add_months(to_date(month_field, 'MM/YYYY'), 1) nxt_month
      from your_table;
    
  • I have a column with two values, separated by a space, in each line. How to create 2 new columns with the first value in a column, and the second value in another column?

    I have a column with two values, separated by a space, in each line. How do I create 2 new columns with the first value in one column and the second value in another column?

    Add two new columns after than the original with space separated values column.

    Select cell B1 and type (or copy and paste it here) the formula:

    = IF (Len (a1) > 0, LEFT (A1, FIND ("", A1) −1), ' ')

    shortcut for this is:

    B1 = if (Len (a1) > 0, LEFT (A1, FIND ("", A1) −1), ' ')

    C1 = if (Len (a1) > 0, Member SUBSTITUTE (A1, B1 & "", ""), "")

    or

    the formula of the C1 could also be:

    = IF (Len (a1) > 0, RIGHT (A1, LEN (A1) −FIND ("", A1)), "")

    Select cells B1 and C1, copy

    Select cells B1 at the end of the C column, paste

  • I need an html link tag in answers + concatenate with another column, so that the link may open the site with the countries

    Please share me your ideas for this problem

    in the responses, I need to add a link to HTML and parallel to concatenate it with another column

    example of think this link as https:\\google.com + another column (column for the google link concatenation)

    https:\\google.com + column country so that it can turn directly to page-> https:\\google.com\India

    so that helps me to access a particular site of my organization and opening of a given page

    Hi 3051369,

    Glad it worked.

    Could you please mark this question as answered?

    Thank you

    JeromeFr

Maybe you are looking for