STATIC TIME STAMP IN MULTIPLE COLUMNS

I have a single spreadsheet for Monday - Friday.  There are multiple columns for each day.  It has been asked of me the following:
When the customer name is typed for the first time in columns: E, T, AH, AV, BJ  rows 5-28 then the static date & time would appear in another column on the same row.  I would be adding columns (M, AB, AQ, BF, BU)  for date/time.  
Example: Customer name typed in E5 the date time would show in M5 for Monday.  For Tuesday, it would be T5 with date in AB5, etc.
I have very little experience with VBA and have searched the internet for a solution, there are many conditions and have tried for using solutions for just one column, but none have worked.  
Thank you
Linda
woodlinda

You can have only one Worksheet_Change event procedures per worksheet. You have to combine the two Worksheet_Change event procedure into one:
Private Sub Worksheet_Change(ByVal Target As Range)
    If Not Intersect(Target, Columns("C:BB")) Is Nothing Then
       Rows(Target.Row + 1).Hidden = False
    End If
    If Not Intersect(Range("E5:E28,T5:T28,AH5:AH28,AV5:AV28,BJ5:BJ28"), _
            Target) Is Nothing Then
        Application.EnableEvents = False
        Intersect(Range("E5:E28,T5:T28,AH5:AH28,AV5:AV28,BJ5:BJ28"), _
            Target).Offset(0, 8) = Now
        Application.EnableEvents = True
    End If
