ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   find duped value < 0 and change to 0 (https://www.excelbanter.com/excel-programming/419937-find-duped-value-0-change-0-a.html)

aileen

find duped value < 0 and change to 0
 
I have a column of data as such:

0
0
360
360
360
0
0
0
-1468
-1468
-1468
0
0
0

I would like to change any values that are duped to 0 except for the first
different value found. The column of data above should become as below:

0
0
360
0
0
0
0
0
-1468
0
0
0
0
0

Is this possible? Thanks for any help.

Sheeloo[_3_]

find duped value < 0 and change to 0
 
If your numbers are in Col A then enter this formula in B1 and copy down...

=IF(COUNTIF($A$1:A1,A1)=1,A1,0)

"aileen" wrote:

I have a column of data as such:

0
0
360
360
360
0
0
0
-1468
-1468
-1468
0
0
0

I would like to change any values that are duped to 0 except for the first
different value found. The column of data above should become as below:

0
0
360
0
0
0
0
0
-1468
0
0
0
0
0

Is this possible? Thanks for any help.


aileen

find duped value < 0 and change to 0
 
Worked perfectly. Thanks

"Sheeloo" wrote:

If your numbers are in Col A then enter this formula in B1 and copy down...

=IF(COUNTIF($A$1:A1,A1)=1,A1,0)

"aileen" wrote:

I have a column of data as such:

0
0
360
360
360
0
0
0
-1468
-1468
-1468
0
0
0

I would like to change any values that are duped to 0 except for the first
different value found. The column of data above should become as below:

0
0
360
0
0
0
0
0
-1468
0
0
0
0
0

Is this possible? Thanks for any help.



All times are GMT +1. The time now is 11:34 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com