Converting time-formatted to text-based data

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I'm setting up several thousand contract names for a workforce management
program from time-formatted data in Excel and am hoping there might be a way
using a VB script to look up the value of a cell and convert it to form part
of the unique name given to that contract.

Example: the data running from Sunday start attendance to Saturday end
attendance is contained in, say, cells: c110-p110

00:00 00:00 08:00 16:00 08:00 16:30 08:00 16:30 08:00 16:00 08:00 16:00 00:00 00:00

The standard part of the contract name I need to generate is: "FT NR 36",
followed by:

M (8h-16h),Tu (8h-16h30), W (8h-16h30), Th (8h-16h), F (8h-16h)

The 00:00 values in start end of first 2 cells (Sunday) c110 & d110 and last
2 cells (Saturday) o110 & p110 should return no values in the heading, as
shown above. If there was data in these cells it should return S(start-end
hrs) and Sa (start-end hrs) in the same format as the Mon-Fri attendances
shown above.

Many thanks for any advice




.



Relevant Pages

  • RE: Bringing Data From Access To Excel
    ... Alistaire ... Dim wkSpace As DAO.Workspace ... MsgBox "No records matching the entered Contract ID found.", ... other cells in a excel sheet to populate accourding to the Contract Number is ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Microsoft Excel
    ... Say, cells a1:aq72 ... associated with that vulnerability, contract and tricks taken. ... If the result is -1, declarer is not vul, otherwise ...
    (rec.games.bridge)
  • Re: Microsoft Excel
    ... Brd Vul Dir Contract By Lead Tricks Score ... Say, cells a1:aq72 ... associated with that vulnerability, contract and tricks taken. ... If you are neither white nor amber, then see if your opponents are playing it, if so, assume declarer is vulnerable, if not, assume non-vulnerable. ...
    (rec.games.bridge)
  • Re: Conditional Formatting on calculated text
    ... The character length of both cells should be the same. ... Current Compare Contract# ... spreadsheet. ... I'm trying to compare where the names are ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Find certain text in a column and return statement
    ... TelecomAuditor Wrote: ... > I need help writing a formula that says if column AH, ... > found in contract". ... > The cells will have about 29 characters and this text appears at the ...
    (microsoft.public.excel.worksheet.functions)