PC Review


Reply
Thread Tools Rate Thread

How to change cell value if cell contain specified word

 
 
Hassan
Guest
Posts: n/a
 
      30th Jun 2008
Dear All,

I am looking for a formula that will change all the cells value if that
contains the specified word. e.g.

GPS Ignition off
Unlock Ignition off
Health check Ignition off
GPS Unlock Ignition off

if a cell contains Ignition off then cell value should change with Ignition
off and remove the other status with Ignition off.

Thanks
 
Reply With Quote
 
 
 
 
Stefi
Guest
Posts: n/a
 
      30th Jun 2008
You can't change a cell value by a formula. Yu can use a helper column with a
formula in it returning the required result:
=TRIM(SUBSTITUTE(A1,"Ignition off",""))

Regards,
Stefi


„Hassan” ezt *rta:

> Dear All,
>
> I am looking for a formula that will change all the cells value if that
> contains the specified word. e.g.
>
> GPS Ignition off
> Unlock Ignition off
> Health check Ignition off
> GPS Unlock Ignition off
>
> if a cell contains Ignition off then cell value should change with Ignition
> off and remove the other status with Ignition off.
>
> Thanks

 
Reply With Quote
 
Hassan
Guest
Posts: n/a
 
      24th Jul 2008
Dear Stefi,

Thanks for reply, following formula only remove Ignition off and other word
is still there, I want remove other word with Ignition off

Thanks

"Stefi" wrote:

> You can't change a cell value by a formula. Yu can use a helper column with a
> formula in it returning the required result:
> =TRIM(SUBSTITUTE(A1,"Ignition off",""))
>
> Regards,
> Stefi
>
>
> „Hassan” ezt *rta:
>
> > Dear All,
> >
> > I am looking for a formula that will change all the cells value if that
> > contains the specified word. e.g.
> >
> > GPS Ignition off
> > Unlock Ignition off
> > Health check Ignition off
> > GPS Unlock Ignition off
> >
> > if a cell contains Ignition off then cell value should change with Ignition
> > off and remove the other status with Ignition off.
> >
> > Thanks

 
Reply With Quote
 
Stefi
Guest
Posts: n/a
 
      24th Jul 2008
Do you mean that cells containing Ignition off should change to mere Ignition
off and all other words should be removed?
E.g.
Old content new content
GPS Ignition off Ignition off
Unlock Ignition off Ignition off
Health check Ignition off Ignition off
GPS Unlock Ignition off Ignition off

Stefi


„Hassan” ezt *rta:

> Dear Stefi,
>
> Thanks for reply, following formula only remove Ignition off and other word
> is still there, I want remove other word with Ignition off
>
> Thanks
>
> "Stefi" wrote:
>
> > You can't change a cell value by a formula. Yu can use a helper column with a
> > formula in it returning the required result:
> > =TRIM(SUBSTITUTE(A1,"Ignition off",""))
> >
> > Regards,
> > Stefi
> >
> >
> > „Hassan” ezt *rta:
> >
> > > Dear All,
> > >
> > > I am looking for a formula that will change all the cells value if that
> > > contains the specified word. e.g.
> > >
> > > GPS Ignition off
> > > Unlock Ignition off
> > > Health check Ignition off
> > > GPS Unlock Ignition off
> > >
> > > if a cell contains Ignition off then cell value should change with Ignition
> > > off and remove the other status with Ignition off.
> > >
> > > Thanks

 
Reply With Quote
 
Hassan
Guest
Posts: n/a
 
      27th Jul 2008
Yes Stefi, Exactly same.

"Stefi" wrote:

> Do you mean that cells containing Ignition off should change to mere Ignition
> off and all other words should be removed?
> E.g.
> Old content new content
> GPS Ignition off Ignition off
> Unlock Ignition off Ignition off
> Health check Ignition off Ignition off
> GPS Unlock Ignition off Ignition off
>
> Stefi
>
>
> „Hassan” ezt *rta:
>
> > Dear Stefi,
> >
> > Thanks for reply, following formula only remove Ignition off and other word
> > is still there, I want remove other word with Ignition off
> >
> > Thanks
> >
> > "Stefi" wrote:
> >
> > > You can't change a cell value by a formula. Yu can use a helper column with a
> > > formula in it returning the required result:
> > > =TRIM(SUBSTITUTE(A1,"Ignition off",""))
> > >
> > > Regards,
> > > Stefi
> > >
> > >
> > > „Hassan” ezt *rta:
> > >
> > > > Dear All,
> > > >
> > > > I am looking for a formula that will change all the cells value if that
> > > > contains the specified word. e.g.
> > > >
> > > > GPS Ignition off
> > > > Unlock Ignition off
> > > > Health check Ignition off
> > > > GPS Unlock Ignition off
> > > >
> > > > if a cell contains Ignition off then cell value should change with Ignition
> > > > off and remove the other status with Ignition off.
> > > >
> > > > Thanks

 
Reply With Quote
 
Ragdyer
Guest
Posts: n/a
 
      27th Jul 2008
Does this work for you:

=IF(COUNTIF(A1,"*ignition off")>0,"Ignition off",A1)
?
Copy down as needed.
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Hassan" <(E-Mail Removed)> wrote in message
news2222EF1-7169-4F4D-8F4D-(E-Mail Removed)...
> Yes Stefi, Exactly same.
>
> "Stefi" wrote:
>
> > Do you mean that cells containing Ignition off should change to mere

Ignition
> > off and all other words should be removed?
> > E.g.
> > Old content new content
> > GPS Ignition off Ignition off
> > Unlock Ignition off Ignition off
> > Health check Ignition off Ignition off
> > GPS Unlock Ignition off Ignition off
> >
> > Stefi
> >
> >
> > „Hassan” ezt *rta:
> >
> > > Dear Stefi,
> > >
> > > Thanks for reply, following formula only remove Ignition off and other

word
> > > is still there, I want remove other word with Ignition off
> > >
> > > Thanks
> > >
> > > "Stefi" wrote:
> > >
> > > > You can't change a cell value by a formula. Yu can use a helper

column with a
> > > > formula in it returning the required result:
> > > > =TRIM(SUBSTITUTE(A1,"Ignition off",""))
> > > >
> > > > Regards,
> > > > Stefi
> > > >
> > > >
> > > > „Hassan” ezt *rta:
> > > >
> > > > > Dear All,
> > > > >
> > > > > I am looking for a formula that will change all the cells value if

that
> > > > > contains the specified word. e.g.
> > > > >
> > > > > GPS Ignition off
> > > > > Unlock Ignition off
> > > > > Health check Ignition off
> > > > > GPS Unlock Ignition off
> > > > >
> > > > > if a cell contains Ignition off then cell value should change with

Ignition
> > > > > off and remove the other status with Ignition off.
> > > > >
> > > > > Thanks


 
Reply With Quote
 
Hassan
Guest
Posts: n/a
 
      27th Jul 2008
Thanks for reply Ragdyer, but following is not working.

"Ragdyer" wrote:

> Does this work for you:
>
> =IF(COUNTIF(A1,"*ignition off")>0,"Ignition off",A1)
> ?
> Copy down as needed.
> --
> HTH,
>
> RD
>
> ---------------------------------------------------------------------------
> Please keep all correspondence within the NewsGroup, so all may benefit !
> ---------------------------------------------------------------------------
> "Hassan" <(E-Mail Removed)> wrote in message
> news2222EF1-7169-4F4D-8F4D-(E-Mail Removed)...
> > Yes Stefi, Exactly same.
> >
> > "Stefi" wrote:
> >
> > > Do you mean that cells containing Ignition off should change to mere

