Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 465
Default Selective cell changes

HI

In column Y I have a row of numbers.

I need to change them so that the cells which are 0 stay the same , and
cells with numbers greater than 0 in them are replaced with the word
'Active' .

Can someone help with this?

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Selective cell changes

One way - use an adjacent helper col

Assuming numbers running in Y2 down
Put in Z2: =IF(Y20,"active",Y2)
Copy down. Kill the formulas in col Z with an "in-place" copypaste special
as values. Delete col Y.

If you want any blank cells in col Y to return as "blanks", ie:""
then use instead in Z2:
=IF(Y2="","",IF(Y20,"active",Y2))
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Colin Hayes" wrote:
HI

In column Y I have a row of numbers.

I need to change them so that the cells which are 0 stay the same , and
cells with numbers greater than 0 in them are replaced with the word
'Active' .

Can someone help with this?

Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 465
Default Selective cell changes

In article , Max
writes
One way - use an adjacent helper col

Assuming numbers running in Y2 down
Put in Z2: =IF(Y20,"active",Y2)
Copy down. Kill the formulas in col Z with an "in-place" copypaste special
as values. Delete col Y.

If you want any blank cells in col Y to return as "blanks", ie:""
then use instead in Z2:
=IF(Y2="","",IF(Y20,"active",Y2))



Max

excellent , thanks. That fixed it.

Very grateful.



Best Wishes


Colin
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Selective cell changes

Glad it did, Colin.
Thanks for feedback.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Colin Hayes" wrote in message
Max
excellent , thanks. That fixed it.
Very grateful.
Best Wishes
Colin



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 465
Default Selective cell changes


Max

I've just had a little extra problem.

Could I use your formula to replace cells in the column with no content
to read 'NULL' , with cells having content remaining the same?


Best Wishes


Colin




In article , Colin Hayes
writes
In article , Max
writes
One way - use an adjacent helper col

Assuming numbers running in Y2 down
Put in Z2: =IF(Y20,"active",Y2)
Copy down. Kill the formulas in col Z with an "in-place" copypaste special
as values. Delete col Y.

If you want any blank cells in col Y to return as "blanks", ie:""
then use instead in Z2:
=IF(Y2="","",IF(Y20,"active",Y2))



Max

excellent , thanks. That fixed it.

Very grateful.



Best Wishes


Colin





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Selective cell changes

You have a reply at your next post.

Colin Hayes wrote:

Max

I've just had a little extra problem.

Could I use your formula to replace cells in the column with no content
to read 'NULL' , with cells having content remaining the same?

Best Wishes

Colin

In article , Colin Hayes
writes
In article , Max
writes
One way - use an adjacent helper col

Assuming numbers running in Y2 down
Put in Z2: =IF(Y20,"active",Y2)
Copy down. Kill the formulas in col Z with an "in-place" copypaste special
as values. Delete col Y.

If you want any blank cells in col Y to return as "blanks", ie:""
then use instead in Z2:
=IF(Y2="","",IF(Y20,"active",Y2))



Max

excellent , thanks. That fixed it.

Very grateful.



Best Wishes


Colin


--

Dave Peterson
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Selective cell changes

Instead of
=IF(Y2="","",IF(Y20,"active",Y2))


you could use:
=IF(Y2="","NULL",IF(Y20,"active",Y2))
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Colin Hayes" wrote in message
...
Max

I've just had a little extra problem.

Could I use your formula to replace cells in the column with no content to
read 'NULL' , with cells having content remaining the same?


Best Wishes
Colin



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
Selective concatenation using VBA Colin Hayes Excel Worksheet Functions 3 April 17th 07 02:47 PM
Selective addition Peter Excel Worksheet Functions 2 March 12th 07 10:33 AM
Selective calculation PH NEWS Excel Worksheet Functions 2 September 21st 06 01:33 PM
selective autofill with functions vicvega Excel Worksheet Functions 3 February 14th 06 03:19 PM
selective averaging Wazooli Excel Worksheet Functions 3 December 10th 04 09:25 PM


All times are GMT +1. The time now is 06:42 AM.

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

About Us

"It's about Microsoft Excel"