Help with a formula

Hi
Could someone help me with a simple formula ?
I am trying to show-
= STANDARD or SILVER
or
is NULL
output = 4pm
<> STANDARD or SILVER
and / or
<> NULL
output = 3pm
My problem is the second part where should always be 3pm regardless of
if {ACCOMODATION_BOOKED} like "*STANDARD*" then " 4pm"
else if {ACCOMODATION_BOOKED} like "*SILVER*" then " 4pm"
else " 3pm";
if IsNull({PREMIER_ACCT})then " 4pm"
else " 3pm";

There's no mention of Gold and Deluxe above. What results are you expecting for Gold and Deluxe? Always 3PM no matter if premier acct is null or not?
if not IsNull({PREMIER_ACCT})
    or {ACCOMODATION_BOOKED} like "*GOLD*"
    or {ACCOMODATION_BOOKED} like "*DELUXE*"
then " 3pm"
else " 4pm"

Similar Messages

  • Need some help with MDX formula

    Hello, I am not finding any good documentation on MDX formulas, there is a specific one that I need some help with....could someone please elaborate what exactly does this formula mean? thanks.
    (MEASURES.[SIGNEDDATA],
    CLOSINGPERIOD([%TIMEDIM%].
    [%TIMEBASELEVEL%]))

    If new MEASURE gets added to Measure's table , in BPC Client , etools->client Options-> Refresh Dimensions should get the new measure into the CurrentView .IF not try  etools->client Options-> Clear Local application information .
    Formula 2 : 
    (MEASURES.SIGNEDDATA,
    CLOSINGPERIOD(%TIMEDIM%.
    %TIMEBASELEVEL%))
    This formula is used to retrieve AST & LEQ account values.
    If current time member is at monthlevel ,ie  ClosingPeriod of  2011.FEB is  the current member it self ,and would retrieve 2011.FEB value.
    If Current time member is at quarter level then ClosingPeriod of 2011.Q1 is 2011.Mar  ,and would retrieve 2011.MAR value.
    If Current time member is at year level then ClosingPeriod of 2011.TOTAL is 2011.DEC  ,and would retrieve 2011.DEC value.
    Formula 1 :
    MEASURES.SIGNEDDATA
    Irrespective of the level of the Time , MEASURES.SIGNEDDATA would retrieve current Time member value.This formula is used to retrieve INC & EXP account values
    if current time member is at month level,2011.FEB , 2011.FEB value is retrieved.
    if current time member is at quarter level,2011.Q1 , 2011.Q1(JANFEBMAR)  value is retrieved.
    if current time  member is at year level,2011.TOTAL , 2011.TOTAL(JAN,FEB,....,DEC)  value is retrieved.
    Hope this helps.

  • Help with excel formula

    hi,
    I need help with some excel fomulas,  I have a source file which 2 cells will continually change, I want to link this source file to an inventory file and update the information on seperate lines when the information is changed without changing the
    destination information
    is it possible or do I have to create seperate source file

    Hi,
    According to your description, my understanding is that you have 2 files (A source file and an inventory file) and link the source file to inventory file. You want to retain the data in the inventory file when the source file continually change.
    If it is, there is no formula will retain the linked data after the data source changed.
    We may try the workarounds:
    1. Use import data from source file to the inventory file.
    2. Create seperate source file
    If I misunderstand, please let me know and share us more information about your demand.
    Regards,
    George Zhao
    TechNet Community Support

  • Help with MDX formula

    Hi All,
    I have MDX formula which is validating but not producing result, can you guide me in right direction to fix the issue.
    What i am trying to accomplish is?
         View 1 (Raw)                    View 2 (Adjusted)     
    ACT     FCST     Calc          ACT     FCST     Calc
    X     X     X          X     X     X
    0     0     0          0     X     0
    0     X     X          X     0     0
    X     0     X          0     0     0
    If ACT or FCST is '0' in RAW it has replace everything with '0' in Adjusted. else copy Actual and Forecast values to adjusted.
    "case when is ([Raw],[Actuals]) = '0' or ( [Adjusted],[ Forecast]) = '0' then '0' else ([Actuals] = [Raw],[Actuals]) and [ Forecast] = ([Raw],[Forecast])" this is my formula which is validated but i don't see any result.
    Help will be very mush appreciated.
    Thanks in Advance
    Vic..

    Hi,
    I am not sure which member you are trying to write that formula on. It should be on 'Adjusted' member as that is what you want to calculate. I am not sure how your formula got validated - You can try any of these formula or modify your formula on similar lines and it should work.
    CASE WHEN ([Raw], [Act])= 0 OR ([Raw], [Fcst]) = 0
    THEN
    0
    ELSE
    [Raw]
    END
    IIF ( ([Raw], [Act])= 0 OR ([Raw], [Fcst])= 0 , 0 , [Raw])
    Regards,
    Sunil
    Edited by: sunil k on Jan 17, 2013 2:28 PM

  • Need help with MDX formula to sum months

    I was able to use Gary C's suggestion to sum daily data for 90 days with the following formula.
    SUM( TAIL( TUPLERANGE(
    ([FY_2006], [01/01]), ([Scenario].CurrentMember,
    [Time].CurrentMember) ), 90 ))
    This formula works great - even when crossing different years in the Scenario dimension.
    I'm now trying to sum the prior 3 months using a similar TupleRange command:
    SUM( TAIL( TUPLERANGE(
    ([FY_2006], [JAN]), ([Scenario].CurrentMember,
    [Time].CurrentMember) ), 3 ))
    I'm running into an issue due to additional parents in the time dimension. January and February of the current year are pulling data from the children of another parent in the Time dimension as opposed to Nov and Dec from prior year.
    My Time dimension is setup as follows:
    Time
    |
    |-Total Year
    | |-Jan
    | | |-01/01
    | | |-01/02...
    | |.
    | |-Feb... Dec (each month has days as children)
    |.
    |.
    |-QTDs
    | |- Various parents and shared children
    |.
    |-Weeks
    | |-FY08_Weeks
    | |.
    | |-FY09_Weeks
    Using the previous TupleRange command, when I retrieve data for Jan it retrieves data from the following members:
    Jan
    FY08_Weeks
    FY09_Weeks
    Any suggestions on how I can write the MDX formula so my 3 Month formula pulls in the correct members? (That is, it should only pull in members from the 'Total Year' parent.)

    In ASO architecture, if you want to aggregate these multiplied values you probably want to do the multiplication prior to loading so the sum of the products rolls up. Right now, you can't have the multiplication done in MDX and then have ASO aggregate. It's mostly a performance concern; you can do the multiplication and aggregation in one formula if you want.<BR><BR>The basic multiplication is just<BR> [Standard Material Per Unit] * [Units Sold]<BR><BR>To aggregate, you need to wrap in additional clauses. I've attached code here so you can see it with indenting- I believe that consistent indenting helps catch a lot of syntax errors.<BR><BR>You will also need to assign the formula to a new member (account or otherwise).<BR><BR>If you only want to see the values at level-0 and you don't want them aggregated, it's very easy:<BR><BR>iif (<BR> [Product].CurrentMember.[LEVEL_NUM] = 0,<BR> [Standard Material Per Unit] * [Units Sold],<BR> MISSING<BR>)<BR><BR><BR>

  • Need help with a formula for an inventory spreadsheet

    I made an inventory spreadsheet. What I would like to know is a formula to track how many of one item I sold.
    This is what I have
    Cell D is # In Stock then Cell F is # Sold.
    As I sell one I take subtract it from cell D then I want it to Add one to Cell F. But when I add more inventory to cell D I don't want it to change cell F.
    I don't know lots about the formulas but learning as I do more and more with numbers 09.
    Thanks for your help

    It sounds like you need three columns.
    1. Number of items bought. This would be the column you add to when you purchase more of an item. It will equal the total number bought from day 1 to present.
    2. Number of items sold. You would increase this each time you sell an item. If you're selling just a few at a time you could do this with a stepper.
    3. Number of items in stock. Calculated by the formula "bought minus sold".
    This would not be a very comprehensive inventory system as it will not have a record of the transactions. A more comprehensive system would include data on the transactions (dates and numbers bought/sold) plus correction entries (dates and numbers) for when you do a physical inventory check and it doesn't add up as you expected.

  • Can anyone help with a formula for either of these?

    Right...
    Basically I have a table called FALL_IN
    FAL_REVERSION_ID within this table is the field that links it to other tables.
    within this table are 5 fields:
    FAL_ID
    FAL_REVERSION_ID
    FAL_PROCESS_ID
    FAL_PROCESS_DATE
    FAL_PROCESS_DETAIL
    The first function needs to:
    Look for the field FAL_PROCESS_ID in the FALL_IN table, then match the value in the FALL_PROCESS_ID field to "noticeVacationSent" then when it matches that, return the value in the FAL_PROCESS_DATE. if however there is no date matched with this "noticevacationsent" field then to just return a 0 in its place.
    The second one I have is:
    I have two tables:
    INVESTOR_INTEREST
    PROP_COSTS
    I need a formula that will sum all the PCT_INVOICE_AMOUNT fields within the PROP_COSTS table with the single value in in the INT_INVESTMENT_AMOUNT field in the INVESTOR_INTEREST table.
    The problem I have is that the PCT_INVOICE_AMOUNT field contains more than one value per each case its linked to, I just want to sum these values to return one value, and not a list of the values.

    Right, fab,
    this has worked to an instance but its returning the values more than needed.. I have set the formula to the fiollowing:
    IF({FALL_IN.FAL_PROCESS_ID}="noticeVacationSent") THEN (totext({FALL_IN.FAL_PROCESS_DATE})) ELSE "0"
    Which either returns the date or a 0,
    however it is also returning 0 values as well for the itmes the date is there.. eg:
    it should look like :
    revnumber--noticevacationdateaddress1--
    surname
    0056--01/01/0812 church street--
    smith
    0101--018 random road--
    jones
    1304--01/01/0915 setty square--
      bob
    one line per rev number with either the date for the noticevacationsent or a zero, not a combination of both.
    however im guessing because there are about 7 options apart from "noticcevacationsent" in the fal_process_id table its giving me similar to the following
    revnumber--noticevacationdateaddress1--
    surname
    0056----
    01/01/08 -
    12 church street -
    smith
    0056--0--
    12 church street -
    smith
    0056--0--
    12 church street -
    smith
    0056--0--
    12 church street -
    smith
    0056--0--
    12 church street -
    smith
    0056--0--
    12 church street -
    smith
    0056--0--
    12 church street -
    smith
    0056--0--
    12 church street -
    smith
    0056--0--
    12 church street -
    smith
    0056--0--
    12 church street -
    smith
    0056--0--
    12 church street -
    smith
    0101--018 random road--
    joners
    0101--018 random road--
    joners
    0101--018 random road--
    joners
    0101--018 random road--
    joners
    0101--018 random road--
    joners
    0101--018 random road--
    joners
    0101--018 random road--
    joners
    1304--01/01/09--
    15 setty square -
    bob
    1304--0--
    15 setty square -
    bob
    1304--0--
    15 setty square -
    bob
    1304--0--
    15 setty square -
    bob
    1304--0--
    15 setty square -
    bob
    1304--0--
    15 setty square -
    bob
    1304--0--
    15 setty square -
    bob
    1304--0--
    15 setty square -
    bob
    1304--0--
    15 setty square -
    bob
    1304--0--
    15 setty square -
    If anyone has any ideas as to this it would be much appreaciated.
    Edited by: DougBlack on Mar 6, 2009 9:58 AM

  • I need help with a formula.

    I am very new to using numbers or excel so I am sorry if this is beginners work, but I can not seem to figure out how to get a formula to calculate two currency cells and give the answer as a percentage or number(minus dollar sign) The formula takes two partners monthly draws and breaks them down as a percentage of the draw as a whole. If the monthly partner draw total was $10,000, the cell breaks down their split as xx/yy. Here is an example of the two cells.
    B9= $8,000.00
    B10=$2,000.00
    Here is the formula. =B9/(B10+B9)&"/"&B10/(B10+B9)
    I am trying to get the cell to givve me the results of 80/20 and I am getting $0.80/$0.20 I've tried formatting all that I know how, but I cannot figure out which. I am sure the answer is simple. Thank you for your help.

    This expression rounds the results to two decimal place:
    =ROUND(100*(VALUE(C9)/VALUE((C10)+VALUE(C9))),2)&"/"&ROUND(100*(VALUE(C10)/(VALU E(C9)+VALUE(C10 ))),2)
    This expression rounds the results to whole numbers:
    =ROUND(100*(VALUE(C9)/VALUE((C10)+VALUE(C9))),0)&"/"&ROUND(100*(VALUE(C10)/(VALU E(C9)+VALUE(C10 ))),0)

  • Help with Select Formula

    Hello,
    I have been working on a database for the past few days and have received several great responses to a couple of the problems that I have encountered.  Unfortunately, I haven't been able to get the report results that I needed but am VERY very close.  I have a report that I am using 3 tables and about 7 fields.  The fields I am using are:
    {Charges.rendering_id} - GROUPED ON (1)
    {Charges.charge_id}    - GROUPED ON (2)
    {Charges.Service_item_ID}
    {Charges.amt}
    {Charges.qty}
    {Charges.Beg_date_of_service}
    {trans_detail.adj_amt}
    {trans_detail.trans_id}
    {service_item_mstr.department}
    When I add all these fields to my report, I am getting duplicated data which is inflating my Sum totals for both {Charges.amt} and {trans_detail.adj_amt}.  I figured out that the field thats causing these to duplicate is .  How would I write a formula that tells me to only display records that have a {Charges.amt}, a {trans_detail.adj_amt} and all the other fields w/out duplicating because of different {trans_detail.trans_id}.
    I was thinking something along the lines of
    IF {charges.charge_id}=prev{charges.charge_id}
    AND {trans_detail.trans_id} DOES NOT EQUAL Previous
    THEN {all fields}
    I could really use a second set of smarter eyes, hopefully ive explained this to the point where I can finally finish this report.
    Thanks
    Rob Ingrim
    Edited by: Robert Ingrim on Feb 4, 2009 7:12 PM
    Edited by: Robert Ingrim on Feb 4, 2009 7:12 PM

    Robert,
    After reviewing your post, in my opinion I think the best solution for you would be to use a subreport.  Bring the records that contain {trans_detail.adj_amt} into your subreport and link them based on a unique field you're using in your main report.  If you need to use the values from {trans_detail.adj_amt}field, you may do so by using a shared variable in your subreport that you can then utilize in your main report.
    I hope this helps.
    Regards,
    Zack H.

  • Help with my formula please

    i want to generate 5 random numbers in 5 different cells after giving another cell a value example cell a6=1000 i need cells a1 to a 5 add up to the value of a6 but be random numbers like 232 453 ect please help what function could i use

    THANKS JERRY
    Jerrold Green1 wrote:
    Thanks for the Solution mark, but I discovered a mistake in my approach. The last of the "random" numbers must be constrained to be the difference between the sum of the preceeding random numbers and the total. My revised, hopefully correct, version is this:
    The figure in cell A6, 63 in the example, is the constrained one.
    The formula for the A6 is:
    =A7-SUM(A$2:A5)
    Sorry about the false start.
    Jerry

  • Need help with numbers formula on ipad

    How can i type this formula (or its equivalent) using an in Numbers  and not mac os?
    =if(isblank(<source cell>), "", <What ever your formula is>)
    Thanks for any suggestions!

    I am trying to hide the zeroes in my destination cell when the formula cells are blank....can't be that hard I just can't figure itnou!!

  • Help with date formula

    Post Author: tmitchell
    CA Forum: Formula
    Running a general ledger report for inventory. There is one date field for inventory journal date {inv_jrnl.ij_date}
    Would like person running report to be able to enter any date ex 10/30/2007 to look at general ledger totals that day.
    Have tried several formulas and receive errors ex:   {inv_jrnl.ij_date}=DateValue(, ,)
    any suggestions

    Post Author: V361
    CA Forum: Formula
    I have CR XI, you should add a parameter, make it type date ( assuming {inv_jrnl.ij_date} is just a date and not a date time)  you can then put  {inv_jrnl.ij_date} = {? Date_Parameter_name}

  • I need help with a formula for Numbers.

    I keep getting a syntax error when I type this in...
    =(B1/50)+(C1/12)-(MIN(D1, [4])+/5)
    it is a formula to calculate weight watches points. here it is as seen on a website.
    p=(c/50)+(f/12)-(min{r,4}/5)
    p=points
    c=calories
    f=fat grams
    r=dietary fiber
    I have the cells so that b1 = calories, c1 = fat grams, and d1 = dietary fiber.
    Can anyone point me in the right direction? I'm thinking its just a simple mistake that I am making. Thanks.

    toppu2020 wrote:
    =(B1/50)+(C1/12)-(MIN(D1, [4])+/5)
    the [4] item means nothing for Numbers.
    My guess is that the formula is trying to get the minimal value in the duo D1 and 4
    so you may try:
    =(B1/50)+(C1/12)-(MIN(D1,4)/5)
    Yvan KOENIG (from FRANCE lundi 28 juillet 2008 20:29:36)

  • Help with formula script

    Hi guys,
    I need some scripting help with a formula I am trying to create. Basically, the RWDerived property should replace the Spaces in the descrption of a node with an underscore "_". The description property is the system description property. Thanks.
    -- Adi

    From the user guide:
    "The ReplaceStr function, which requires parameters for the old and new pattern, can take
    comma, space, tab, crlf, cr, lf, openparen, or closeparen, in square brackets ([]), in
    addition to normal text strings."
    It's much better to use "[space]" in your formula so that it won't break if someone edits it and changes the way whitespace is handled down the road. That checkbox is such an annoyance!

  • Help with difficult numbers formula

    I need help with a formula im trying to create in numbers on my iPad. I'll try to explaine the best I can and attach images to help.
    Ive created a spreadsheet to do rotas for work. Currently it calculates the shifts each person does and adds it to the total for that persons week in the end column and the total for the day in the bottom row. If the shift is equal to or more than 8 hours long then an hour needs to be deducted as they have a lunch hour that is unpaid for. This is currently done by a hidden row under each persons row that calculates the shift for that person on that day with the given conditions. Also is a 'H' (for holiday), 'RDO' (for requested day off) or 'X' (for unable to work this day) is placed in any of the cells the formular will return value 0. What I am wanting to do is to get rid of all the hidden rows and still have the total calculated in the end column for that person and the day in the bottom row. Is there a way of doing this without having to copy the formula in the hidden cell and adding them in series for each day to achieve the total? I hope this makes sense. Ive attached images to try and help with the explanation.
    Thanks in advance

    Hi Gary,
    I believe that it is generally good practice to choose several smaller formulas over large and complex ones. As you noted in your question you could add your daily IF()s to get the result you want but it would be an unwieldy construction. I also suspect that the daily hours for each employee could be useful info.
    I hope things are working out for you.
    quinn

Maybe you are looking for