SOLVED

Find and Replace Range

%3CLINGO-SUB%20id%3D%22lingo-sub-1520271%22%20slang%3D%22en-US%22%3EFind%20and%20Replace%20Range%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1520271%22%20slang%3D%22en-US%22%3E%3CP%3EIs%20it%20possible%20to%20use%20the%20find%20and%20replace%20feature%20to%20find%20a%20specific%20range%20of%20numbers%20between%200-100%20in%20multiple%20rows%2Fcolumns%20cells%20and%20replace%20it%20with%20a%20range%20value%3F%20For%20example%20if%20i%20had%20various%20numbers%20ranging%20from%200%20to%20100%20in%20multiple%20cells%2C%20could%20i%20use%20find%20to%20find%20all%20numbers%20between%200%20and%2010%20and%20replace%20the%20cell%20value%20with%20the%20range%20of%200-10%3F%26nbsp%3B%20If%20not%20i%20would%20be%20open%20to%20simple%20workarounds%20to%20accomplish%20the%20same%20result.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1520271%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1521311%22%20slang%3D%22en-US%22%3ERe%3A%20Find%20and%20Replace%20Range%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1521311%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F727693%22%20target%3D%22_blank%22%3E%40sirk78%3C%2FA%3E%26nbsp%3B%20How%20about%20creating%20another%20column%20with%20a%20formula%20that%20does%20it%20for%20you%3F%26nbsp%3B%20For%20example%20you%20data%20is%20in%20column%20A%20and%20you%20put%20this%20in%20col%20B%20(starting%20at%20row%201)%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3DIFERROR(IF(AND(A1%26gt%3B%3D1%2CA1%26lt%3B%3D10)%2C%221%20-%2010%22%2CA1)%2C%22%22)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3Bif%20you%20have%20multiple%20columns%20like%20A%3AF%20then%20put%20it%20in%20G%20and%20copy%20down%20and%20right%20to%20L.%3C%2FP%3E%3CP%3EIf%20you%20don't%20want%20the%20extra%20columns%20you%20can%20then%20cut%20and%20paste%20VALUES%20back%20over%20the%20orig%20data%20or%20maybe%20better%20yet%20is%20just%20HIDE%20those%20original%20columns%20(highlight%20A%3AF%20and%20right%20click%20and%20select%20hide).%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1521674%22%20slang%3D%22en-US%22%3ERe%3A%20Find%20and%20Replace%20Range%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1521674%22%20slang%3D%22en-US%22%3EI%20had%20thought%20about%20nesting%20if%20statements%20but%20the%20values%20I%20am%20working%20with%20are%201-100%20being%20grouped%20in%20ranges%20of%2010%20which%20would%20mean%2010%20if%20statements%20and%20my%20understanding%20is%20that%20the%20max%20is%207.%20Would%20this%20produce%20the%20same%20problem%3F%20Thanks%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1521727%22%20slang%3D%22en-US%22%3ERe%3A%20Find%20and%20Replace%20Range%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1521727%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F727693%22%20target%3D%22_blank%22%3E%40sirk78%3C%2FA%3E%26nbsp%3B%20you%20can%20use%20the%20IFS()%20statement%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3DIFS(A1%26lt%3B%3D10%2C%221-10%22%2CA1%26lt%3B%3D20%2C%2211-20%22%2CA1%26lt%3B%3D30%2C%2221-30%22%2CA1%26lt%3B%3D40%2C%2231-40%22%2C%20...%20%2C%20A1%26lt%3B100%2C%2291-100%22)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3Eor%20try%20this%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3DMROUND(A1%2B4.99%2C10)-9%20%26amp%3B%20%22%20-%20%22%20%26amp%3B%20MROUND(A1%2B4.99%2C10)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3Ewhich%20will%20work%20even%20past%20100%20but%20does%20assume%200.01%20threshold%20(i.e.%2010.001%20will%20still%20fall%20under%201-10%20instead%20of%2011-20)%2C%20but%20you%20can%20tweak%20that%20as%20you%20wish.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1521867%22%20slang%3D%22en-US%22%3ERe%3A%20Find%20and%20Replace%20Range%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1521867%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F570951%22%20target%3D%22_blank%22%3E%40mtarler%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20IFS%20worked%20perfect%2C%20that%20was%20a%20new%20one%20for%20me.%26nbsp%3B%20Still%20so%20much%20to%20learn!%20Thanks%20for%20your%20time!%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Is it possible to use the find and replace feature to find a specific range of numbers between 0-100 in multiple rows/columns cells and replace it with a range value? For example if i had various numbers ranging from 0 to 100 in multiple cells, could i use find to find all numbers between 0 and 10 and replace the cell value with the range of 0-10?  If not i would be open to simple workarounds to accomplish the same result. 

4 Replies

@sirk78  How about creating another column with a formula that does it for you?  For example you data is in column A and you put this in col B (starting at row 1):

=IFERROR(IF(AND(A1>=1,A1<=10),"1 - 10",A1),"")

 if you have multiple columns like A:F then put it in G and copy down and right to L.

If you don't want the extra columns you can then cut and paste VALUES back over the orig data or maybe better yet is just HIDE those original columns (highlight A:F and right click and select hide).

I had thought about nesting if statements but the values I am working with are 1-100 being grouped in ranges of 10 which would mean 10 if statements and my understanding is that the max is 7. Would this produce the same problem? Thanks
Best Response confirmed by sirk78 (New Contributor)
Solution

@sirk78  you can use the IFS() statement:

=IFS(A1<=10,"1-10",A1<=20,"11-20",A1<=30,"21-30",A1<=40,"31-40", ... , A1<100,"91-100")

or try this:

=MROUND(A1+4.99,10)-9 & " - " & MROUND(A1+4.99,10)

which will work even past 100 but does assume 0.01 threshold (i.e. 10.001 will still fall under 1-10 instead of 11-20), but you can tweak that as you wish.

@mtarler 

The IFS worked perfect, that was a new one for me.  Still so much to learn! Thanks for your time!