Printing Flag Based on the Condition Request

Hello
I have a requirement where i need to check two conditions on Date and Print the Date in Red and Flag(Symbol) adjacent to the Date, I used Conditional Format and gave my Conditions and then i am ableto print the date in Red , Below is my Conditional Format XML and i am unable to print a symbol adjacent to the Date with the same Condition
Here is my Conditional Format XML
<?if:LE_DT<PRINT_DATE?><?attribute@incontext:color;'red'?><?end if?><?if:ACT_DT='--'?><?attribute@incontext:color;'red'?><?end if?>
i need to print a FLAG symbol also based on this condition
Thanks for your help

So after the attribute setting you need to put in the flag character. To do this, you will need to put the opening and closing if statements in separate form fields and then put the flag character between them.
<?if:LE_DT<PRINT_DATE?><?attribute@incontext:color;'red'?>FLAG CHAR<?end if?><?if:ACT_DT='--'?><?attribute@incontext:color;'red'?>FLAG CHAR<?end if?>
Bear in mind that the flag character may come from a special font e.g. wingdings. In which case you will need to ensure that font is on the server - check the docs. Or you can conditionally show an embedded image in the same way.
Regards
Tim

Similar Messages

  • Inserting new columns based on the condition!

    Hi guys,
    I have a very simple query like the following… 
    SELECT table2.column_code2,
    table2.column_description2,
                 table2.column_code1,
                 table1.column_description1
    FROM database_001.table2 table1 LFET OUTER JOIN database_001.table2 table1 on (table2.column_code1 = table1.column_code1)
    From this query, its returning me a result set of something like below:
    column_code1       column_description1        column_code2                 column_description2
    RO1                              BOOK                              RL1            
                               PDF/ECOPY
    RO2                              PAPER                             RL2            
                            CONFERENCE
    RO5                            JOURNAL 
    RL11  OTHER
    Now, on the above query I want to insert three extra columns with the name (status, location and contact) where the results in the extra three columns would be based on the conditions I want to define in the query based on the above results…
    Something for example (sorry, I am not trying to write a condition: my question is how to write it), 
    if column_code1 = RO1 and column_description2  =  PDF/ECOPY on status column it should return a value ‘ONLINE’ & on location column it should return ‘WEB’ and on contact column it should write ‘BOB’.
    Also,
    if column_code1 = RO5 and column_description1 = JOURNAL on status column it should return a value ‘ON PRESS FOR PRINT’ & on location column it should return ‘S.R STREET, LONDON’ and on contact column it should write
    ‘SMITH’ like below result…so the final output should be the top four columns and the extra three columns…I hope someone can help me into this…thanks a lot…
    status                                            location                
                            contact
    ONLINE                                               WEB                          
                           BOB
    ON PRESS FOR PRINT                     S.R STREET, LONDON                           SMITH

    Hi artistdigital,
    you can use case statment for same in sql server. MSDN link - > http://technet.microsoft.com/en-us/library/ms181765.aspx
    Try code like this:
    SELECT table2.column_code2,
    table2.column_description2,
    table2.column_code1,
    table1.column_description1,
    case when column_code1 = 'RO1' and column_description2 = 'PDF/ECOPY' then 'ONLINE'
    when column_code1 = 'RO5' and column_description1 = 'PDF/ECOPY' then 'ON PRESS FOR PRINT'
    end as [status],
    case when column_code1 = 'RO1' and column_description2 = 'PDF/ECOPY' then 'WEB'
    when column_code1 = 'RO5' and column_description1 = 'PDF/ECOPY' then 'S.R STREET, LONDON'
    end as [Location],
    case when column_code1 = 'RO1' and column_description2 = 'PDF/ECOPY' then 'BOB'
    when column_code1 = 'RO5' and column_description1 = 'PDF/ECOPY' then 'SMITH'
    end as [contact]
    FROM table2
    join table1
    on table2.column_code1 = table1.column_code1
    Regards Harsh

  • Can we take standard report for all sales orders based on the condition typ

    Hi all,
    Based on the condition type, we need to take a report for sales orders on the particular date.
    Thanks and Regards.....VM

    Hello again.
    Searching for a solution, I found a Logical Database for sales orders, that have all the information that you need.
    Using like reference the post of Bhagavatula, in the same transaction SQVI you can use, instead of the suggested join, you can select a logical database called VAV in Data source.
    This logical database links the tables, VBAK, VBAP, VBUK and KONV that is the central point of the question.
    You can list the information of logical database using the transaction SLDB.
    In 'Logical Database' inform VAV.
    Press F8 to list all the fields.
    More information about logical database in:
    Link: [SAP Logical Database|http://help.sap.com/saphelp_46C/helpdata/EN/9f/db9b5e35c111d1829f0000e829fbfe/content.htm]

  • Need to show the images in calculated column based on the condition in sharepoint 2013.

    Hi ,
    I'm working in sharepoint 2013, In this i want to show an image in calculated column based on the condition, but image is not showing .
    In sharepoint 2010 its working with help of javascript in content editor on the same page. Same thing i tried in SP 2013. but doesn't work.
    Could any one please give proper solution for this?
    Thanks in advance.
    by,
    Siva.

    Hi please provide the JS you have used in the content editor as well as the calculation for the column so we can better understand what's maybe differs?
    Blog: chrisstahl.wordpress.com Twitter:
    @Cstahl

  • Print Adobe form pages on different printers based on the condition

    Hi All,
    I am new in Adobe forms. We have requirement to print first 5 line items in adobe form (which are printing on first page) on one printer and remaining pages on another printer.
    What solution I was thinking was, in print program call the adobe form twice with flag as a importing parameter. For the first call the flag value will be set and for second run a blank value will be passed in flag.
    If flag is set then call make the first page "visible" and if flag is cleared then "hide" the first page and make the remaining pages "visible".
    But as its an item data which is designed on "Design" view I am not able to write a script to hide the page. Any suggestion you can give to resolve this issue.
    Thanks,
    Mihika.

    If it is OK to have the default printer defined/maintained in the user master (like tcode Su01 or System > User profile > Own data, Then the standard logic may suit your needs. I think you will need to undo some config for the whs. Te standard logic works as detailed below. the system needs to get to #4 below, then the SAP userid printer will be selected.
    the system proceeds with automatic printer determination as described below Config Tcode is OMLV.
    1) First the system checks whether a printer is set in the configuration "Printer-Movement". If so, the printer determination is complete at  this point.                                                         
    2) If not, the system uses the parameter "PriSrcTyp" defined in the configuration "Printer-Movement" to decide how it will proceed.  If the parameter is set here, the system checks if a printer is defined in the setting "Printer Picking Area" and then proposes this printer.                                                            
    3) If the system finds no printer, it searches in the setting "Printer - Storage Type" and uses this, if a printer is set.                   
    4) If the system cannot find a printer using the methods described above it selects the printer defined in the user master of the user currently logged on.                                                
    5) If no printer is defined here, the system automatically proposes LP01
    This writes the data to the spool file.

  • Displaying record based on the condition in Crystal report

    Hi All,
    I want to display certain records in crystal based on some condition.
    For example,
    If I am having 5 student records like,
    Name  Mark1 Mark2 Mark3 Total
    aaa      40       50       60      150
    abc      30       60       40       130
    tcr        25      25        25       75
    Now in table i have only 4 fields (STUNAME, MARK1, MARK2, MARK3).
    I have to calculate the total at runtime and if total is greater than 150, then actual record should display in report.
    For example, I can use formula to calculate total but I can calculate total only after each record prints. But i want to calculate total internally only it should display in report if condition satisfies. I dont want to keep one more field for total in crystal report.
    Please help me on this.

    If the filter is not "pushed" down to the database, then Crystal will pull all of the data into memory and then filter it there.  This is not a big deal if you only have a couple of records, but it can significantly slow down a report that is pulling in more than a few records.
    An alternative, if your report is just linking tables in the Database Expert, would be to create a SQL Expression that adds the three fields together.  Using this in the Select Expert WILL push the condition down to the database.
    If you're using a command instead of linking table, they you would add this to the Where clause of the comment.  If you're using a stored proc instead of tables or a command, you would want to do this filter in the code for the stored proc.
    -Dell
    Message was edited by: Dell Stinnett-Christy

  • Altering pages based on the condition

    Hi all,
    In a smartform there is a requirement like in the main window, if a variable satisfies some condition then it is required to print the table in the next page other wise it need to be displayed in the first page itself.
    can any one of you help me regarding this. ie; how to specify it to be printed in first page or secondpage
    Thanks in advance,
    regards,
    tulasi.

    Hi Deepthi,
    A small technically incorrect term was used in the previous post.
    That is explicit break-point; actually it is explicit page-break.
    What happens "When you create explicit page-break as: Right click on Template-->Create->Flow Logic -->Command" is as soon as the condition is satisfied the next content will be printed on the next page (as specified).
    So if your variable satisfies some condition then you can put a explicit page-break to print the table in the next page.
    Hope now you got the clarity.
    Regards,
    Rama chary.P

  • Column value coloring Based on the condition in ssrs 2008

    Hi,
    I need to change color formating based on below conditions
    Red if <=28 days or > 65 days       
    Green if >28 and <=60 days       
    Yellow if > 60 days and <=65 days
    <=0 No color
    I tried with below IIF condition it's not working.
    =iif(Fields!HDSI13.Value<=0,
    "No color",iif((Fields!HDSI13.Value<=28
    or Fields!HDSI13.Value>64),"Red",iif((Fields!HDSI13.Value>29
    and Fields!HDSI13.Value<=60),"Green",iif((Fields!HDSI13.Value>60
    and Fields!HDSI13.Value<=65),"yellow",Nothing))))
    Can any one help me on this.
    Thanks,
    Manasa.
    Thank You, Manasa.V

    hi all,
    When i wrote like this in table report ...woking fine.
    =iif(((Fields!HDSI13.Value<=28
    and Fields!HDSI13.Value>0)
    or Fields!HDSI13.Value>64),"Red",iif((Fields!HDSI13.Value>=29
    and Fields!HDSI13.Value<=60),"Green",iif((Fields!HDSI13.Value>=61
    and Fields!HDSI13.Value<=65),"yellow",iif(Fields!HDSI13.Value<=0,"Nocolor",""))))
    Thank You, Manasa.V

  • Disable a field in a Table layout based on the condition

    Hello,
    In the seeded page, there is a table layout region with viewobject name as View1. It has 3 fields displayed as Field A, Field B, Field C with multiple rows displayed when the page opens. Fields B and C are MessageTextInputs and Field A is MessageChoice. So in the displayed rows in the table, if the value selected in the Field A is "Bonus" then the fields B and C needs to be disabled so that the user should not be able to enter any information. So if there are 5 rows in that table, only 1 or 2 rows might have the value "Bonus" in the field A and only for those rows, fields B and C needs to be disabled.
    I would appreciate if anyone can provide me with a logic. I know how to disable a field based on the value of other field but in this case here, its a table region with multiple rows and only few of them needs to be disabled. I couldn't think of any logic here. Any help is greatly appreciated.
    Thank You
    KK

    Similar problem
    Re: How to make Advanced table readonly

  • How to extract substring from a string based on the condition ??

    Hi,
    I'm having a very large string which as below
    EQD+CN+SAMPLE18767+2200+++5'
    NAD+CA+FIR:172:20'
    DGS+IMD+3.2+2346+55:CEL'
    FTX+AAA+++GOOD'
    FTX+AAA+++ONE'
    EQD+CN+SAMPLE18795+2200+++5'
    NAD+CA+TIR:172:20'
    DGS+IMD+3.2+2346+55:CEL'
    FTX+AAA+++SECOND'
    FTX+AAA+++IS FAIR'
    similarly FTX+AAA as above and it goes on
    i tokenized each segment with delimiter as ' and able to read each segment.
    Now i want to concatenate the FTX+AAA in a single segment if more than one FTX+AAA with IMMEDIATE below
    The output is as follows
    EQD+CN+SAMPLE18767+2200+++5'
    NAD+CA+FIR:172:20'
    DGS+IMD+3.2+2346+55:CEL'
    FTX+AAA+++GOOD,ONE'
    EQD+CN+SAMPLE18795+2200+++5'
    NAD+CA+TIR:172:20'
    DGS+IMD+3.2+2346+55:CEL'
    FTX+AAA+++SECOND,IS FAIR'
    similarly FTX+AAA should be concatenated if it has similar FTX+AAA IMMEDIATE below.
    The FTX+AAA segments can come any number of times immediate below
    Please help me how we can do this??? Can anyone help me with the code snippet to do this?
    Thanks,
    Kathir

    Encephalopathic wrote:
    You've posted > 300 times here and you still don't respect the rule regarding notification of all cross-posts? [http://www.java-forums.org/advanced-java/30061-how-extract-substring-string-based-condition.html]
    Do you think this this will help convince others to help you?See also [http://www.coderanch.com/t/500088/java/java/extract-substring-string-based-condition|http://www.coderanch.com/t/500088/java/java/extract-substring-string-based-condition].

  • Need help in SQL , Subtract column based on the condition in the Row

    Hi all ,
    I’m new to Sql Queries; I have a requirement which involves Sql query,
    Can anyone tell the How to proceed or provide me Sql
    Here goes the requirement
    Current Table
    ID |-|Month|-|Data
    1|-|Jan-10|-|10.00
    2|-|Feb-10|-|20.00
    3|-|Mar-10|-|30.00
    4|-|Apr-10|-|50.00
    5|-|May-10|-|60.00
    6|-|Jun-10|-|70.00
    7|-|Jul-10|-|100.00
    8|-|Aug-10|-|110.00
    9|-|Sep-10|-|120.00
    10|-|Oct-10|-|140.00
    11|-|Nov-10|-|150.00
    12|-|Dec-10|-|170.00
    13|-|Jan-09|-|180.67
    14|-|Feb-09|-|194.67
    15|-|Mar-09|-|208.67
    16|-|Apr-09|-|222.67
    Format needed
    ID |-|Month|-|Data|-|Base on this condition
    1|-|Jan-10|-|10.00|-|Jan 10
    2|-|Feb-10|-|10.00|-|Feb10-Jan10
    3|-|Mar-10|-|10.00|-|Mar10 - Feb10
    4|-|Apr-10|-|20.00|-|Apr10 - Mar10
    5|-|May-10|-|10.00|-|May10 - Apr10
    6|-|Jun-10|-|10.00|-|Jun10 - May10
    7|-|Jul-10|-|30.00|-|Jul10 - Aug10
    8|-|Aug-10|-|10.00|-|Aug10 - Jul10
    9|-|Sep-10|-|10.00|-|Sep10 -Aug10
    10|-|Oct-10|-|20.00|-|Oct10 -Sep10
    11|-|Nov-10|-|10.00|-|Nov10 - Oct10
    12|-|Dec-10|-|20.00|-|Dec10 - Nov10
    13|-|Jan-09|-|10.67|-|Jan 09
    14|-|Feb-09|-|14.00|-|Feb09-Jan09
    15|-|Mar-09|-|14.00|-|Mar09 - Feb09
    16|-|Apr-09|-|14.00|-|Apr09 - Mar09
    Thanks in advance
    Astle

    Welcome to the forum!
    this?
    select id
         , mon
         , data
         , data - lag (data, 1, 0) over (partition by trunc (mon, 'yyyy')
                   order by mon)
      from test
    order by idas in
    SQL> with test as
      2  (
      3  select 1 id ,to_date ('Jan-10', 'Mon-rr') mon,10.00 data from dual union all
      4  select 2,to_date ('Feb-10', 'Mon-rr'),20.00 data from dual union all
      5  select 3,to_date ('Mar-10', 'Mon-rr'),30.00 data from dual union all
      6  select 4,to_date ('Apr-10', 'Mon-rr'),50.00 data from dual union all
      7  select 5,to_date ('May-10', 'Mon-rr'),60.00 data from dual union all
      8  select 6,to_date ('Jun-10', 'Mon-rr'),70.00 data from dual union all
      9  select 7,to_date ('Jul-10', 'Mon-rr'),100.00 data from dual union all
    10  select 8,to_date ('Aug-10', 'Mon-rr'),110.00 data from dual union all
    11  select 9,to_date ('Sep-10', 'Mon-rr'),120.00 data from dual union all
    12  select 10,to_date ('Oct-10', 'Mon-rr'),140.00 data from dual union all
    13  select 11,to_date ('Nov-10', 'Mon-rr'),150.00 data from dual union all
    14  select 12,to_date ('Dec-10', 'Mon-rr'),170.00 data from dual union all
    15  select 13,to_date ('Jan-09', 'Mon-rr'),180.67 data from dual union all
    16  select 14,to_date ('Feb-09', 'Mon-rr'),194.67 data from dual union all
    17  select 15,to_date ('Mar-09', 'Mon-rr'),208.67 data from dual union all
    18  select 16,to_date ('Apr-09', 'Mon-rr'),222.67 data from dual
    19  )
    20  select id
    21       , mon
    22       , data
    23       , data - lag (data, 1, 0) over (partition by trunc (mon, 'yyyy')
    24                 order by mon)
    25    from test
    26   order by id
    27  ;
            ID MON               DATA DATA-LAG(DATA,1,0)OVER(PARTITI
             1 1-1-2010            10                             10
             2 1-2-2010            20                             10
             3 1-3-2010            30                             10
             4 1-4-2010            50                             20
             5 1-5-2010            60                             10
             6 1-6-2010            70                             10
             7 1-7-2010           100                             30
             8 1-8-2010           110                             10
             9 1-9-2010           120                             10
            10 1-10-2010          140                             20
            11 1-11-2010          150                             10
            12 1-12-2010          170                             20
            13 1-1-2009        180,67                         180,67
            14 1-2-2009        194,67                             14
            15 1-3-2009        208,67                             14
            16 1-4-2009        222,67                             14
    16 rows selected

  • Iteratively inserting values based on the condition

    PUB_USER_TABLE
    COMM_ID|PUB_USER_ID|
    123 |1234577 |
    345 |3456777 |
    678 |6789077 |
    USS_XREF_TABLE
    COMM_ID | XREF_ID|
    123 | 1234 |
    345 | 3456 |
    678 | 7890 |
    UI_SERVICE_TABLE
    XREF_ID
    1234
    3456
    7890
    SD_ENTITY
    XREF_ID | ED_DESC
    1234 | PASSPORT
    3456 | PASSPORT
    7890 | ABC
    I NEED TO INSERT THE RECORD IN THE BELOW TABLE AS FOR THE QUERY WHICH I WROTE
    Insert into service_subscription_detail (SSID,SRVC_ID|,LPUB_ID,SPUB_CD,SP_STATSU_CD,SE_IND,MFDT,MFDI,CRET_TIME_STMP,UPDATE_TIME_STMP,REQ_IND)
    values (select max(XREF_ID)+1 from SSD_DETAILS_TABLE,17,(SELECT A.PUB_USER_ID'AnyEmail'
    FROM PUB_USER_TABLE A, USS_XREF_TABLE B, UI_SERVICE_TABLE C, SD_ENTITY D
    WHERE A.COMM_ID = B.COMM_ID
    AND C.XREF_ID B.XREF_ID
    AND C.XREF_ID = D.XREF_ID
    AND D.XREF_ID = B.XREF_ID
    AND d.ED_DESC = 'PASSPORT'),'NO','1','0',null,null,SELECT SYSDATE FROM DUAL,SELECT SYSDATE FROM DUAL,'N');
    and also i want to put the where condition for the insert like below
    Insert into service_subscription_detail (SSID,SRVC_ID|,LPUB_ID,SPUB_CD,SP_STATSU_CD,SE_IND,MFDT,MFDI,CRET_TIME_STMP,UPDATE_TIME_STMP,REQ_IND)
    values (select max(XREF_ID)+1 from SSD_DETAILS_TABLE,17,(SELECT A.PUB_USER_ID'AnyEmail'
    FROM PUB_USER_TABLE A, USS_XREF_TABLE B, UI_SERVICE_TABLE C, SD_ENTITY D
    WHERE A.COMM_ID = B.COMM_ID
    AND C.XREF_ID B.XREF_ID
    AND C.XREF_ID = D.XREF_ID
    AND D.XREF_ID = B.XREF_ID
    AND d.ED_DESC = 'PASSPORT'),'NO','1','0',null,null,SELECT SYSDATE FROM DUAL,SELECT SYSDATE FROM DUAL,'N');
    WHERE A.COMM_ID = B.COMM_ID
    AND C.XREF_ID B.XREF_ID
    AND C.XREF_ID = D.XREF_ID
    AND D.XREF_ID = B.XREF_ID
    AND d.ED_DESC = 'PASSPORT'
    is this possible? also need help in correcting the above query
    SSD_DETAILS_TABLE
    XREF_ID|SRVC_ID| LPUB_ID | SPUB_CD | SP_STATSU_CD| SE_IND | MFDT | MFDI | CRET_TIME_STMP | UPDATE_TIME_STMP | REQ_IND|               
    78901 | 17 | 4444444ABCDE |     NO |     1 | 0     |NULL | NULL | <CURRENT DATE TIME> |<CURRENT DATE TIME>| N |
    78902 |     17 | 5555555ZZZZZZZZZ |     NO |     1 | 0     |NULL | NULL | <CURRENT DATE TIME> |<CURRENT DATE TIME>| N |
    78903 | 17 | 1234577AnyEmail |     NO |     1 | 0     |NULL | NULL | <CURRENT DATE TIME> |<CURRENT DATE TIME>| N |
    78904 |     17 | 3456777AnyEmail |     NO |     1 | 0     |NULL | NULL | <CURRENT DATE TIME> |<CURRENT DATE TIME>| N |
    i am getting subquery return more than one value error. should i need to user curoser and fetch the values and insert?
    i am using 10gDB
    Edited by: [email protected] on May 14, 2009 3:37 AM

    Hi,
    I modified the above query as shown below
    DECLARE
    CURSOR anyEmailService IS
    SELECT A.PUB_USER_ID'AnyEmail' as public_usr_id
    FROM PUB_USER_TABLE A, USS_XREF_TABLE B, UI_SERVICE_TABLE C, SD_ENTITY D
    WHERE A.COMM_ID = B.COMM_ID
    AND C.XREF_ID B.XREF_ID
    AND C.XREF_ID = D.XREF_ID
    AND D.XREF_ID = B.XREF_ID
    AND d.ED_DESC = 'PASSPORT'
    anyEmailServiceData anyEmailService%ROWTYPE;
    BEGIN
    OPEN anyEmailService;
    FETCH anyEmailService INTO anyEmailServiceData;
    WHILE anyEmailService%FOUND LOOP
    Insert into service_subscription_detail (SSID,SRVC_ID,LPUB_ID,SPUB_CD,SP_STATSU_CD,SE_IND,MFDT,MFDI,CRET_TIME_STMP,UPDATE_TIME_STMP,REQ_IND)
         values ((select max(XREF_ID)+1 from SSD_DETAILS_TABLE),17,anyEmailServiceData.public_usr_id,'NO','1','0',null,null,SYSDATE,SYSDATE,'N');
    FETCH anyEmailService INTO anyEmailServiceData;
    END LOOP;
    CLOSE anyEmailService;
    COMMIT;
    END;
    it worked fine.
    thank you

  • Insert Based on the Condition

    Hi,
    I have a select list which contains a list of items in it like QCR, SUS, NAC
    i have table which contains columns like this
    table name = "watchlist"
    id , project_name, type -- > here type is wht i have included above
    i need to give a plsql condition where if SUS is selected before selecting QCR it must not allow me to insert either NCA or is selected
    Initially it must allow to insert QCR then SUS THEN NCA
    QCR->SUS->NAC and so on
    can we include a condition like this
    now the normal insert statement wht i am using is like this
    insert into watchlist
    (id,project_name,type)
    values
    1,102,'QCR');
    above is a sample query were i am showing how to insert the but please suggest me to how to give a condition in it
    Thanks
    Sudhir

    Is this for a given ID? For a given Project Name?
    It would appear that it should occur prior to the insert - a validation stage which checks that if we select QCR then there can't be a record, if we select SUS there must be a QCR and not be a NCA, and so on.

  • Date difference based on the conditions is giving wrong values

    Hi,
    In creating the formula for conditional date difference calculation,
    i.e.,
    if (sto date is 0) then (act date - mat rel date) else (sto date is not equal to 0) then (sto date - mat rel date)
    So I tried with,
    (sto date == 0) * (act date - mat rel date) + (sto date <> 0) * (sto date - mat rel date)
    But I am getting a wrong value even with decimals as days can't be in decimals. Please suggest where I am going wrong in calculation.
    Thanks,
    Best Regards,
    Darshan MS

    Hi Darshan,
    First of all, were the dates converted already to keyfigure?
    If not, please check:
    Convert a Characteristic into a Key Figure (BEx)
    If they were already converted, try this:
    (sto date == 0) * (act date - mat rel date) + (sto date - mat rel date)
    Regards,
    Loed

  • How to calc sum of one column, based on the condition of another column?

    I would like to create a formula that adds up the total cost from column F for each specified service in column D. For example, the result for PM (project management) would be $495. Any ideas?

    I think you could use this formula, using your cell references:
    =SUMIF(D4:D21,"=CM",F4:F21)
    Then, change the "=CM' to "=PM", etc. for each service.
    Like JaxJason, I can't test this in Numbers right now, but it works in Excel, and the functions are identical.
    SUMIF(test-range, "condition", [sum-range]):
    * test-range: A reference to the range of cells containing values to test. Must be the same dimensions as sum-range.
    * "condition": Any comparison statement that results in a logical TRUE or FALSE value.
    * sum-range: Optional; a reference to the range of cells containing the numbers to be added. Must have the same dimensions as test-range. If omitted, test-range is used.
    I hope this helps.
    - Michael
    Message was edited by: Apple fan Michael

Maybe you are looking for