Hi experts
column t has values negative (less than zero). How can I replace those with zero without looping?
Hi experts
column t has values negative (less than zero). How can I replace those with zero without looping?
You cold use Autofilter. Filter column T on negative values and replace (all) visible cells with 0.
Trevor Shuttleworth - Retired Excel/VBA Consultant
I dream of a better world where chickens can cross the road without having their motives questioned
'Being unapologetic means never having to say you're sorry' John Cooper Clarke
Thanks. I wanted a line of code
Try
Please Login or Register to view this content.
Maybe this:
Please Login or Register to view this content.
Thank you so much. this line is very great
@jolivanes
how can I color these cells?
Use Trevor's suggestion of AutoFilter and color visible cells any color your heart desires.
this:
Please Login or Register to view this content.
Thank you so much both of you
Or (assuming no formulae in Column T)
Please Login or Register to view this content.
Hi Trevor.
I am glad you didn't say "outside the closet"!!!! (like coming out of the closet)
Thanks though
Can the same outside the box be applied to the condition
(cells that are less than 2000)?
What was the outcome when you tried it?
I would say that you'll be looking at a loop. Which is OK
Have you tried Trevor's solution from Post #10? Change the less than 0 to any number you want to use.
Last edited by jolivanes; 03-28-2022 at 02:07 AM.
Yes it worked for looping, but I told myself that ideas outside box has its word
Hi guys,
Could this not be simply done with Conditional Formatting?
Just wondering.
Please consider:
Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .
Will conditional formatting change for example -125 to 0?
No. CF does what it says on the tin, Conditional Formatting. It can't change the content of a cell, just the way it is displayed.Will conditional formatting change for example -125 to 0?
Thank you so much TMS sir
Note: you CAN change the way the negative numbers are displayed using a CUSTOM format:It doesn't CHANGE the value in the cell, just displays it as 0.Formula:Please Login or Register to view this content.
Yes but I found the total changed, so this is only apparent change not real change
Don't understand this comment.Yes but I found the total changed, so this is only apparent change not real change
Neither Conditional Formatting, nor a Custom Format, will change the value in the cell. You need one of the solutions you have already been given.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks