Selective cell changes

  • Thread starter Thread starter Colin Hayes
  • Start date Start date
C

Colin Hayes

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.
 
One way - use an adjacent helper col

Assuming numbers running in Y2 down
Put in Z2: =IF(Y2>0,"active",Y2)
Copy down. Kill the formulas in col Z with an "in-place" copy>paste 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(Y2>0,"active",Y2))
 
Max said:
One way - use an adjacent helper col

Assuming numbers running in Y2 down
Put in Z2: =IF(Y2>0,"active",Y2)
Copy down. Kill the formulas in col Z with an "in-place" copy>paste 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(Y2>0,"active",Y2))


Max

excellent , thanks. That fixed it.

Very grateful.



Best Wishes


Colin
 
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
 
You have a reply at your next post.

Colin said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Excel Need Countifs Formula Help 0
Select rows which satisfy 2 criteria 16
VLOOKUP plus IF 1
COUNTIF for 2 columns 6
Excel VBA 1
text if negative value 2
Find and return a value 2
Excel Formula or equation 3

Back
Top