Re: $$Excel-Macros$$ Macro for IF AND condition

2014-04-02 Thread Renata Torquato
Olá Basole, obrigada pela resposta. 

Ainda não é isso Rs* Acontece que a célula somente deve mudar para o status 
DELAYED caso ela possua o status ON TRACK *E SE *a data do deadline for 
menor que a data atual (Se for igual o status deve continuar ON TRACK). 
Caso eu manualmente mude o status para COMPLETED ou CANCELLED, ainda que a 
data de deadline seja menor que a data atual, a célula deve permanecer com 
esses status sem mudar para DELAYED... O racional é que mesmo em atraso uma 
determinada pessoa pode completar uma determinada tarefa e desta forma ela 
estará completa ainda que tenha ficado atrasada em determinado período. 
Esse é um Dashboard de tarefas, estas que podem ser completas ou canceladas 
por alguma razão e por isso eu preciso ter a flexibilidade nas células de 
colocar o status COMPLETED ou CANCELLED quando aplicável, alterando-se 
somente de ON TRACK para DELAYED caso o deadline já tenha sido 
ultrapassado. 

Não sei se ficou muito claro!

Obrigada. 

Em terça-feira, 1 de abril de 2014 14h39min06s UTC-3, Basole escreveu:

 Olá Renata Torquato boa tarde, 

 Veja no anexo que é isso que voce está querendo. 
 Eu só fiz para duas condiçoes se for menor ou se for maior a data. No caso 
 de a data for igual, qual seria o status? 

 Saudaçoes. 


 Basole.

   


 2014-04-01 10:19 GMT-03:00 Renata Torquato renataa...@gmail.comjavascript:
 :

 Thanks. 
  
 Please find attached the file (Sorry but it's not in english). 
  
 SHEET ACTION PLANS: You will find the column P where I have all the 
 deadlines and column R with the status (Completed, On Track, Cancelled and 
 Delayed). I would like the ON TRACK status to automatically turn to DELAYED 
 if the deadline (Column P)  is  than the current date (CELL K2 - SHEET 
 DATA). 
  
 Column R is under data validation and all the status are manually 
 established because we need to change to COMPLETED if the action has been 
 implemented. 
  
 Thanks. 
  

 Em domingo, 30 de março de 2014 14h21min17s UTC-3, ashish escreveu:

 can u share a sample file?


 On Sun, Mar 30, 2014 at 9:44 PM, Renata Torquato 
 renataa...@gmail.comwrote:

 Thanks. 

 That's exactly what I tried before but it doesn't work ... =/

 Em domingo, 30 de março de 2014 12h29min52s UTC-3, ashish escreveu: 

 Sub test()

 With Sheets(Sheet1)
 If .Range(a2).Value  VBA.Date And UCase(.Range(a1).Value) 
 = UCase(ON TRACK ) Then
 .Range(a1).Value = DELAYED
 End If
 End With


 End Sub


 On Sun, Mar 30, 2014 at 8:32 PM, Renata Torquato renataa...@gmail.com
  wrote:

 I have the following situation: 

 I would like the range (A1) to change to the status DELAYED if this 
 range shows the status ON TRACK and if the deadline date on range A2 has 
 passed the current date (Formula TODAY in another sheet). If the 
 condition 
 is false I would like range A1 to keep its status (DELAYED, ON TRACK, 
 COMPLETED or ON TRACK), which means that nothing will change with the 
 Macro. 

 I have tried the code however it is not working. I was wondering if 
 maybe it's due to the fact that all the conditions on range A1 are under 
 data validation list?

 Which code should I try? 

 Thanks. 

 -- 
 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...@googlegroups.com.
 To post to this group, send email to excel-...@googlegroups.com.
 Visit this group at http://groups.google.com/group/excel-macros.
 For more options, visit https://groups.google.com/d/optout.




 -- 
  *Regards*
  
 *Ashish Koul*


  *Visit*
 http://www.excelvbamacros.in
 Like Us on 
 Facebookhttp://www.facebook.com/pages/Excel-VBA-Codes-Macros/15180389897
 Join Us on Facebook http://www.facebook.com/groups/163491717053198/


 P Before printing, think about the environment.
  
  

 -- 
 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 

Re: $$Excel-Macros$$ Macro for IF AND condition

2014-04-02 Thread Renata Torquato
Olá, boa tarde. 

Muito obrigada. Vou testar no arquivo original para ver como roda.

Muito obrigada. 

Att.

Em quarta-feira, 2 de abril de 2014 15h19min18s UTC-3, Basole escreveu:

 Olá Renata boa tarde,


 Veja agora no anexo, se entendi o que voce quer. 


 Saudações, 


 Basole.
   




 2014-04-02 9:42 GMT-03:00 Renata Torquato renataa...@gmail.comjavascript:
 :

 Olá Basole, obrigada pela resposta. 

 Ainda não é isso Rs* Acontece que a célula somente deve mudar para o 
 status DELAYED caso ela possua o status ON TRACK *E SE *a data do 
 deadline for menor que a data atual (Se for igual o status deve continuar 
 ON TRACK). Caso eu manualmente mude o status para COMPLETED ou CANCELLED, 
 ainda que a data de deadline seja menor que a data atual, a célula deve 
 permanecer com esses status sem mudar para DELAYED... O racional é que 
 mesmo em atraso uma determinada pessoa pode completar uma determinada 
 tarefa e desta forma ela estará completa ainda que tenha ficado atrasada em 
 determinado período. Esse é um Dashboard de tarefas, estas que podem ser 
 completas ou canceladas por alguma razão e por isso eu preciso ter a 
 flexibilidade nas células de colocar o status COMPLETED ou CANCELLED quando 
 aplicável, alterando-se somente de ON TRACK para DELAYED caso o deadline já 
 tenha sido ultrapassado. 

 Não sei se ficou muito claro!

 Obrigada. 

 Em terça-feira, 1 de abril de 2014 14h39min06s UTC-3, Basole escreveu:

 Olá Renata Torquato boa tarde, 

 Veja no anexo que é isso que voce está querendo. 
 Eu só fiz para duas condiçoes se for menor ou se for maior a data. No 
 caso de a data for igual, qual seria o status? 

 Saudaçoes. 


 Basole.

   


 2014-04-01 10:19 GMT-03:00 Renata Torquato renataa...@gmail.com:

 Thanks. 
  
 Please find attached the file (Sorry but it's not in english). 
  
 SHEET ACTION PLANS: You will find the column P where I have all the 
 deadlines and column R with the status (Completed, On Track, Cancelled and 
 Delayed). I would like the ON TRACK status to automatically turn to 
 DELAYED 
 if the deadline (Column P)  is  than the current date (CELL K2 - SHEET 
 DATA). 
  
 Column R is under data validation and all the status are manually 
 established because we need to change to COMPLETED if the action has been 
 implemented. 
  
 Thanks. 
  

 Em domingo, 30 de março de 2014 14h21min17s UTC-3, ashish escreveu:

 can u share a sample file?


 On Sun, Mar 30, 2014 at 9:44 PM, Renata Torquato renataa...@gmail.com
  wrote:

 Thanks. 

 That's exactly what I tried before but it doesn't work ... =/

 Em domingo, 30 de março de 2014 12h29min52s UTC-3, ashish escreveu: 

 Sub test()

 With Sheets(Sheet1)
 If .Range(a2).Value  VBA.Date And 
 UCase(.Range(a1).Value) = UCase(ON TRACK ) Then
 .Range(a1).Value = DELAYED
 End If
 End With


 End Sub


 On Sun, Mar 30, 2014 at 8:32 PM, Renata Torquato 
 renataa...@gmail.com wrote:

 I have the following situation: 

 I would like the range (A1) to change to the status DELAYED if this 
 range shows the status ON TRACK and if the deadline date on range A2 
 has 
 passed the current date (Formula TODAY in another sheet). If the 
 condition 
 is false I would like range A1 to keep its status (DELAYED, ON TRACK, 
 COMPLETED or ON TRACK), which means that nothing will change with the 
 Macro. 

 I have tried the code however it is not working. I was wondering if 
 maybe it's due to the fact that all the conditions on range A1 are 
 under 
 data validation list?

 Which code should I try? 

 Thanks. 

 -- 
 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...@googlegroups.com.
 To post to this group, send email to excel-...@googlegroups.com.
 Visit this group at http://groups.google.com/group/excel-macros.
 For more options, visit https://groups.google.com/d/optout.




 -- 
  *Regards*
  
 *Ashish Koul*


  *Visit*
 http://www.excelvbamacros.in
 Like Us on 
 Facebookhttp://www.facebook.com/pages/Excel-VBA-Codes-Macros/15180389897
 

Re: $$Excel-Macros$$ Macro for IF AND condition

2014-03-30 Thread Renata Torquato
Thanks.

That's exactly what I tried before but it doesn't work ... =/

Em domingo, 30 de março de 2014 12h29min52s UTC-3, ashish escreveu:

 Sub test()

 With Sheets(Sheet1)
 If .Range(a2).Value  VBA.Date And UCase(.Range(a1).Value) = 
 UCase(ON TRACK ) Then
 .Range(a1).Value = DELAYED
 End If
 End With


 End Sub


 On Sun, Mar 30, 2014 at 8:32 PM, Renata Torquato 
 renataa...@gmail.comjavascript:
  wrote:

 I have the following situation:

 I would like the range (A1) to change to the status DELAYED if this range 
 shows the status ON TRACK and if the deadline date on range A2 has passed 
 the current date (Formula TODAY in another sheet). If the condition is 
 false I would like range A1 to keep its status (DELAYED, ON TRACK, 
 COMPLETED or ON TRACK), which means that nothing will change with the 
 Macro. 

 I have tried the code however it is not working. I was wondering if maybe 
 it's due to the fact that all the conditions on range A1 are under data 
 validation list?

 Which code should I try? 

 Thanks. 

 -- 
 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...@googlegroups.com javascript:.
 To post to this group, send email to excel-...@googlegroups.comjavascript:
 .
 Visit this group at http://groups.google.com/group/excel-macros.
 For more options, visit https://groups.google.com/d/optout.




 -- 
 *Regards*
  
 *Ashish Koul*


 *Visit*
 http://www.excelvbamacros.in
 Like Us on 
 Facebookhttp://www.facebook.com/pages/Excel-VBA-Codes-Macros/15180389897
 Join Us on Facebook http://www.facebook.com/groups/163491717053198/


 P Before printing, think about the environment.

  
  

-- 
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$$ Macro for IF AND condition

2014-03-30 Thread ashish koul
can u share a sample file?


On Sun, Mar 30, 2014 at 9:44 PM, Renata Torquato
renataatorqu...@gmail.comwrote:

 Thanks.

 That's exactly what I tried before but it doesn't work ... =/

 Em domingo, 30 de março de 2014 12h29min52s UTC-3, ashish escreveu:

 Sub test()

 With Sheets(Sheet1)
 If .Range(a2).Value  VBA.Date And UCase(.Range(a1).Value) =
 UCase(ON TRACK ) Then
 .Range(a1).Value = DELAYED
 End If
 End With


 End Sub


 On Sun, Mar 30, 2014 at 8:32 PM, Renata Torquato renataa...@gmail.comwrote:

 I have the following situation:

 I would like the range (A1) to change to the status DELAYED if this
 range shows the status ON TRACK and if the deadline date on range A2 has
 passed the current date (Formula TODAY in another sheet). If the condition
 is false I would like range A1 to keep its status (DELAYED, ON TRACK,
 COMPLETED or ON TRACK), which means that nothing will change with the
 Macro.

 I have tried the code however it is not working. I was wondering if
 maybe it's due to the fact that all the conditions on range A1 are under
 data validation list?

 Which code should I try?

 Thanks.

 --
 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...@googlegroups.com.
 To post to this group, send email to excel-...@googlegroups.com.
 Visit this group at http://groups.google.com/group/excel-macros.
 For more options, visit https://groups.google.com/d/optout.




 --
 *Regards*

 *Ashish Koul*


 *Visit*
 http://www.excelvbamacros.in
 Like Us on 
 Facebookhttp://www.facebook.com/pages/Excel-VBA-Codes-Macros/15180389897
 Join Us on Facebook http://www.facebook.com/groups/163491717053198/


 P Before printing, think about the environment.



  --
 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.




-- 
*Regards*

*Ashish Koul*


*Visit*
http://www.excelvbamacros.in
Like Us on 
Facebookhttp://www.facebook.com/pages/Excel-VBA-Codes-Macros/15180389897
Join Us on Facebook http://www.facebook.com/groups/163491717053198/


P Before printing, think about the environment.

-- 
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