Formula Help - Categorical Summations

I am trying to sum cells by a category. I have two fields, cost and category. I want to take all of the category "apple" and show the total value in a table that is linked to a graph. I am sure that this is some flavor of if statement I just can't figure it out. Can anyone enlighten me?
Any help is greatly appreciated.

Hello
Do you know that the Help is really useful.
The correct syntax is given in it.
Need only to search for the keyword SUMIF
I don't copy from the Help because I'm using the french version.
But the english PDF User guide says:
SUMIF(A1:A8, "<5") returns 10.
SUMIF(A1:A8, "<5", B1:B8) returns 100.
*SUMIF(D1:F3, "=c", D5:F7) returns 27.*
SUMIF(B1:D1, 1) or SUMIF(B1:D1, SUM(1)) both total all the occurrences of 1 in the range.
Yvan KOENIG (from FRANCE jeudi 30 août 2007 11:28:41)

Similar Messages

  • India localization oracle fast formulas help

    hi ..
    anybody help on oracle india localization fast formulas, absence mgmt setup, online payslip setup and tax declaration set up in payroll and sshr basic setups for absence mangt and transfer setup. plz send me on [email protected]

    send me a contract, buy me a ticket, and i fly over.

  • Conditional formula help

    Post Author: scd07
    CA Forum: Formula
    Hi, Crystal Reports novice here...
    I have been asked to take out any lines in several reports with all "0s" in the columns.  I have tried formatting each field to suppress Zeros and then right click on the Description column and click "suppress if blank".  Didn't work.  I then tried to write a conditional formula that I put under the description field (field 1), "common", "formula" and "suppress".  The formula followed the following:
    If = 0 and = 0 and = 0 then true else false
    Unfortunately this also didn't work.  I don't know if my formula is incorrect or if I am entering it in the wrong spot.  Any help would be very much appreciated!  Thank you!!

    Post Author: Bandit07
    CA Forum: Formula
    Right click on what you want to suppress and click the x-2 button next to suppress.  Put your formula in there.
    = 0 and = 0 and = 0,  If all of these conditions are true then it will suppress.
    B

  • MDX formula help

    The formula below works just fine but I want to use a UDA driven member in Member Range and need help.
    IIF(
    Count(
    Intersect(
    {MemberRange( [Jan],[Apr] )},
    {[Time].CurrentMember}
    ) = 1, [Actual], [Forecast])
    I tried with
    IIF(
    Count(
    Intersect(
    {MemberRange( [Jan],UDA([Period],"CurrMonth") )},
    {[Time].CurrentMember}
    ) = 1, [Actual], [Forecast])
    but I get an error Error(1260052) - Syntax error in input MDX query on line 4 at token ')' CalcMbr
    not sure why is this not working - I think UDA() can result in a set but member range is expecting a member only??
    Please suggest any ideas to correct the code.

    also tried with {[Jan]:UDA([Period],"CurrMonth")}
    instead of {MemberRange( [Jan],UDA([Period],"CurrMonth") )} - but no luck
    Any suggestions?

  • Group Formula Help

    Post Author: dmface15
    CA Forum: Crystal Reports
    I have a report that identifies employees and what taxes that employee pays. For example,
    John Doe
    OASDI           $2500
    Medicare        $625
    Jane Doe
    Medicare       $1750
    Michael Smith
    OASDI          $1630
    Medicare       $783
    The report is grouped by Employee name and tax code. The reason for grouping by tax code is because the tabale i am using to get tax code has records for each pay check the employee has received. Here is the problem. I need to create a report that will give me all employees who pay Medicare AND OASDI, all employees who pay ONLY Medicare. Therefore, when I run the report for employees who pay Medicare AND OASDI I should only see Michael Smith and John Doe. If i run the report for all employees who pay ONLY Medicare I should see only Jane Doe. Right now, I am having trouble with creating a formula whether it by group selection or record selection. Can anyone help me out? I would appreciate it. Thanks.

    Post Author: kcheeb
    CA Forum: Crystal Reports
    Have you tried suppressing the group and detail sections based on the report type and count of tax code records? Assuming There are no people with only OASDI tax codes.
    The other option would be to use sql to return you only Medicare people or OASDI & Medicare people.

  • Need formula help - how do i fin duplicates in a list

    I have a list of text data and want to remove duplicates. I think I know how to do it... but I've done a fair bit of searching here and elsewhere and just don't understand how to set it up.
    I assume I should use the Countif function... and then compare the each cell to the entire list to determine if it is unique. Then I get a 1 or 0 result based on whether the data element recurs in the list.
    Problem is the setup and syntax.... I've done a very very little bit of this but don't have a good handle... searching to this point (user guides and forums) I haven't found answer... I know the answer is out there, but I need to get solution as quickly as possible.
    any help greatly appreciated.
    Thanks
    darren
    Oh - number 09 on 10.5.8

    dnim wrote:
    I have a list of text data and want to remove duplicates. I think I know how to do it... but I've done a fair bit of searching here and elsewhere and just don't understand how to set it up.
    I assume I should use the Countif function... and then compare the each cell to the entire list to determine if it is unique. Then I get a 1 or 0 result based on whether the data element recurs in the list.
    COUNTIF($A,A) by itself will give you a 1 if the cell contents are unique within the list, and a larger number if there are duplicates.
    =IF(COUNTIF($A$1:$A2,$A2)>1,"XXXXX","")
    Will leave cells in rows containing the first occurrence of a particular value in a list 'blank'* and mark rows containing subsequent occurrences of the same value with XXXXX (or whatever text is placed between the quotation marks at that position in the formula.
    Results of the second formula (in column C) may be isolated using the "Show rows that match the following" in the Reorganize dialogue, and setting the condition to "Column C"    is not blank
    Oh - number 09 on 10.5.8
    Looks like your profile needs to be updated—currently says 10.5.5.
    Regards,
    Barry

  • Formula help needed

    Hi,
    I have a sheet with abt. 3.000 rows. From one of the rows I want to extract the date. The row looks like this:
    Festgelegt für 5. September 1946 von 09:15 bis 10:15, that is a textstring
    So in the first field I used part to get the Date "5. September 1946" this works fine.
    In the next step I used left;4 to extract the word "Fest", this works fine to
    Now in the next step I want to work with "if".
    What I would like to have a formula that looks like this
    If leftstring4="Fest" than get the partstring"5. September 1946" an fill the field with this date.
    Any help available
    tks in advance
    olaf

    Hi Yva,
    still one problem with the formula.
    "Urlaub
    Festgelegt für 25. Juni 1977 von 09:00 bis 10:00 25. Juni 1977
    Portugal
    Festgelegt für 6. Juli 1977 um 23:00 bis 7. Juli 1977 um 00:00 0"
    as You can see the first row works, but the second not why.
    The errorcode says "could not find " von "
    any idea ?
    like to hear from You
    regards
    olaf

  • Formula help!

    Hi,
    I keep a database inventory list of Video Tape duration and need to know a formula to calculate "time" or "Length" totals.
    ie:
    Tape 1 = 01:43:19:06
    Tape 2 = 00:45:20:12
    where in the first tape example (or any tape for that matter) the digits are as follows:
    xx:yy:zz:ww
    xx= hrs
    yy= minutes
    zz= seconds
    ww= frames
    In this case there are 25 frames to make 1 second, and 24 hours in a standard clock.
    If possible, can you show how to change the formula when the Frame (ww) changes to 24, 30, etc.
    Thank you very much.

    RP,
    You may find this example helpful. I think it's close to your request, but simplifies the problem by doing the entries in separate columns for h, m, s and frames. The second Footer Row is an intermediate calculation which I left exposed for clarity.
    Here are the expressions I used:
    Unit Totals...
    Frames: =MOD(SUM(H),25)
    Seconds: =MOD(H8+SUM(F), 60)
    Minutes: =MOD(F8+SUM(D), 60)
    Hours: =D8+SUM(B)
    Carries...
    Frames: =INT(SUM(H)/25)
    Seconds: =INT(SUM(H8,F)/60)
    Minutes: =INT(SUM(F8,D)/60)
    There is no carry from the Hours total, the hours are just allowed to overflow the 24-hour boundary to larger numbers.
    Regards,
    Jerry

  • Formula Help - Multiple criteria

    I'm fairly new to Numbers and am struggling to work out the formula to manage multiple sumif functions. I want to be able to calculate the total of column 'C' where A & B are identical. For example sum of column C where  A=James, B=Vehicle. Sorry if I'm not being clear. Basically total of $ in 'C' where A = James and B = Vehicle.
    Thankyou in advance for the help. 
    A
    B
    C
    James
    Vehicle
    $100.00
    Tom
    Office
    $200.00
    James
    Office
    $150.00
    Brad
    Vehicle
    $275.00

    Dynamic using cell references. I missed the & to make it work.
    =SUMIFS(Table 1::C,Table 1::A,"="&A2,Table 1::B,"="&B2)
    If lucky James has two vehicles,
    And you can add more combinations to Table 1-1
    Regards,
    Ian.

  • Formula Help Crystal Reports 11

    Hello,
    I am having trouble with a selection formula.  I wrote a report that queries 2 tables that have been joined within my report.  A primary table and a secondary table. The secondary table can contain multiple detail records that are associated with each primary record.
    There is a field in each record of the secondary table that contains an alpha character.  I need a slection formula to scan through the fields of the secondary records and if one of those secondary records has a particular value (In this case "T") I would like ALL of the secondary records included in my report along with the primary record indexed to it.  If no secondary record in the series has a value of "T" then all records should be excluded from the report including the primary record indexed to that series of secondary records.
    Is there a function I can use to accomplish this type of logic?...an example of the appropriate syntax would be helpful.
    Your help is much appreciated!
    Mark

    Hi Mark,
    Use the InStr function.  This will allow you to search for a string and it will return a numeric value which represents the placement. 
    Instr ({Table.FIELD}, "T") > 0;
    This will return all records that have a "T" in that field. 
    Good luck,
    Brian
    Edited by: Brian Dong on Oct 23, 2008 4:39 PM

  • Formula help when offline

    Hi,
    the numbers "formulas and functions" help seems to have moved to the internet, which I am pretty upset about. Now, when I don't have an internet connection (I travel a lot), where can I find the help about the formulas and funcitions? The built-in help only has a list fo links to the online version.
    Thaks
    p.

    papalapapp wrote:
    Thank you. I used the "print" funcionality on the website to save a pdf-version, but it is by no means a replacement for the former built-in help which was really good. I hoped that there might be at least an optional installation.
    You are the first one on the forum, to my knowledge, who likes the help function. It's slow and difficult to navigate for most of us. The PDF guides are searchable with the Find function in Preview. The Function Browser, as Wayne notes, is also quite handy and always quick to launch. Another way to launch the Function Browser is to click the function icon on the Format Bar when you are editing a cell's content.
    Jerry

  • Formula help...again.  Data compiling into one sheet

    I've posted something similar before, but it was just different enough I can't figure this one out  .... what I'm looking for it to be able to take info from numerous sheets or tabs, and have them show on a separate sheet, that I can then import into quickbooks.
    here is a link to the dumbed down file.  The help is with how to right the formula to take all work done on all sheets and put it into ONE table.  Quickbooks has an import feature where I can copy a whole sheet and paste directly into OB and not have to enter hundreds of transactions each month. 
    So if there is data entered within a specified date range, then all those entries appear on the new sheet that will be my QB import sheet.  There is a specific table that has to be followed in order for OB to recognize my entries.
    As always, thanks for the help.
    Jeff
    well... I can't post a shared link via iCloud right now.  how do I post a file ?  any ideas?

    Hi Jeff,
    So if there is data entered within a specified date range, then all those entries appear on the new sheet that will be my QB import sheet. 
    A table on a new sheet can "pull" relevant data from tables on other sheets with functions such as SUMIF, LOOKUP and other functions. Perhaps it would work best if those other sheets do some data processing (creating summaries?) first.
    More information from you will lead to a Numbers solution .
    Regards,
    Ian.

  • Formula Help - Running Total vs ???

    Post Author: schilders
    CA Forum: Formula
    Good Morning All,
    I'm creating a report that contains a field called CDM Item.  This field indicates whether a particular order set was used for a given record.  Valid entries for this field are numeric 6 through 9.  I would like to create a formula that tells me the number of records that have a cdm item = 6, another formula that tells me the number of records that have a cdm item = 7 etc.  I need to summarize these formulas into pre-defined groups. 
    I was thinking a running total or a manual running total would be useful here.  However, I wanted to get some input from other formula gurus here.  Thanks, in advance, for your help.

    Post Author: yangster
    CA Forum: Formula
    You don't need to create a manual running total for what you are after.simply create 4 running totals ( 1 for each item number) using a running total with the evaluate formula of cdm =  6 (changed for each number)and resetting after whatever grouping you needthe other alternative you could implement if you have mutliple grouping and wanted subtotals on differing levels is to create a formula for each case such as@case_cdm6if cdm = 6 then 1 else 0then insert sum for each formula on all the differing group levels that way you only have to worry about maintaining one formula if the criteria changes

  • Visibility formula help

    Hi All,
     I want to calculate a formula, depending on that formula, I want to hide and make the column visible.  I have a column called
    SN. I want to make it visible when the value of the parameter called @section is “GCG” otherwise I want to make it invisible. Same thing with another columns, if @section parameter is “GED” then I want to make column 2  called PN visible and column SN
    invisible. I tried to calculate this formula and putting it in Visibility-hidden formula section
    IIF(INSTR(Join(Parameters!section.Value), "GCG") > 0 OR Parameters!section.Value(0) = "-1", false, true)
    the above formula didn’t make that particular columns visible/invisible
    Alternatively, I tried putting the formula in the XML file for the report.
    <TableColumn>
    <Visibility> <Hidden>=IIF(INSTR(Join(Parameters!comp.Value), "GCG") > 0 OR Parameters!comp.Value(0) = "-1", false, true)</Hidden> </Visibility>
    <Width>1in</Width>
    </TableColumn>
    The above formula seems to be working, but the problem is when I export the
    report to the Excel. The column that I am making visible by the above formula is not exported to excel.
    I am not sure what am I doing wrong, but I am struggling with this issue for
    past two days.
    The value in the @section parameter can be “GCG” or “GED” or “PED” or all three
    of them “GCG”,”GED”, “PED” or two of them “GCG”, “PED”, it can be any combination. If I am passing the combination of two parameters then I want two columns to be visible and other invisible.
    any help or hint will be greatly appreciated. I am struggling for a while with this issue.

    Hi Anjali100,
    According to your description, you have used expression to control the visibility of columns in your tablix. However, when exporting into CSV file, it still shows all columns which some of columns need to be hidden. Right?
    In Reporting Services, when exporting to CSV/XML file, as mentioned in the link you post, these two are only data renders, it will not render any interactivity like Hide, Hyperlink... Please refer to the "Interactivity" in the link below:
    Exporting to a CSV File (Report Builder and SSRS)
    And as we tested in our local environment, it doesn't automatically omit the data in those columns which has set Hide. So your requirement can't be achieved in CSV format currently.
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Formulas : Help for coding

    Hi experts,
    I face a problem I do not find any solution with my lack of coding development background.
    Here is my case :
    I have inserted a cross tab in my report. It looks like this :
    - Column : 3 following objects :
    Table.Period1
    Table.Period2
    Table.Period3
    - Line : Table.SIG containing th e following :
    1 Revenus
    2 Expenses
    3 Margin
    4 Other external expenses
    5 Added value
    => Lines 3 & 5 have been inserted to receive specifics formulas, subject of my thread.
    For example, I'd like to put a simple operation like:
    3 = 1- 2 (numbers, referred to above lines of my cross tab)
    But, in Crystal Report, it seems to be not possible to easily cross objects.
    Someone can help ? Have any idea ?
    Thanks for you time,
    Olivia

    Debi Herbert wrote:
    > You may need to do a manual crosstab which is to say group on your "lines" and using formulas create the columns in the group footer for each "line" and suppress the header and the detail lines.
    Hi Debi, thanks for your reply,
    I've created a report using "manual cross tab"; and also using automatic/manualformulas.
    The thing is a resultat like that :
    Detail   :                     xx
    Detail   :                     xx
    Group Footer 1 : 1 Revenus                                     >> Automatic formula which sumaryze the detail above
    Detail   :                     xx
    Detail   :                     xx
    Group Footer 1 : 2 Expenses                                   >> Automatic formula which sumaryze the detail above
    Group Footer 2 : 3 Margin                                         >> FORMULA that need to sum. the both group footer 1 above. but fail.
    Detail   :                     xx
    Detail   :                     xx
    +Group Footer 1 : 4 Other external expenses            >> Automatic formula which sumaryze the detail above
    Group Footer 2 : 5 Added value                               >> FORMULA that need to sum. Margin + Other external expenses. but fail.
    I do not succed to create a formula that can sumarize objects from different group footer.
    If someone have any idea, i'll much appreciate your help
    Thanks,
    Olivia

Maybe you are looking for