+ Reply to Thread
Results 1 to 5 of 5

How can i replace values by filter in a selected range ?

  1. #1
    Registered User
    Join Date
    03-01-2010
    Location
    earth
    MS-Off Ver
    Excel 365
    Posts
    24

    How can i replace values by filter in a selected range ?

    I want to replace all values greater than 110 with 110 in the selected cell area. Is there a way to do that? Thanks.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How can i replace values by filter in a selected range ?

    easiest way is to filter each column in turn by >110 then overwrite the first cell with 110 and drag down.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    03-01-2010
    Location
    earth
    MS-Off Ver
    Excel 365
    Posts
    24

    Re: How can i replace values by filter in a selected range ?

    thanks but i want to select multiple columns and rows, not one column at a time. please help.

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How can i replace values by filter in a selected range ?

    This would require VBA (or you could do it with formulas and paste special back over the original)

    Try this code in a module(you can make a keyboard shortcut to it)
    Please Login or Register  to view this content.
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How can i replace values by filter in a selected range ?

    Improved version (thanks to Romperstomper) which takes into account that you might have error values in some of your cell selections
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1