Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Match of cell values

Simple question, just can't figure it out.

Cell A1 = 3,4,7

Cell B1 = 4

If the value of B1 is contained in A1 perform a task



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Match of cell values

Use InSrt()

Sub liminal()
a = Range("A1").Value
b = Range("B1").Value
If InStr(a, b) Then
MsgBox ("DO SOMETHING")
End If
End Sub
--
Gary's Student


"Doug VanDerMark" wrote:

Simple question, just can't figure it out.

Cell A1 = 3,4,7

Cell B1 = 4

If the value of B1 is contained in A1 perform a task




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Match of cell values

Thank you sir.

"Gary''s Student" wrote in message
...
Use InSrt()

Sub liminal()
a = Range("A1").Value
b = Range("B1").Value
If InStr(a, b) Then
MsgBox ("DO SOMETHING")
End If
End Sub
--
Gary's Student


"Doug VanDerMark" wrote:

Simple question, just can't figure it out.

Cell A1 = 3,4,7

Cell B1 = 4

If the value of B1 is contained in A1 perform a task






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Match (1 of 3 cell values) in a range? RyanR Excel Worksheet Functions 3 December 22nd 09 05:16 AM
Tab Names to Match Cell Values when Changed Johnny Excel Discussion (Misc queries) 8 August 20th 09 09:19 PM
Conditional Formatting to match cell values Mick B Excel Worksheet Functions 3 April 2nd 08 05:04 PM
how to match/compare cell values tandavina Excel Programming 1 January 11th 06 04:51 AM


All times are GMT +1. The time now is 09:14 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"