End Sub
Regards, Hans Vogelaar (http://www.eileenslounge.com)

Similar Messages

  • Append time stamp as a column in an excel file

    Hi
    i want to add timestamp to the last column  of my excel file
    my data is this 
    columnA   columnB  column C  columnD
    temp10     temp11    temp12     timestamp       these are header name
    74.212     73.122     73.222      11AM:23:59.012
    73.444     73.223     74.322      11AM:24:02.083
    73.445     73.478     75.555       11AM.24:03.833
      and continue
    I can use write spreadsheet to have the three numeric tempdata but the last column formatted as time stamp and string 
    how do I add time stamp to my data and call the spreadsheet write VI to append to the excel file ?
    help
    Solved!
    Go to Solution.

    You have at least two possibilities:  One is to do the formatting yourself with string functions and write the data as a text file or an array of strings.
    Another is to convert the timestamp to a Double and save it as numeric data.  This is only useful if your are going to read the data back into LV and analyze it there, because Excel's numeric representation of date and time is different from that used by LV.
    Lynn 

  • Add time stamp array into first column of text file

    I am writing daq output to a file by using array to spreadsheet string vi then write that to a file but I would like to add a time stamp array into the first column of the text file. How do I do this?

    When you use a DAQmx Read, you have the option of returning a waveform data type. This includes time data. If you were to use this and either Export Waveforms to Spreadsheet File or Write Measurement File, this would included. To stick with the regular Write to Spreadsheet File, you would have to create an array of timestamps yourself based on a start time and the sample rate of the DAQ. Then you would convert this and the data array to strings and use the string array type of Write to Spreadsheet instead of the DBL type.
    Message Edited by Dennis Knutson on 09-25-2007 01:12 PM
    Attachments:
    Write to Spreadsheet - Strings.PNG ‏1 KB

  • How to read multiple Digital samples and plot a chart with time stamps

    Hi,
     Could anyone send me a code that:
    1. Reads 'multiple samples(lets say 4) from single digital input' 
    2. 'plot digital data as a chart with time stamps'
    3. Find frequency
    4. Log data into file with time stamps
    I have attached the code which i tried.
    Thanks,
    LK
    Attachments:
    DigitalNSample.vi ‏27 KB
    DigitalNSample.vi ‏27 KB

    Hi,
     Could anyone send me a code that:
    1. Reads 'multiple samples(lets say 4) from single digital input' using NI USB 6009 or NI USB 6251.
    2. 'plot digital data as a chart with time stamps'
    3. Find frequency
    4. Log data into file with time stamps
    I have attached the code which i tried.
    Thanks,
    LK
    Attachments:
    DigitalNSample.vi ‏27 KB

  • HOW DO I ACHIEVE A TIME STAMP, IN THE FIRST COLUMN OF MY SPREADSHEET IN EXCEL,SHOWING THE TIME INTERVAL, INCREASED BY THE SCAN RATE ?

    FROM AI START VI TO FORMAT AND APPEND VI TO CONCATENATE STRINGS,SECOND INPUT IS TAB,THEN EVEY OTHER ONE IS TAB. THIRD AND FIFTH INPUT IS ATTACHED TO GET DATE/ TIME VI, THEN END OF LINE, THEN CHANNEL 0; TAB; CHANNEL 1;TAB, AND SO ON THROUGH CHANNEL 7. THEN THE LAST INPUT IS END OF LINE. ON THE SPREADSHEET I RECIEVE THE SCAN RATE, THEN THE DATE ,THEN THE TIME; ALL ON THE FIRST ROW. THE NEXT ROW HAS THE COLUMN LABLES, AND DATA GOES TO THE CORRECT COLUMN. BUT NO TIME STAMP COLUMN. I WOULD LIKE IT TO BE IN COLUMN "A" EVEN WITH THE FIRST ROW OF DATA. EX." 10:01:01 200 300 400
    10:01:03 200 300 400
    THANK YOU
    FOR YOUR HELP, JOE BOB CRAIN

    I think the best way is to generate an array of time values to send to your spreadsheet BEFORE channel 0 data.
    To generate the array you can use Ramp Pattern.vi from 0 to 'Actual Scan Rate' (from AI Start) * number of scans performed.
    That way in your spreadsheet you will have the first line same as now, next the columns with time(secs), channel 0, channel 1... channel 7.
    If you need the time column with date and time string, you can use Get Date/Time in Seconds.vi when you begin acquisition, then sum the seconds obtained to the array calculated as above and next use Format Date/Time String.vi to obtain the time stamp you need, next build array of time stamps and sent to your spreadsheet.
    Hope this helps
    Roberto
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Plotting Time Stamp from Txt file in Column to another column

    I want to know how to plot 2 columns that i am reading from a text file.
    column 1 has a time stamp in HH:MMS,  and column 5 has data in which i want to plot the time verus the data.

    The Scan from String function will do most of those conversions in a single step.  Here are a couple of examples.  You will still need to read the array of strings in and process in a loop.
    Message Edited by DFGray on 03-19-2010 07:46 AM
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • Multiple channel data with different time stamp logging

    I have peaks and valleys from multiple channels with different time stamp but I am not able to log to a single file. Any idea on how to do this?
    Attachments:
    Single Point Peak Valley Log.vi ‏53 KB

    Hi Dennis,
    Sorry for that I have modified the VI.
    Because the peak and valley of every channel will occur at different time and I want to log the peak/valley with the time stamp.
    How can I log them on the same file.
    Attachments:
    Single Point Peak Valley Log_Mod.vi ‏53 KB

  • CUOM 2.3 sends multiple notifications for Event StoppedGSUPerformancePolling with same time stamps

    Hi Alll,
    I have a CUOM Version 2.3 which shows mutiple notifications per Device for Event StoppedGSUPerformancePolling with same time stamps. The message below is generated from the default All_Events for all devices.
    Does anyone have a solution for that.
    Regards Michael
    This message is generated 8 times with the same time stamp in all messages.
    ** This message is generated from Cisco Unified Operations Manager **
    ALERT ID                = 00012OW
    CREATION TIME           = Sat 30-Oct-2010 16:31:57 CEST
    MODIFIED TIME           = Sat 30-Oct-2010 17:00:58 CEST
    STATUS                  = Active
    SEVERITY                = Critical
    MANAGED OBJECT          = 183.201.141.193
    MANAGED OBJECT TYPE     = VoiceGateway
    ASSOCIATED EVENTS       =
        Cleared:183.201.141.193:Unresponsive
        Active:183.201.141.193:StoppedGsuPerformancePolling
    CUSTOMER IDENTIFICATION = Voice Port
    CUSTOMER REVISION       = Voice Port

    if you get SNMP timeout on multiple devices then the fault usually lies in the path that the polling follows to get to these devices and back to the server.
    The problem obviously lies in the part path they have in common.
    It is not unusual to see the highest backbone loads during the night, due to backups being taken.
    Make sure the most important inter-switch links have no errors.
    I would rather fix this then turn off alerting.
    Cheers,
    Michel

  • Drill-down to multiple columns at same time

    Hello,
    Is it possible to simultaneously drill down to multiple columns on the same level with one click? I have several attributes that the user will want to see together at all times, so I want to be able to drill from level1 to level2a,2b, and 2c with one click.
    Thanks,
    Elliot

    This drilling down to all the levels may not be available with the OBIEE drill level based hierarchy feature OOTB but as an alternative you can try this at you DB level to create a hierarchy within you data using START WITH and CONNECT BY PRIOR to generate the parent->child levels hierarchy within the view instead of creating multiple hierarchical columns.
    Or may be you can try to create separate columns in a table for each hierarchy level. That table could either be in the database or be a logical one in the repository. For example:
    Level 1 Level 2 Level 3 Description
    1 2A 3A
    1 2A 3B
    1 2B 3A
    1 2B 3B
    etc
    You then create separate reports for each level, so one report has only level1 in it for this dimension, another report has levels 1 an 2 and a third report has levels 1, 2 and 3 etc.
    In each report you put an action link on the levels' cells so that if you click on them you drill up or down by displaying a new report with either less or more level columns.
    Hope this helps. Pls mark if it does.
    Thanks,
    SVS

  • Sorting multiple columns at a time

    Hi All,
    I have requirement which is web dynpro table loading with the data i need to sort the three columns
    at a time. initially this sorted data is coming from Function module, but now the data is coming from BW to Web dynpro java
    I have one method in sort class which will sort the table on one column at time. i need help in enhancing this method to work for three columns.
      public void sort(String columnId, IWDNode dataSource) {
           IWDTableColumn column =
                (IWDTableColumn) table.getView().getElement(columnId);
           ReversableComparator reversable =
                (ReversableComparator) comparatorForColumn.get(column);
           if (reversable == null)
                return; // not a sortable column
           // remove icon of previously sorted column
           if (currentlySortedColumn != null
                && currentlySortedColumn.getHeader() != null)
                currentlySortedColumn.getHeader().setImageSource(null);
           // bookkeeping
           if (column == currentlySortedColumn) {
                //               reversable.toggleReversed();
           currentlySortedColumn = column;
           // set icon in currently sorted column
           /*if (currentlySortedColumn.getHeader() != null)
                currentlySortedColumn.getHeader().setImageSource(
                     reversable.isReversed()
                          ? "~sapicons/s_b_srtd.GIF"
                          : "~sapicons/s_b_srtu.GIF");
           // sorting
           dataSource.sortElements(reversable);
    Regards,
    Lakshmi Kodavati

    Hi all,
    The solution for EP6.40 Multiple column sorter
    Class file:
    http://wiki.sdn.sap.com/wiki/display/Snippets/Tablesorterbymultiplecolumns%28WebDynproJava%29
    f you does not have WDTableColumnSortDirection try to modify the MultiAttributesNodeComparator and replace WDTableColumnSortDirection with the boolean flag-indicator of the sorting direction. Like this:
    boolean sortAsc = true;  // WDTableColumnSortDirection.UP
    Call this class from web dynpro view
    final MultiAttributesNodeComparator nodeComparator = new MultiAttributesNodeComparator();
                        nodeComparator.sortElements(new String[] {"InvoiceDate","Invoice","Contract"}, true, wdContext.nodeInvoiceListTable());
    Thanks for Siarhei_Pisarenka
    Edited by: narayana on Mar 25, 2010 10:02 AM
    Edited by: narayana on Mar 25, 2010 10:05 AM

  • Multiple Column text field in Static PDF form

    Okay, I'm pulling my hair out here. I am filling a .pdf form with itextsharp using powershell scripts. All this part of the issue is working fine.
    My problem is that I have the following data:
    A3015400R-2,A3015318R-1,A3015318R-2,A3015336R-1,A3015423R-1,A3015423R-2,A3015486R-1,A30153 06R-1,A3015240R-1,A3015102R-1,A3015333R-1,A3015120R-1,A3015158R-1,A3015333R-1,A3015400R-3, A3015400R-6,A3015400R-7,A3015234R-1,A3015234R-2,A3015400R-9,A3015306R-5,A3015311R-1,A30154 00R-2,A3015318R-1,A3015318R-2,A3015336R-1,A3015423R-1,A3015423R-2,A3015486R-1,A3015306R-1, A3015240R-1,A3015102R-1,A3015333R-1,A3015120R-1,A3015158R-1,A3015333R-1,A3015400R-3,A30154 00R-6,A3015400R-7,A3015234R-1,A3015234R-2,A3015400R-9,A3015306R-5,A3015311R-1
    That I would like to be displayed in columns across the page within one text field. So that the text field would look like this (approximately):
    A3015400R-2
    A3015318R-1
    A3015318R-2
    A3015336R-1
    A3015423R-1
    A3015423R-2
    A3015486R-1
    A3015306R-1
    A3015240R-1
    A3015102R-1
    A3015333R-1
    A3015120R-1
    I have the data sorted before I populate, so they go in numerical order, and i would like the be able to read them from top to bottom, left to right.
    I just can't figure out how to either:
    a) add multiple columns like I add multiple lines inside a text field
    or
    b) have multiple text fields linked together to thread the text input from fieldA to fieldB
    Any help would be much appreciated.
    edit: The data is actually in this format:
    A3015400R-2
    A3015318R-1
    A3015318R-2
    A3015336R-1
    A3015423R-1
    A3015423R-2
    A3015486R-1
    A3015306R-1
    A3015240R-1
    A3015102R-1
    A3015333R-1
    A3015120R-1
    A3015158R-1
    A3015333R-1
    A3015400R-3
    A3015400R-6
    A3015400R-7
    A3015234R-1
    A3015234R-2
    A3015400R-9
    A3015306R-5
    A3015311R-1
    A3015400R-2
    A3015318R-1
    A3015318R-2
    A3015336R-1
    A3015423R-1
    A3015423R-2
    A3015486R-1
    A3015306R-1
    A3015240R-1
    A3015102R-1
    A3015333R-1
    A3015120R-1
    A3015158R-1
    A3015333R-1
    A3015400R-3
    A3015400R-6
    A3015400R-7
    A3015234R-1
    A3015234R-2
    A3015400R-9
    A3015306R-5
    A3015311R-1
    Message was edited by: zombiejellyfish81

    Did you ever find any solutions to this problem?

  • OBIEE 11g How to Exclude/Include Multiple columns on BI Report at Run Time

    OBIEE 11g How to Exclude/Include Multiple columns on BI Report at Run Time

    Exclude:
    you Can exclude columns in either Table view or pivot table view by placing those columns in Excluded section but you will notice that it will appear in bi server parsed sql query.
    Not sure you were asking about runtime??
    would you please explain your question!!
    Thanks
    NK
    Edited by: DNK on May 8, 2013 9:48 PM

  • How to link Excel Chart with multiple columns dynamically?

    Hi all,
    I have one problem. I have an excel chart which has to read data from multiple columns for it's X-axis values (time stamps) and the same number of values for it's Y-axis from multiple columns. See figure attached.
    Now, you can do this by manually assigning values by holding control key to tell the chart that data from many columns is continued from the first column. i.e, a long data is distributed along may columns. This is done very easily manually.
    Now, how to do it at runtime through LabVIEW 8.0?
    Although, I have done it through labview when there where only two columns, A and B streching up to any length. But, now to save space we are dumping into many columns in the same page and want the chart plot that data as we dump it. 
    It is tough since I don't know how to assign SourceData of the chart through labview.
    I have attached chart's SourceData picture.
    Hope you all can solve my problem.
    The Y-axis values are: =(good!$B$30:$B$70,good!$D$30:$D$70,good!$F$30:$F$70,good!$H$30:$H$70,good!$B$71:$B$140,good!$D$71:$D$140,good!$F$71:$F$140,good!$H$71:$H$140,good!$B$141:$B$189)
    good is the name of the file.
    The X- axis values are: =(good!$A$30:$A$70,good!$C$30:$C$70,good!$E$30:$E$70,good!$G$30:$G$70,good!$A$71:$A$140,good!$C$71:$C$140,good!$E$71:$E$140,good!$G$71:$G$140,good!$A$141:$A$189)
    See the columns vary from A to F.
    I have still not got what I love.....
    Attachments:
    ExcelChart.JPG ‏113 KB
    SourceData.JPG ‏34 KB
    XY values.JPG ‏36 KB

    Ok i solved the excel chart problem. Here is the figure showing my victory! But offcourse with NI forum help.
    Message Edited by Halemani on 09-19-2008 06:33 AM
    I have still not got what I love.....
    Attachments:
    Chart_XValues_Values.JPG ‏36 KB

  • Auto Date/Time stamp required for Numbers 3.1

    I would like to automatically add a Date/Time stamp to the last column's cell, when a person's name is selected from the pop-up menu in Column C.
    As a number of different people will be using the spreadsheet, I'd prefer not to have a keyboard short cut, as it can be easily overlooked.
    I was wondering if it were possible to use a script to copy a cell's (column D) results, containing the 'NOW()' or 'TODAY()' function, and paste the results into the 2nd cell (Column E), allowing the last column's formula to reference the 2nd cell?
    The formula in the last cell   =if($C2="","",$E2)  can then reference a static cell, rather than a live cell.
    I know enough to be dangerous, so I'm not sure if i'm heading in the right direction.
    Thanking you all in advance.

    Hi Gordon,
    Is this the same as a script?
    Good question! It's fun to see people try to define what a service is. It may be one of the least understood and appreciated features on the Mac. It was certainly a mystery to me not long ago.
    I think of a service as anything that can be made to appear in the Services menu. Apple has made that easy with Automator. You fire up Automator, create a new service "workflow" document, plop in a script, save, and see the result immediately in the Services menu. You can also send the .workflow package to someone else, who only needs to double-click to install it.
    This particular date-time service contains a short AppleScript (you can view it by opening the .workflow in Automator.  But other languages (Python, Perl, etc) and Unix utilities can be used too, as illustrated here.
    Since Numbers has decent support for AppleScript, it is quite easy for the non-technical user to "bolt on" menu choices to do quite sophisticated things that are not built into the interface itself.  I find it more accessible than (and just as powerful as) the VBA used for Excel macros. But that could be mostly a matter of familiarity.  In any case, it adds a whole new dimension to Numbers.
    SG

  • Index on multiple columns issue Oracle 9i

    Hi,
    I have a couple of issues and would appreciate it if anyone can help:
    a). I have a table that has indexes on multiple columns, so for example:
    Index 1 on Org_Type, Org_Id and Effdt
    Index 2 on FICE_CD, Org_Id and Effdt etc.
    I have 9 such indexes and all of them hav Effdt in it.
    My question is if I query the table and always use a subquery to get the max Effdt rows form the table, will the above indexes help in my query or will I have to create another index just on Effdt so that my Query runs faster.
    b). I have a target table with more than 20 million rows in it. This table has an Effdt too and I would like to find the max effdted row in this table as well so that I can then use that date-time stamp in my ETL tool to do an incremental update from my source table each night. But since the amount of rows is huge, my query runs forever. I have a normal non-unique index on Effdt. Is there another way I can optimize this table? Currenlty I have resorted to getting all rows from source that are >= (sysdate -1), but I would prefer to get the max date-time stamp from the target table itself.
    Thanks,
    CJ

    Hi ,
    Thanks for the input. I just used the explain plan and found that there is a full table scan happening on the PS_EXT_ORG_TBL, so I guess I will have to create an index specifically on the effdt field. The sql is as follows:
    Select E.EMPLID, E.INSTITUTION, E.EXT_ORG_ID, E.EXT_CAREER, E.EXT_DATA_NBR, E.EXT_SUMM_TYPE, E.UNT_ATMP_TOTAL, E.UNT_COMP_TOTAL,
    E.CLASS_RANK, E.CLASS_SIZE, E.PERCENTILE, E.UM_GPA_EXCLUDE, E.UM_EXT_ORG_GPA, E.CONVERT_GPA,
    E.UM_EXT_ORG_CNV_CR, E.UM_EXT_ORG_CNV_GPA, E.UM_EXT_ORG_CNV_QP, E.UM_GPA_OVERRIDE, E.EXT_ACAD_LEVEL,
    F.FROM_DT, F.TO_DT, G.EXT_DEGREE_NBR, G.DEGREE, G.DESCR "DEGREE DESCR", G.DEGREE_DT, H.EFFDT,
    H.EFF_STATUS, H.SCHOOL_CODE, H.LS_SCHOOL_TYPE, H.ATP_CD, H.CITY, H.STATE, H.COUNTRY,
    H.DESCR "SCHOOL DESCR", H.PROPRIETORSHIP
    FROM PS_EXT_ACAD_SUM E, PS_EXT_ACAD_DATA F, PS_EXT_DEGREE G, PS_EXT_ORG_TBL H
    WHERE E.EXT_ORG_ID = F.EXT_ORG_ID AND E.EMPLID = F.EMPLID
    AND E.EXT_ORG_ID = G.EXT_ORG_ID AND E.EMPLID = G.EMPLID
    AND E.EXT_ORG_ID = H.EXT_ORG_ID
    AND H.EFFDT=(SELECT MAX(EFFDT) FROM PS_EXT_ORG_TBL H1
              WHERE H.EXT_ORG_ID=H1.EXT_ORG_ID
                        AND H.EFF_STATUS=H1.EFF_STATUS
                        AND H.SCHOOL_CODE=H1.SCHOOL_CODE
                        AND H.LS_SCHOOL_TYPE=H1.LS_SCHOOL_TYPE
                        AND H.ATP_CD=H1.ATP_CD
                        AND H.CITY=H1.CITY
                        AND H.STATE=H1.STATE )
    My source DB is a copy of the transactional database, so there is no danger of new rows coming in.

Maybe you are looking for

  • Using iPhoto, editing with Photo Elements 10, How to have save photos  directly to iPhoto?

    I want to keep using iphoto but use editing capabilities of elements 10. I am having a hardtime saving back to iphoto. Initialy was adding text to photos and had to first "flatten" the layers to be able to save to iphoto. (realized after two hours) O

  • Refund app purchase due to wrong version

    Hi, I wrongly purchase iPhone version of Photon browser on my Ipad mini. I purchase iPad mini version again. Is there a way to refund the iPhone version that I purchased? Thanks

  • IMac 20" Camera

    I have a iMac 2.4 GHz Intel Core 2 Duo I have a problem of almost when I drop dead HD, after repairs to the service, the camera goes dead I went back into service, saying that they did not connect. They fixed and the camera worked. Now, after 3 month

  • How many Keywords can I use

    Hello A question about Keywords. How many keywords can  I use for each page? And is there a loot for HTML <head> optimalization? Ton

  • Startup stuck in restore prior session, changing options, reboot no help.

    i can change the options, like load blank page. restart system, load firefox, and get prior sessions. I look at options and they say load blank page. also fails same way for homepage.