> Ignition
> > > off and all other words should be removed?
> > > E.g.
> > > Old content new content
> > > GPS Ignition off Ignition off
> > > Unlock Ignition off Ignition off
> > > Health check Ignition off Ignition off
> > > GPS Unlock Ignition off Ignition off
> > >
> > > Stefi
> > >
> > >
> > > „Hassan” ezt *rta:
> > >
> > > > Dear Stefi,
> > > >
> > > > Thanks for reply, following formula only remove Ignition off and other

> word
> > > > is still there, I want remove other word with Ignition off
> > > >
> > > > Thanks
> > > >
> > > > "Stefi" wrote:
> > > >
> > > > > You can't change a cell value by a formula. Yu can use a helper

> column with a
> > > > > formula in it returning the required result:
> > > > > =TRIM(SUBSTITUTE(A1,"Ignition off",""))
> > > > >
> > > > > Regards,
> > > > > Stefi
> > > > >
> > > > >
> > > > > „Hassan” ezt *rta:
> > > > >
> > > > > > Dear All,
> > > > > >
> > > > > > I am looking for a formula that will change all the cells value if

> that
> > > > > > contains the specified word. e.g.
> > > > > >
> > > > > > GPS Ignition off
> > > > > > Unlock Ignition off
> > > > > > Health check Ignition off
> > > > > > GPS Unlock Ignition off
> > > > > >
> > > > > > if a cell contains Ignition off then cell value should change with

> Ignition
> > > > > > off and remove the other status with Ignition off.
> > > > > >
> > > > > > Thanks

>
>

 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      27th Jul 2008
Hassan

I note some inconsistency with your requirements.

Your example shows you want result to be ignition off

You then told Stefi you want just ignition

Whatever the case, RD's formula will work on your example data but you may
want to alter it slightly for the second case.

=IF(COUNTIF(A1,"*ignition off")>0,"ignition",A1)


Gord Dibben MS Excel MVP


On Sun, 27 Jul 2008 01:08:01 -0700, Hassan
<(E-Mail Removed)> wrote:

>Thanks for reply Ragdyer, but following is not working.
>
>"Ragdyer" wrote:
>
>> Does this work for you:
>>
>> =IF(COUNTIF(A1,"*ignition off")>0,"Ignition off",A1)
>> ?
>> Copy down as needed.
>> --
>> HTH,
>>
>> RD
>>
>> ---------------------------------------------------------------------------
>> Please keep all correspondence within the NewsGroup, so all may benefit !
>> ---------------------------------------------------------------------------
>> "Hassan" <(E-Mail Removed)> wrote in message
>> news2222EF1-7169-4F4D-8F4D-(E-Mail Removed)...
>> > Yes Stefi, Exactly same.
>> >
>> > "Stefi" wrote:
>> >
>> > > Do you mean that cells containing Ignition off should change to mere

>> Ignition
>> > > off and all other words should be removed?
>> > > E.g.
>> > > Old content new content
>> > > GPS Ignition off Ignition off
>> > > Unlock Ignition off Ignition off
>> > > Health check Ignition off Ignition off
>> > > GPS Unlock Ignition off Ignition off
>> > >
>> > > Stefi
>> > >
>> > >
>> > > Hassan ezt rta:
>> > >
>> > > > Dear Stefi,
>> > > >
>> > > > Thanks for reply, following formula only remove Ignition off and other

>> word
>> > > > is still there, I want remove other word with Ignition off
>> > > >
>> > > > Thanks
>> > > >
>> > > > "Stefi" wrote:
>> > > >
>> > > > > You can't change a cell value by a formula. Yu can use a helper

>> column with a
>> > > > > formula in it returning the required result:
>> > > > > =TRIM(SUBSTITUTE(A1,"Ignition off",""))
>> > > > >
>> > > > > Regards,
>> > > > > Stefi
>> > > > >
>> > > > >
>> > > > > Hassan ezt rta:
>> > > > >
>> > > > > > Dear All,
>> > > > > >
>> > > > > > I am looking for a formula that will change all the cells value if

