Re: $$Excel-Macros$$ help on find the list matches to the cell part value

2015-12-22 Thread Ganesh N
Thanks Pankaj and others.

It works fine. Thanks a lot pankaj. Im going to apply in my base data if
any concern kindly help... Thanks

Regards,
Ganesh N


On Tue, Dec 22, 2015 at 9:37 PM, Pankaj Sharma 
wrote:

> Dear Ganesh,
>
> I hope it should be ok.
>
>
> Sub lookup_list()
> Dim wf As Object: Set wf = Application.WorksheetFunction
> Dim list As Range: Set list = Range("A1", Range("A" &
> Rows.Count).End(xlUp))
> Dim v1 As Long, v2 As Long, r As Long, a As Long, b As Long
>
>
> On Error Resume Next
> For r = 2 To Range("E" & Rows.Count).End(xlUp).Row
> v1 = Split(Split(Cells(r, 5).Value, "-")(1), "/")(0)
> v2 = Split(Split(Cells(r, 5).Value, "-")(1), "/")(1)
>
> If v1 < v2 Then
> a = wf.CountIf(list, "<=" & v2)
> b = wf.CountIf(list, ">=" & v1)
> ElseIf v1 > v2 Then
> a = wf.CountIf(list, ">=" & v2)
> b = wf.CountIf(list, "<=" & v1)
> End If
> If a > 0 And b > 0 Then Cells(r, 9).Value = "YES" _
> Else Cells(r, 9).Value = "NO"
> Next r
> On Error GoTo 0
>
> End Sub
>
>
>
>
> *Pankaj Sharma  *
>
> *MIS Analyst*
>
> *Greater Kailash-1, New Delhi*
>
> *Email   *
> *p ankaj123...@gmail.com
> **Skype**   pankaj.sharma_pj*
>
>
>
>
> On Tue, Dec 22, 2015 at 6:10 PM, Ganesh N  wrote:
>
>> Dear Team,
>>
>> Thanks, But I not get the correct answer.
>>
>> I will say again in the column A I have the list of number. In column E I
>> have some date. I want to check any one in the list (column A) is appearing
>> in column E single cell. If cell E2 have the any number in Column A then i
>> need the answer as "Yes" else "No". But all the solution which i got from
>> the team are not giving the required result. Kindly help.
>>
>> Thanks & Regards,
>> Ganesh N
>>
>> On Tue, Dec 22, 2015 at 5:58 PM, Pankaj Sharma 
>> wrote:
>>
>>> check it !
>>>
>>>
>>>
>>> *Pankaj Sharma  *
>>>
>>> *MIS Analyst*
>>>
>>> *Greater Kailash-1, New Delhi*
>>>
>>> *Email   *
>>> *p ankaj123...@gmail.com
>>> **Skype**   pankaj.sharma_pj*
>>>
>>>
>>>
>>>
>>> On Tue, Dec 22, 2015 at 5:07 PM, Ganesh N  wrote:
>>>
 Dear team,

 I want to find the any of the given list of value matches (part) in the
 particular cell using formula or macro.

 Please find the attached excel.

 If the solution in formula that would be great!!

 If you have any concern let me know.

 Thanks Team,
 Regards,
 Ganesh N

 --
 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 https://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 

RE: $$Excel-Macros$$ help on find the list matches to the cell part value

2015-12-22 Thread Mihai Ghilea
PFA.

 

METABRAS



Mihai Ghilea | Administrator retea 


T: +4(0) 268.407.410 | F: 0268.407.426 | M: 0728.994.113 


A: Strada Grivitei A44, Cod postal RO500182 


E:   mihai.ghi...@metabras.ro 


W:   3W.METABRAS.RO 

http://www.metabras.com/sigle/21-ani-otel-banner.png

P Think green!. Do you really need to print this email?




 

 

From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On 
Behalf Of Ganesh N
Sent: 22 December 2015 13:38
To: excel-macros@googlegroups.com
Subject: $$Excel-Macros$$ help on find the list matches to the cell part value

 

Dear team,

 

I want to find the any of the given list of value matches (part) in the 
particular cell using formula or macro.

 

Please find the attached excel.

 

If the solution in formula that would be great!!

 

If you have any concern let me know.

 

Thanks Team,

Regards,

Ganesh N

-- 
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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Macro required.xlsx
Description: MS-Excel 2007 spreadsheet


Re: $$Excel-Macros$$ help on find the list matches to the cell part value

2015-12-22 Thread Pankaj Sharma
check it !



*Pankaj Sharma  *

*MIS Analyst*

*Greater Kailash-1, New Delhi*

*Email   *
*p ankaj123...@gmail.com *
*Skype**   pankaj.sharma_pj*




On Tue, Dec 22, 2015 at 5:07 PM, Ganesh N  wrote:

