+ Reply to Thread
Results 1 to 10 of 10

How to change multiple cell values by replacing when highlighted?

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    06-11-2012
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2010
    Posts
    124

    How to change multiple cell values by replacing when highlighted?

    I am working on an index table that I have copied several times (25 to be exact). My table does use $$ to isolate a cell, but the increment of the cell I wish to change is by +1 and if I copy the entire index table if I remove the $$ it will add +22 to the cell value and that is too much.

    Is there a way that I can highlight the index completely and edit all instances of "cell $$" for "cell $$+1"

    Thanks,

  2. #2
    Forum Contributor
    Join Date
    06-11-2012
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2010
    Posts
    124

    Re: How to change multiple cell values by replacing when highlighted?

    Editing all the cells manually one at a time makes me feel like playing ms pacman.

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

    Re: How to change multiple cell values by replacing when highlighted?

    Hard to say without you uploading an example showing exactly what you are doing. Based on what I think you are doing, I would, with the $ in place, I would copy it to one row above where you want it to be. Then I would remove the $ (Search and replace with options set to formulas) and copy and paste it that final row.

    Does that help?
    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

  4. #4
    Forum Contributor
    Join Date
    06-11-2012
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2010
    Posts
    124

    Re: How to change multiple cell values by replacing when highlighted?

    =IF(Sheet1!$N$14="Melee",LARGE(J365:J370,3),LARGE(J365:J370,5))
    =IF(Sheet1!$N$14="Melee",LARGE(J365:J370,1),LARGE(J365:J370,2))
    =LARGE(J365:J370,3)

    Thanks for your reply,

    Here are three cells our of about 120 of my index. I am manually increasing the value $n$14 to $n$15. If I copy the entire table it it preserves everything correctly but increments the n value out of proportion.

    I can't seem to find how to search for options in formula.

    Cheers,

  5. #5
    Forum Contributor
    Join Date
    06-11-2012
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2010
    Posts
    124

    Re: How to change multiple cell values by replacing when highlighted?

    =IF(Sheet1!$N$14="Melee",LARGE(J365:J370,3),LARGE(J365:J370,5))
    =IF(Sheet1!$N$14="Melee",LARGE(J365:J370,1),LARGE(J365:J370,2))
    =LARGE(J365:J370,3)

    Thanks for your reply,

    Here are three cells our of about 120 of my index. I am manually increasing the value $n$14 to $n$15. If I copy the entire table it it preserves everything correctly but increments the n value out of proportion.

    I can't seem to find how to search for options in formula.

    Cheers,

  6. #6
    Forum Contributor
    Join Date
    06-11-2012
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2010
    Posts
    124

    Re: How to change multiple cell values by replacing when highlighted?

    oops, double post

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

    Re: How to change multiple cell values by replacing when highlighted?

    Okay, makes more sense now but my answer is the same.
    Step 1. Copy and paste the table/column/rows 1 row above where you want it. If there were headers there, you'll need to repaste them in when you're done.
    Step 2. Select your replanted table. Find and replace (CNTRL H) Options set to "Look in Formulas" Find $, replace with nothing. Replace All.
    Step 3. Copy your replanted table and move it down one row. Replace your headers if you need to.

    Not very efficient but better than doing it cell by cell.

    Another option is, with $ in place, just paste it where you want it, and do a Find and replace (look in formulas) $N$14 replace with $N$15 That might be easier.

  8. #8
    Forum Contributor
    Join Date
    06-11-2012
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2010
    Posts
    124

    Re: How to change multiple cell values by replacing when highlighted?

    Brilliant!

    If I highlight the table, and hit ctrl-h it will systematically go from cell to cell replacing the values, very not bad!

    You've earned your added reputation,

    Cheers,

  9. #9
    Forum Contributor
    Join Date
    06-11-2012
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2010
    Posts
    124

    Re: How to change multiple cell values by replacing when highlighted?

    Brilliant!

    If I highlight the table, and hit ctrl-h it will systematically go from cell to cell replacing the values, very not bad!

    You've earned your added reputation,

    Cheers,

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

    Re: How to change multiple cell values by replacing when highlighted?

    You need to be careful with that. If you just do a replace 14 with 15 and there's a J214 in there, it'll change it to J215. $N$14 should be safe.

+ 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