>> that
>> > > > > > contains the specified word. e.g.
>> > > > > >
>> > > > > > GPS Ignition off
>> > > > > > Unlock Ignition off
>> > > > > > Health check Ignition off
>> > > > > > GPS Unlock Ignition off
>> > > > > >
>> > > > > > if a cell contains Ignition off then cell value should change with

>> Ignition
>> > > > > > off and remove the other status with Ignition off.
>> > > > > >
>> > > > > > Thanks

>>
>>


 
Reply With Quote
 
Ragdyer
Guest
Posts: n/a
 
      27th Jul 2008
To save everyone the necessity of continued *guessing* at exactly what
you're looking for, would you at least extend us all the courtesy of
informing us as to what didn't work?

What did you get that you didn't want,
OR
what didn't you get that you wanted!
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Hassan" <(E-Mail Removed)> wrote in message
news:3FE21514-857A-411F-84D4-(E-Mail Removed)...
> Thanks for reply Ragdyer, but following is not working.
>
> "Ragdyer" wrote:
>
> > Does this work for you:
> >
> > =IF(COUNTIF(A1,"*ignition off")>0,"Ignition off",A1)
> > ?
> > Copy down as needed.
> > --
> > HTH,
> >
> > RD
> >

>
> --------------------------------------------------------------------------

-
> > Please keep all correspondence within the NewsGroup, so all may benefit

!
>
> --------------------------------------------------------------------------

-
> > "Hassan" <(E-Mail Removed)> wrote in message
> > news2222EF1-7169-4F4D-8F4D-(E-Mail Removed)...
> > > Yes Stefi, Exactly same.
> > >
> > > "Stefi" wrote:
> > >
> > > > Do you mean that cells containing Ignition off should change to mere

> > Ignition
> > > > off and all other words should be removed?
> > > > E.g.
> > > > Old content new content
> > > > GPS Ignition off Ignition off
> > > > Unlock Ignition off Ignition off
> > > > Health check Ignition off Ignition off
> > > > GPS Unlock Ignition off Ignition off
> > > >
> > > > Stefi
> > > >
> > > >
> > > > „Hassan” ezt *rta:
> > > >
> > > > > Dear Stefi,
> > > > >
> > > > > Thanks for reply, following formula only remove Ignition off and

other
> > word
> > > > > is still there, I want remove other word with Ignition off
> > > > >
> > > > > Thanks
> > > > >
> > > > > "Stefi" wrote:
> > > > >
> > > > > > You can't change a cell value by a formula. Yu can use a helper

> > column with a
> > > > > > formula in it returning the required result:
> > > > > > =TRIM(SUBSTITUTE(A1,"Ignition off",""))
> > > > > >
> > > > > > Regards,
> > > > > > Stefi
> > > > > >
> > > > > >
> > > > > > „Hassan” ezt *rta:
> > > > > >
> > > > > > > Dear All,
> > > > > > >
> > > > > > > I am looking for a formula that will change all the cells

value if
> > that
> > > > > > > contains the specified word. e.g.
> > > > > > >
> > > > > > > GPS Ignition off
> > > > > > > Unlock Ignition off
> > > > > > > Health check Ignition off
> > > > > > > GPS Unlock Ignition off
> > > > > > >
> > > > > > > if a cell contains Ignition off then cell value should change

with
> > Ignition
> > > > > > > off and remove the other status with Ignition off.
> > > > > > >
> > > > > > > Thanks

> >
> >


 
Reply With Quote
 
TFMR
Guest
Posts: n/a
 
      4th Aug 2008
Thanks Ragdyer,

Can I use two statuses instead of one, e.g. Ignition off and Startup as well.

Thanks

Hassan

"Ragdyer" wrote:

