I am attempting to create a function with time and having difficulty with it

Hello there.
I'm trying to retrieve on B5 a number from column C corresponding to the given time on A5.
Does anyone knows how it could be helped?
Thank you

Hi Alex,
For a brief moment your screenshot came thru so here is my response:
I added a column after "A" because a time or a date in Numbers is always both. when you type 16:45 Numbers also attaches a date. We need to strip the date out. We do that with:
TIMEVALUE(A1)
we put this into our new column  B and fill down. When you are done this column can be hidden. I could also have but this into the LOOKUP formula but I think this is clearer for now.
I made your row 5 into a footer since this is where our formula is. Lets try a screenshot:
We don't really need your column B (my C). The formula in C5 is:
LOOKUP(B5,B1:B4,D1:D4)
This looks for the value of B5 in B1:B4 and returns the corresponding value from D1:D4.
Anything lower than 16:45 will return an error. You can trap that error in different ways if it bugs you. Anything above 19:45 will return the value in D4. You can decide what you want that to be.
Hopefully the screenshot came thru; if not let me know what is not clear.
quinn

Similar Messages

  • Business Management Error: You are attempting to create a user with a domain logon that does not exist. Select another domain logon and try again.

    Hello,
    Suddenly the working CRM is being stopped for some group of users.
    I drilled down to the issue and have checked that the users from Domain in which CRM is installed are having CRM access.
    But for other domain user having problem to access CRM.
    I tried to add a user from a domain which is not of CRM domain then it gives following error.
    "Business Management Error: You are attempting to create a user with a domain logon that does not exist. Select another domain logon and try again.
    <Message>LookupAccountNameW failed with error</Message> "
    The change is made - AD group have upgraded Activer Directory server to 2012 R2
    Please help as the Production CRM is not working for other domain user.

    We have Activer Directory Structure like below.
    One Root Domain says A
    and there are multiple child domain like B,C,D etc...
    B,C and D are all in same level,they are child of A domain.
    There are two way transitive trusts between A and all the child Domain.
    But there is no trust in between B and C and so on.
    Our CRM server is in B domain and B domain's user can access CRM but users of Domain C,D and so on can not access CRM.
    If this post answers your question, please click &quot;Mark As Answer&quot; on the post and &quot;Mark as Helpful&quot;

  • How to create a function with ref_cursor as parameter in OWB 10.1

    Hi,
    Can any one help me how to create a function with ref_cursor as parameter in OWB 10.1.?
    Its urgent. Please help me.
    Thanks,
    Siv

    Hi David,
    Thanks for your reply.
    Before going for this function, I need to create a package in transformation node in owb module.
    My package is as follows,
    Create or replace package 123
    type xxx is RECORD ( parameters);
    type yyy is RECORD (parameters);
    type aaa is table of yyy;
    type bbb is REF CURSOR return xxx;
    type ccc is record (parameters);
    type ddd is ref cursor return eee;
    END;
    How can I create the above kind of package manually in OWB 10.1 (Should not to import the package)
    Please help me its urgent.
    Thanks,
    Siv

  • I'm attempting to create a pdf from InDesign and the Illustrator image does not appear properly.

    I'm attempting to create a pdf from InDesign and the Illustrator logo does not appear properly. The logo has a light blue color background with a black to white gradiant over it with a multiply designation set at 100%.  I flattened the logo in illustrator before importing into InDesign. When the pdf is created, the blue background of the logo drops out and the only thing showing is the graduated screen of black. PLEASE HELP!!!!!!

    Thanks for your reply Peter,
    I'm on Mac OSX (10.5.8) using Acrobat 7 Professional and Acrobat 
    Reader 9 to view the pdf. I created it by exporting. Attached is a 
    screen capture of the letterhead. Since I posted, I sent a test pdf to 
    my partner's computer eventhough it didn't look right on my system and 
    she said it looked fine to her. I've restarted my computer and tried 
    again and still get the same results.
    Thanks for your help,
    Pat Boullion
    Boullion Graphics
    281 444-5749
    Fax: 281 444-6507
    CONFIDENTIALITY NOTICE
    The information in this email may be confidential and/or privileged. 
    This email is intended to be reviewed by only the individual or 
    organization named above.
    If you are not the intended recipient or an authorized representative 
    of the intended recipient, you are hereby notified that any review, 
    dissemination or copying of this email and its attachments, if any, or 
    the information contained herein is prohibited. If you have received 
    this email in error, please immediately notify the sender by return 
    email and delete this email from your system.

  • I tried to install the Watch ABC (a free app) on my iPad from the AppStore. It would not download. I attempted to install it a second time, and got the message "You've already purchased this, so it will downloaded now at no additional charge." Any advice?

    I tried to install the Watch ABC (a free app) on my iPad from the AppStore. It would not download. I attempted to install it a second time, and got the message "You've already purchased this, so it will downloaded now at no additional charge." Any advice? This is a fee app so I do not understand the message referencing a purchased app. I get the cloud symbol, but it will not download. I closed the App Store app and restarted my iPad, but to no avail. Any assistance would be greatly appreciated.

    You are aware that there the app may have downloaded and been placed on the second screen.  Not the main one.  Can you swipe to the right to see if it is there?

  • On the AGO Function need to Create TODATE function with Diff levels - MTD,Q

    Hi All,
    My Basic Requirement is to Create Time Series Function on AAA ie ( Month To Date , Quarter To Date and Year To Date )
    The Logic for the AAA = XXX / Previous 3 Months Revenue.
    we know that we can use the AGO Function to create Previous 3 months Revenue with Month is Level . But the issue is .... i cant use AGO function since i need to perform Year to Date, QTD and MTD upon 'AAA' this OBIEE doesn't permit to use nested time series functions upon varying levels .
    So How can i Resolve the issue ie creation of TODATE function on the AGO Function with Diff levels
    Thanks,
    Swapna S

    hi,
    for your requirement create three repository variables like
    for previous 3 months create repository variable like
    select to_char(sysdate,'yyyymm') -3 from dual;
    for month to date first calculate first day of the month
    select To_Char(Add_Months(Last_Day(Sysdate),-1) + 1,'MM/DD/YYYY') from dual;
    after put a filter in answers date between first date of the present month and current date
    create the same thing for year to date
    calculate first date in the year like following query
    select To_Char(Trunc(Sysdate,'YEAR'),'MM/DD/YYYY') from dual;
    after that apply filter date b/w first date in the year and current date
    i hope it works for your scenario
    Regards
    Naresh
    Edited by: Naresh Meda on Nov 10, 2008 2:08 AM
    Edited by: Naresh Meda on Nov 10, 2008 2:12 AM

  • Creating a function with  a for loop and %type

    Hello,
    I am trying to create a function which contains a for loop as well as %type.
    This function is on a student table and i am trying to create a function which will display the zip which is a varchar2(5).
    I need to do this through this function.
    However, I can't seem to get it running.
    Can anyone help?
    below is what i tried as well as other options and was not successful.
    I also displayed my error with the show error command.
    SQL> create or replace function zip_exist
    2 return varchar2
    3 is
    4 v_zip student.zip%TYPE;
    5 cursor c_zip is
    6 select zip
    7 from
    8 student
    9 where zip=zip;
    10 begin
    11 open c_zip;
    12 v_zip IN c_zip
    13 loop
    14 v_zip:=c_zip%TYPE;
    15 end loop;
    16 close c_zip;
    17 end;
    18 /
    Warning: Function created with compilation errors.
    SQL> show error
    Errors for FUNCTION ZIP_EXIST:
    LINE/COL ERROR
    12/7 PLS-00103: Encountered the symbol "IN" when expecting one of the
    following:
    := . ( @ % ;
    16/1 PLS-00103: Encountered the symbol "CLOSE"
    SQL>
    kabrajo

    user10873577 wrote:
    Hello,
    I am trying to create a function which contains a for loop as well as %type.
    This function is on a student table and i am trying to create a function which will display the zip which is a varchar2(5).
    I need to do this through this function.
    However, I can't seem to get it running.
    Can anyone help?
    below is what i tried as well as other options and was not successful.
    I also displayed my error with the show error command.
    SQL> create or replace function zip_exist
    2 return varchar2
    3 is
    4 v_zip student.zip%TYPE;
    5 cursor c_zip is
    6 select zip
    7 from
    8 student
    9 where zip=zip;
    10 begin
    11 open c_zip;
    12 v_zip IN c_zip
    13 loop
    14 v_zip:=c_zip%TYPE;
    15 end loop;
    16 close c_zip;
    17 end;
    18 /
    Warning: Function created with compilation errors.
    SQL> show error
    Errors for FUNCTION ZIP_EXIST:
    LINE/COL ERROR
    12/7 PLS-00103: Encountered the symbol "IN" when expecting one of the
    following:
    := . ( @ % ;
    16/1 PLS-00103: Encountered the symbol "CLOSE"
    SQL>
    kabrajoTry This
    Create a sample table
    SQL> create table student(id number(10),zip varchar2(5));
    Table created.Insert the record
    SQL> insert into student values(1111,'A5454');
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select * from student;
            ID ZIP
          1111 A5454
    SQL> create or replace function zip_exist(v_id number)
      2   return varchar2
      3   is
      4   v_zip student.zip%TYPE;
      5  BEGIN
      6   select zip
      7   INTO v_zip
      8   FROM student
      9   where id=v_id;
    10   Return v_zip;
    11  EXCEPTION WHEN NO_DATA_FOUND THEN
    12                  RETURN 'INVALD';
    13  WHEN OTHERS THEN
    14                 return  'NA!';
    15   end;
    16  /
    Function created.
    SQL> set serveroutput on
    SQL> select zip_exist(1111) from dual;
    ZIP_EXIST(1111)
    A5454
    SQL> select zip_exist(2222) from dual;
    ZIP_EXIST(2222)
    INVALDHope this helps
    Regards,
    Achyut K

  • How to Create a Function module z_create and to track the error records?

    I want to create a function module z_create which will insert the data from the internal tables gt_model_master and gt_model  into the corresponding database custom tables y_model_master.
    Secondly if any error is encountered during the above updation, then how to track those error records ?

    HI,
    check the sy-subrc ,if it is zero the insertion is success,otherwise use 
    message class.
    if sy-subrc ne 0.
    message e052(zmessage).
    endif.
    Edited by: rakesh dhudipala on Feb 12, 2008 2:33 PM
    Edited by: rakesh dhudipala on Feb 12, 2008 2:33 PM

  • Anybody experience with creating timelag function with FOX?

    Dear All,
    As can be seen from my former thread Katie announces that financial functions are not moved to IP. And nowadays these aren't available in BW-BPS either.
    I'm just wondering if anybody has experience with creating financial unctions like timelag, allocation, IRR, accumulated balances etc in FOX?
    And if so, how complicated is this. Any examples would be most appreciated.
    Kind regards, Harjan

    Hi Hatter,
    thanks for the answer.
    But what do you think about the ICY DOCK?
    If you only want to use two drives, OWC has a nice
    $67 dual drive black metal case.
    I don't think that it is fast enough. Check the parameters:
    "Maximum Data Transfer Rate: 1.5Gb/s (or 100MB/sec)"
    Or FirmTek with a
    much better $199 case with 3-speed fan for best
    cooling.
    Yes. This is fine. Here there is:
    "High-performance storage data transfer up to 3.0Gbps (300MB/sec) per drive"
    But what about this ICY DOCK? Although I know that it is not the most important part when we are talking about RAID disks, but this enclosure looks really nice. Will it work as good as it looks like?
    PS: beware of anyone calling a device "hardware RAID"
    when all it does is use an Oxford bridge.
    How do you know that there is used an Oxford bridge, and why it work bad (as I suppose)?
    Marek.

  • How to create a function with dynamic sql or any better way to achieve this?

            Hello,
            I have created below SQL query which works fine however when scalar function created ,it
            throws an error "Only functions and extended stored procedures can be executed from within a
            function.". In below code First cursor reads all client database names and second cursor
            reads client locations.
                      DECLARE @clientLocation nvarchar(100),@locationClientPath nvarchar(Max);
                      DECLARE @ItemID int;
                      SET @locationClientPath = char(0);
                      SET @ItemID = 67480;
       --building dynamic sql to replace database name at runtime
             DECLARE @strSQL nvarchar(Max);
             DECLARE @DatabaseName nvarchar(100);
             DECLARE @localClientPath nvarchar(MAX) ;
                      Declare databaselist_cursor Cursor for select [DBName] from [DataBase].[dbo].
                      [tblOrganization] 
                      OPEN databaselist_cursor
                      FETCH NEXT FROM databaselist_cursor INTO @DatabaseName
                      WHILE @@FETCH_STATUS = 0
                      BEGIN       
       PRINT 'Processing DATABASE: ' + @DatabaseName;
        SET @strSQL = 'DECLARE organizationlist_cursor CURSOR
        FOR SELECT '+ @DatabaseName +'.[dbo].[usGetLocationPathByRID]
                                   ([LocationRID]) 
        FROM '+ @DatabaseName +'.[dbo].[tblItemLocationDetailOrg] where
                                   ItemId = '+ cast(@ItemID as nvarchar(20))  ;
         EXEC sp_executesql @strSQL;
        -- Open the cursor
        OPEN organizationlist_cursor
        SET @localClientPath = '';
        -- go through each Location path and return the 
         FETCH NEXT FROM organizationlist_cursor into @clientLocation
         WHILE @@FETCH_STATUS = 0
          BEGIN
           SELECT @localClientPath =  @clientLocation; 
           SELECT @locationClientPath =
    @locationClientPath + @clientLocation + ','
           FETCH NEXT FROM organizationlist_cursor INTO
    @clientLocation
          END
           PRINT 'current databse client location'+  @localClientPath;
         -- Close the Cursor
         CLOSE organizationlist_cursor;
         DEALLOCATE organizationlist_cursor;
         FETCH NEXT FROM databaselist_cursor INTO @DatabaseName
                    END
                    CLOSE databaselist_cursor;
                    DEALLOCATE databaselist_cursor;
                    -- Trim the last comma from the string
                   SELECT @locationClientPath = SUBSTRING(@locationClientPath,1,LEN(@locationClientPath)-  1);
                     PRINT @locationClientPath;
            I would like to create above query in function so that return value would be used in 
            another query select statement and I am using SQL 2005.
            I would like to know if there is a way to make this work as a function or any better way
            to  achieve this?
            Thanks,

    This very simple: We cannot use dynamic SQL from used-defined functions written in T-SQL. This is because you are not permitted do anything in a UDF that could change the database state (as the UDF may be invoked as part of a query). Since you can
    do anything from dynamic SQL, including updates, it is obvious why dynamic SQL is not permitted as per the microsoft..
    In SQL 2005 and later, we could implement your function as a CLR function. Recall that all data access from the CLR is dynamic SQL. (here you are safe-guarded, so that if you perform an update operation from your function, you will get caught.) A word of warning
    though: data access from scalar UDFs can often give performance problems and its not recommended too..
    Raju Rasagounder Sr MSSQL DBA
          Hi Raju,
           Can you help me writing CLR for my above function? I am newbie to SQL CLR programming.
           Thanks in advance!
           Satya
              

  • Help to create a function with

    Hi
    I want to implement single row string function to get the middle part for the string. How I can achieve it?
    select USER from dual;
    example - The user names are like DB_USER_100_DATA, DB_USER_101_DATA, DB_USER_102_DATA .....
    I want to return only 100, 101 characters . How I can do that/
    Thanks in advance

    try this,
    SQL> SELECT regexp_replace('DB_SER_100_DATA'
      2                       ,'[^(0-9)]+')
      3    FROM dual
      4  /
    REGEXP_REPLACE('DB_SER_100_DAT
    100regards,
    Christian Balz

  • Create Object Function with Custom ICF Connector

    Hi,
    I am developing an ICF Custom Connector. When provisioned a user, the user is created on the target succesfully but the process remains on the "Provisioning" status. When i control the log file, i see the following error:
    [oim_server1] [ERROR] [] [ORACLE.IAM.CONNECTORS.ICFCOMMON.PROV.ICPROVISIONINGMANAGER] [tid: [ACTIVE].ExecuteThread: '21' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: c4b0db765c688017:-2d2de9cf:13c04b25533:-8000-0000000000002b20,0] [APP: oim#11.1.2.0.0] oracle.iam.connectors.icfcommon.prov.ICProvisioningManager : createObject : Error while creating user[[
    java.lang.IllegalArgumentException: null field label doesn't exist
         at oracle.iam.connectors.icfcommon.service.oim9.OIM9Provisioning.getFieldName(OIM9Provisioning.java:174)
         at oracle.iam.connectors.icfcommon.service.oim9.OIM9Provisioning.setFormField(OIM9Provisioning.java:63)
         at oracle.iam.connectors.icfcommon.service.oim11.OIM11Provisioning.setFormField(OIM11Provisioning.java:299)
         at oracle.iam.connectors.icfcommon.prov.ICProvisioningManager.createObject(ICProvisioningManager.java:277)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpICFCREATEOBJECT.CREATEOBJECT(adpICFCREATEOBJECT.java:109)
         at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpICFCREATEOBJECT.implementation(adpICFCREATEOBJECT.java:54)
         at com.thortech.xl.client.events.tcBaseEvent.run(tcBaseEvent.java:196)
         at com.thortech.xl.dataobj.tcDataObj.runEvent(tcDataObj.java:2492)
         at com.thortech.xl.dataobj.tcScheduleItem.runMilestoneEvent(tcScheduleItem.java:3181)
         at com.thortech.xl.dataobj.tcScheduleItem.eventPostInsert(tcScheduleItem.java:753)
         at com.thortech.xl.dataobj.tcDataObj.insert(tcDataObj.java:604)
    Thanks
    Fyigit

    null field label doesn't exist you have to create return field in process form and map this field to provisioning lookup. In this lookup CodeKey should be your process form field and Decode should be __UID__
    Test the provisioning again...

  • Creating collections based on time and day

    Hello,
    I want to create a collection that would apply software update settings to run every 30 minutes only on a Saturday, between 4 am and 2 pm. This is to address an issue that I am running into
    - Our software update deployment window is the second Saturday of each month.
    - if an update results into the system being eligible for more updates, that system does not install the subsequent update until the next week, as our client settings are at the default setting of running an update scan and update deployment scan every 7
    days.
    I want to leave the settings at the default, except on Saturday between 4 am and 2 pm so that the update scans and deployment scans run every 30 minutes.
    I want systems to be members of a collection only during this time period, so that I can apply accelerated client settings above to the collection.
    I am trying to use the query:
    select *  from  SMS_R_System where (DATEPART( WEEKDAY,GETDATE()) = 7 AND DATEPART( HOUR, GETDATE()) BETWEEN 4 AND 14)
    However the query does not run and comes back with an "Invalid view" error.
    Can I use the SQL datetime functions in this manner?
    thanks,
    -Ravi

    I think all you need to create is "a collection with Maintenance window". You can create a deployment for software updates in advance so that Policies get refreshed on your clients.
    If you need to refresh policies every 30 minutes during the MW, you can create a runbook for policy refresh and also systems reboot using Orchestrator during MW. Orch does automation for you. This will fix your patching concern specially when a system pending
    reboot. After reboot client with check in with existing deployment and will install patches if required. 
    If policy refresh is the concern then you can create a custom client setting with policy interval 30 minutes(aggressive) to poll and deploy to that collection but you can not schedule this only during MW. 
    Also with right click tools, you can force check in policies on collection.
    Thanks
     

  • Creating executable including run time and drivers windows 7

    Hi
    Using version 8.5.1 and need to include the runtime version, and drivers for connecting to scope into an executable. Have found so much information on the subject of creating an executable but would like to know if anyone has some step by step for version 8.5.1 to create an executable.   Also, has anyone had any issues with drivers and installing/creating exe. while running windows 7.

    Hi!
    I remember running the compiler at home on Windows 7 64bit using 32bit LabVIEW and I did not have any problems.  The exe built just fine.
    You have to have your code in a project in order to build an executable.  Once you have created a project and included your source files, right click on Build Specifications and choose "New->Application (exe)".  Go through each section of the Application (exe) dialog and input the appropriate settings you need.
    You can include the runtime and device drivers by creating an Installer.  Once you have your executable built, you can right click on Build Specifications and choose "New->Installer".  Same thing, go through each part of the dialog box selecting appropriate settings.  Under "Additional Installers" you can include NI drivers and the LabVIEW runtime.  If you have never done this before, it may ask for you to insert LabVIEW/NI Driver discs so it can include what it needs to for your installer.
    My users tend to groan whenever I do this, however, as it creates installers >400MB (which seems silly to them for what appears to be a simple program).  Ah well. 

  • Upgraded to FCP 7.0.3 and having difficulty with playback

    I have opened a project that was working perfectly in FCP 6 in FCP 7.0.3 on the same system I am getting the following alert:
    "One or more frames were dropped during playback..."
    Mac Pro
    My OSX is updated to 10.5.8
    Processor 2x3 GHz Dual-Core Intel Xeon
    Memory 4gb 667 MHz DDR2 FB-DIMM
    Kona Video Card
    Any suggestions?

    Sequence Settings
    Frame Size 1920x1080
    Pixel Aspect Ratio Square
    Editing Time Base 23.98
    Quicktime Video Settings
    Compressor Apple ProRes 422 (HQ)
    Quality 100%
    Audio Settings 48khz
    Depth 24-bit
    Config Channel Grouped
    Camcorder Source Alexa
    Transcoded to Apple ProRes HQ 422
    Dedicated Media Drive
    Fibrenetix Raid
    4.55TB 4.21 TB Available Mac OS Extended (Journaled)

Maybe you are looking for