#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Begins with

Try this:

If ActiveCell.Value Like "C1*" Then ActiveCell.Offset(0, -1) =
ActiveCell.Value & "Primary"


StephanieH wrote:
Can anyone tell me how to correct his line?
If ActiveCell.Value = "C1*" Then ActiveCell.Offset(0, -1) = "Primary"

I'm basically trying to evaluate if the value in the cell begins with C1
then write the word "Primary" in the cell next to it.

When I hover over ActiveCell.Value, it give me C1ARM so I know it's seeing
it correctly, I guess just not recognizing the C1* part?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Begins with

Oops. I meant
If ActiveCell.Value Like "C1*" Then ActiveCell.Value =
ActiveCell.Value & "Primary"


wrote:
Try this:

If ActiveCell.Value Like "C1*" Then ActiveCell.Offset(0, -1) =
ActiveCell.Value & "Primary"


StephanieH wrote:
Can anyone tell me how to correct his line?
If ActiveCell.Value = "C1*" Then ActiveCell.Offset(0, -1) = "Primary"

I'm basically trying to evaluate if the value in the cell begins with C1
then write the word "Primary" in the cell next to it.

When I hover over ActiveCell.Value, it give me C1ARM so I know it's seeing
it correctly, I guess just not recognizing the C1* part?


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
Max if variable begins with JICDB Excel Worksheet Functions 3 August 7th 09 03:00 PM
Sumif and begins with nich Excel Discussion (Misc queries) 6 July 22nd 09 12:11 PM
If statement - begins with grantr Excel Discussion (Misc queries) 6 October 31st 08 06:35 PM
IF Function - Begins With Cecil Excel Discussion (Misc queries) 3 November 23rd 05 03:57 PM
How do I type in a number that begins with zero? Blindie00 Excel Discussion (Misc queries) 3 December 19th 04 10:05 AM


All times are GMT +1. The time now is 07:57 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"