> Dear team,
>
> I want to find the any of the given list of value matches (part) in the
> particular cell using formula or macro.
>
> Please find the attached excel.
>
> If the solution in formula that would be great!!
>
> If you have any concern let me know.
>
> Thanks Team,
> Regards,
> Ganesh N
>
> --
> 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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Macro required (solved).xlsm
Description: application/vnd.ms-excel.sheet.macroenabled.12


Re: $$Excel-Macros$$ help on find the list matches to the cell part value

2015-12-22 Thread Ganesh N
Dear Team,

Thanks, But I not get the correct answer.

I will say again in the column A I have the list of number. In column E I
have some date. I want to check any one in the list (column A) is appearing
in column E single cell. If cell E2 have the any number in Column A then i
need the answer as "Yes" else "No". But all the solution which i got from
the team are not giving the required result. Kindly help.

Thanks & Regards,
Ganesh N

On Tue, Dec 22, 2015 at 5:58 PM, Pankaj Sharma 
wrote:

> check it !
>
>
>
> *Pankaj Sharma  *
>
> *MIS Analyst*
>
> *Greater Kailash-1, New Delhi*
>
> *Email   *
> *p ankaj123...@gmail.com
> **Skype**   pankaj.sharma_pj*
>
>
>
>
> On Tue, Dec 22, 2015 at 5:07 PM, Ganesh N  wrote:
>
>> Dear team,
>>
>> I want to find the any of the given list of value matches (part) in the
>> particular cell using formula or macro.
>>
>> Please find the attached excel.
>>
>> If the solution in formula that would be great!!
>>
>> If you have any concern let me know.
>>
>> Thanks Team,
>> Regards,
>> Ganesh N
>>
>> --
>> 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 https://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 https://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 https://groups.google.com/group/excel-macros.
For more options, visit 

$$Excel-Macros$$ help on find the list matches to the cell part value

2015-12-22 Thread Ganesh N
Dear team,

I want to find the any of the given list of value matches (part) in the
particular cell using formula or macro.

Please find the attached excel.

If the solution in formula that would be great!!

If you have any concern let me know.

Thanks Team,
Regards,
Ganesh N

-- 
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 https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Macro required.xlsx
Description: MS-Excel 2007 spreadsheet


Re: $$Excel-Macros$$ help on find the list matches to the cell part value

2015-12-22 Thread Pankaj Sharma
Dear Ganesh,

I hope it should be ok.


Sub lookup_list()
Dim wf As Object: Set wf = Application.WorksheetFunction
Dim list As Range: Set list = Range("A1", Range("A" &
Rows.Count).End(xlUp))
Dim v1 As Long, v2 As Long, r As Long, a As Long, b As Long


On Error Resume Next
For r = 2 To Range("E" & Rows.Count).End(xlUp).Row
v1 = Split(Split(Cells(r, 5).Value, "-")(1), "/")(0)
v2 = Split(Split(Cells(r, 5).Value, "-")(1), "/")(1)

If v1 < v2 Then
a = wf.CountIf(list, "<=" & v2)
b = wf.CountIf(list, ">=" & v1)
ElseIf v1 > v2 Then
a = wf.CountIf(list, ">=" & v2)
b = wf.CountIf(list, "<=" & v1)
End If
If a > 0 And b > 0 Then Cells(r, 9).Value = "YES" _
Else Cells(r, 9).Value = "NO"
Next r
On Error GoTo 0

End Sub




*Pankaj Sharma  *

*MIS Analyst*

*Greater Kailash-1, New Delhi*

*Email   *
*p ankaj123...@gmail.com *
*Skype**   pankaj.sharma_pj*




On Tue, Dec 22, 2015 at 6:10 PM, Ganesh N  wrote:

> Dear Team,
>
> Thanks, But I not get the correct answer.
>
> I will say again in the column A I have the list of number. In column E I
> have some date. I want to check any one in the list (column A) is appearing
> in column E single cell. If cell E2 have the any number in Column A then i
> need the answer as "Yes" else "No". But all the solution which i got from
> the team are not giving the required result. Kindly help.
>
> Thanks & Regards,
> Ganesh N
>
> On Tue, Dec 22, 2015 at 5:58 PM, Pankaj Sharma 
> wrote:
>
>> check it !
>>
>>
>>
>> *Pankaj Sharma  *
>>
>> *MIS Analyst*
>>
>> *Greater Kailash-1, New Delhi*
>>
>> *Email   *
>> *p ankaj123...@gmail.com
>> **Skype**   pankaj.sharma_pj*
>>
>>
>>
>>
>> On Tue, Dec 22, 2015 at 5:07 PM, Ganesh N  wrote:
>>
>>> Dear team,
>>>
>>> I want to find the any of the given list of value matches (part) in the
>>> particular cell using formula or macro.
>>>
>>> Please find the attached excel.
>>>
>>> If the solution in formula that would be great!!
>>>
>>> If you have any concern let me know.
>>>
>>> Thanks Team,
>>> Regards,
>>> Ganesh N
>>>
>>> --
>>> 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 https://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 https://groups.google.com/group/excel-macros.
>> For