> To save everyone the necessity of continued *guessing* at exactly what
> you're looking for, would you at least extend us all the courtesy of
> informing us as to what didn't work?
>
> What did you get that you didn't want,
> OR
> what didn't you get that you wanted!
> --
> Regards,
>
> RD
>
> ---------------------------------------------------------------------------
> Please keep all correspondence within the NewsGroup, so all may benefit !
> ---------------------------------------------------------------------------
> "Hassan" <(E-Mail Removed)> wrote in message
> news:3FE21514-857A-411F-84D4-(E-Mail Removed)...
> > Thanks for reply Ragdyer, but following is not working.
> >
> > "Ragdyer" wrote:
> >
> > > Does this work for you:
> > >
> > > =IF(COUNTIF(A1,"*ignition off")>0,"Ignition off",A1)
> > > ?
> > > Copy down as needed.
> > > --
> > > HTH,
> > >
> > > RD
> > >

> >
> > --------------------------------------------------------------------------

> -
> > > Please keep all correspondence within the NewsGroup, so all may benefit

> !
> >
> > --------------------------------------------------------------------------

> -
> > > "Hassan" <(E-Mail Removed)> wrote in message
> > > news2222EF1-7169-4F4D-8F4D-(E-Mail Removed)...
> > > > Yes Stefi, Exactly same.
> > > >
> > > > "Stefi" wrote:
> > > >
> > > > > Do you mean that cells containing Ignition off should change to mere
> > > Ignition
> > > > > off and all other words should be removed?
> > > > > E.g.
> > > > > Old content new content
> > > > > GPS Ignition off Ignition off
> > > > > Unlock Ignition off Ignition off
> > > > > Health check Ignition off Ignition off
> > > > > GPS Unlock Ignition off Ignition off
> > > > >
> > > > > Stefi
> > > > >
> > > > >
> > > > > „Hassan” ezt *rta:
> > > > >
> > > > > > Dear Stefi,
> > > > > >
> > > > > > Thanks for reply, following formula only remove Ignition off and

> other
> > > word
> > > > > > is still there, I want remove other word with Ignition off
> > > > > >
> > > > > > Thanks
> > > > > >
> > > > > > "Stefi" wrote:
> > > > > >
> > > > > > > You can't change a cell value by a formula. Yu can use a helper
> > > column with a
> > > > > > > formula in it returning the required result:
> > > > > > > =TRIM(SUBSTITUTE(A1,"Ignition off",""))
> > > > > > >
> > > > > > > Regards,
> > > > > > > Stefi
> > > > > > >
> > > > > > >
> > > > > > > „Hassan” ezt *rta:
> > > > > > >
> > > > > > > > Dear All,
> > > > > > > >
> > > > > > > > I am looking for a formula that will change all the cells

> value if
> > > that
> > > > > > > > contains the specified word. e.g.
> > > > > > > >
> > > > > > > > GPS Ignition off
> > > > > > > > Unlock Ignition off
> > > > > > > > Health check Ignition off
> > > > > > > > GPS Unlock Ignition off
> > > > > > > >
> > > > > > > > if a cell contains Ignition off then cell value should change

> with
> > > Ignition
> > > > > > > > off and remove the other status with Ignition off.
> > > > > > > >
> > > > > > > > Thanks
> > >
> > >

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
make cell equal a word if a data validation cell has a word in it Robzz Microsoft Excel Misc 1 6th Feb 2009 06:20 PM
Need Help, DataGrid, Cell color change on cell data change =?Utf-8?B?QnJpYW5ESA==?= Microsoft C# .NET 0 13th Jun 2007 03:45 PM
Change in DataGrid Cell (combobox) should cause change in another cell (TextBox) joinzulfi@gmail.com Microsoft VB .NET 0 5th Apr 2007 08:00 AM
find word in a cell then change cell format motopoyo@spymac.com Microsoft Excel Programming 2 23rd May 2005 01:21 PM
Need a cell to change colour based upon a word in another cell =?Utf-8?B?Y29va2ll?= Microsoft Excel Misc 4 11th Nov 2004 05:50 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:36 PM.