$$Excel-Macros$$ Sum downtime for equipment with overlap periods

2014-11-22 Thread son nguyen
Dear all,

I have problem when calculate total equipment downtime as there are overlap
periods.
For example :
start time   Finish time
8:00   8:20
9:00   12:00
10:00  11:30
...  
start time,finish time are flexible.
all of you might give me formula to total hours but exclude overlap.

-- 
Best Regards
Son

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


$$Excel-Macros$$ Re: Want to get your question answered quickly?

2014-11-22 Thread Steve st-pierre
How could get this micro to work in excel. The macro should write the time 
in one row (Row A - field 1) when something is written in the second row 
(Row B - field 2). When I add this to any excel (Excel on mac 14.4.6) file 
I don't even get any errors. Could someone help me to tell me why it 
doesn't work ?

Thank you,

Steve

Private Sub Worksheet_chage(ByVal Target As Excel.Range)
Dim rCell As Range
Dim rChange As Range

On Error GoTo ErrHandler
Set rChange = Intersect(Target, Range("A:A"))
If Not rChange Is Nothing Then
Application.EnableEvents = False
For Each rCell In rChange
If rCell > " " Then
With rCell.Offset(0, 1)
.Value = Now
.NumberFormat = "hh:mm:ss"
End With
Else
rCell.Offset(0, 1).Clear
End If
Next
End If

ExistHandler:
Set rCell = Nothing
Set rChange = Nothing
Application.EnableEvents = True
Exit Sub
ErrHandler:
MsgBox Err.Description
Resume ExistHandler
End Sub


Le samedi 3 novembre 2012 03:34:25 UTC-4, Ayush Jain a écrit :
>
>
> Dear members,
>
> If you keep below points in mind while asking your query, The chances to 
> get answered is just high :
>
>1. *Ensure your question is not too vague.* Don't assume anyone is 
>familiar with your problem. While you can upload small attachments, 
>describe your problem in the body of the post. We are fortunate to have 
>several Excel gurus, but few mind-readers.
>2. *On the other hand, skip irrelevant details.* Be descriptive and 
>concise. Short, direct, and to-the-point questions with apt thread titles 
>are almost always answered promptly.
>3. *Keep the scope reasonably narrow.* Questions like, "How do I set 
>up an accounting system in Excel?" might be a long time waiting.
>4. *Explain what you've already tried.* ("Calculation is set to 
>automatic, but formulas still don't compute") so helpers don't waste your 
>time or theirs.
>5. *Post a WORKBOOK.* Nobody wants to type data from a picture or 
>paste text from your post into a spreadsheet as a prelude to helping. To 
>attache a file, You can email them as attachments to your group's email 
>address excel-...@googlegroups.com  OR Simply "Attach a 
>file" during posting in New Google Groups.
>6. If your question has not been answered within a day, consider 
>adding another post with any additional information you believe is 
>relevant. 
>7. Use {} from the post menu to *high**light the syntax*
>
> Many Thanks
>
> Keep Posting,
>
> -Ayush Jain(Group Manager)
>
>
>
>
>
>
>

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ Re: VBA

2014-11-22 Thread Prafull Jadhav
Dear Paul Sir,
Can you please explain what is
  "Debug.Assert True"

Regards,
Prafull Jadhav
9920553518

On 22 November 2014 at 09:55, Mandeep Baluja  wrote:

> Hello Paul,
>
> First I would like to thank you from bottom of my *heart* for making such
> an *efficient code* to handle such a bad formatted data. Today I got to
> know that experience pays off you're brilliant in your efforts. As I have 4
> months of experience in VBA Still I understand every line of your code
> except this , Debug.assert = True , If ((ActiveSheet.Range("A1").Value &
> "X" = "X") _
> And (ActiveSheet.Range("B1").Value & "X" <> "X")).
>
> if(Query = True, " Paul will handle it,"" Paul will handle it") :P
>
> Cheers
>
> Regards,
> Mandeep Baluja
>
> https://www.linkedin.com/profile/view?id=312532939
> https://www.facebook.com/VBAEXCELSQL?ref=hl
>
> On Thursday, November 20, 2014 4:59:00 PM UTC+5:30, Mandeep Baluja wrote:
>>
>> Dear All,
>>
>> I need to work on Data sheet which contains all the cells in text format.
>> basically its a timing sheet. I want to change the format of all the time
>> values in correct format and wish to highlight those cells where people
>> come after 10:00 am .Hope you can understand this by going through the
>> sheet.Looking for a Macro which can correct the format of time
>> automatically.
>>
>> Regards,
>> Mandeep Baluja
>>
>  --
> Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s
> =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @
> https://www.facebook.com/discussexcel
>
> FORUM RULES
>
> 1) Use concise, accurate thread titles. Poor thread titles, like Please
> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
> will not get quick attention or may not be answered.
> 2) Don't post a question in the thread of another member.
> 3) Don't post questions regarding breaking or bypassing any security
> measure.
> 4) Acknowledge the responses you receive, good or bad.
> 5) Jobs posting is not allowed.
> 6) Sharing copyrighted material and their links is not allowed.
>
> NOTE : Don't ever post confidential data in a workbook. Forum owners and
> members are not responsible for any loss.
> ---
> You received this message because you are subscribed to the Google Groups
> "MS EXCEL AND VBA MACROS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to excel-macros+unsubscr...@googlegroups.com.
> To post to this group, send email to excel-macros@googlegroups.com.
> Visit this group at http://groups.google.com/group/excel-macros.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


$$Excel-Macros$$ Re: Macro for send mail

2014-11-22 Thread Laxmanan M
Thanks Mandeep,

I have couple of questions here.

With regards to the e-mail it sends, who will receive the email when I run 
the macro?

Will this open up an email and I populate the email address?


Laxman

On Friday, November 21, 2014 3:48:00 PM UTC+5:30, Mandeep Baluja wrote:
>
> Sub Mail_Outlook_With_Signature_Html_1()
> ' Working in Office 2000-2013
> Dim OutApp As Object
> Dim OutMail As Object
> Dim strbody As String
>  Dim cell As Range
>  
> Set OutApp = CreateObject("Outlook.Application")
> Set OutMail = OutApp.CreateItem(0)
>
> strbody = "Hello"
> 
> For Each cell In Range("AJ2:AJ300")
> On Error Resume Next
>
> With OutMail
> .Display
> .To = cell.Value
> .CC = ""
> .BCC = ""
> .Subject = "New Start" & cell.Value
>
> .Send
> End With
>
> On Error GoTo 0
> Set OutMail = Nothing
> Set OutApp = Nothing
> Next
>
> End Sub
>
> Regards,
> Mandeep Baluja 
> Excel Specialist.
> https://www.linkedin.com/profile/view?id=312532939
> https://www.facebook.com/VBAEXCELSQL?ref=hl
>
> On Thursday, November 20, 2014 10:39:07 PM UTC+5:30, Laxmanan M wrote:
>>
>> hi All,
>>
>> Please see the attached file as requested. What the outcomes I’m after 
>> are requested below.
>>
>>  
>>
>> When column AJ (Name of successful candidate) is populated & AK(source of 
>> hire is) is either populated with either External or Agency then I’d like 
>> an e-mail to be sent (unsure of the e-mail address to date, I’ll add the 
>> e-mail address in later)
>>
>>  
>>
>> The subject will contain New Start, the name of the candidate for example 
>> Joe Bloggs & their  Start Date (column AN)
>>
>>  
>>
>> The body of the e-mail doesn’t need to contain anything, if it can 
>> contain any of the above then great, if not don’t worry as the subject 
>> field will be enough.
>>
>>  
>>
>>
>> Thanks,
>>
>> laxman
>>
>

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.