Cannot Edit Result of a Formula In A Cell

%3CLINGO-SUB%20id%3D%22lingo-sub-2163446%22%20slang%3D%22en-US%22%3ECannot%20Edit%20Result%20of%20a%20Formula%20In%20A%20Cell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2163446%22%20slang%3D%22en-US%22%3E%3CP%3EI%20was%20editing%20the%20results%20of%20a%20formula%20in%20multiple%20cells%20in%20a%20column%20(%3DA1%26amp%3B%22%22%26amp%3BB1)%20gives%20the%20result%20AABBCC301.79%20(where%20A1%3DAABBCC%20and%20B1%3D301.79)%20.%26nbsp%3B%20I%20wanted%20to%20remove%20the%20fractions%20so%20the%20result%20would%20be%20AABBCC301.%26nbsp%3B%20There%20were%20multiple%20cells%20to%20edit%20in%20this%20fashion.%26nbsp%3B%20When%20first%20editing%20I%20would%20click%20on%20a%20cell%20and%20remove%20the%20decimal%20digits%20using%20the%20backspace%20key%20(the%20formula%20showed%20in%20the%20formula%20bar%20and%20the%20result%20showed%20in%20the%20cell%20when%20in%20edit%20mode).%26nbsp%3B%20I%20decided%20to%20automate%20this%20task%20using%20a%20macro.%26nbsp%3B%20After%20recording%20the%20macro%2C%20I%20saved%20the%20workbook%20and%20was%20told%20it%20had%20to%20be%20saved%20as%20an%20%22Excel%20Macro%20-%20Enabled%20Workbook%22%20instead%20of%20just%20an%20%22Excel%20Workbook%22.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENow%20when%20I%20try%20to%20edit%20any%20cell%20with%20a%20formula%20in%20Excel%2C%20whenever%20I%20click%20on%20the%20cell%2C%20the%20cell%20changes%20from%20the%20result%20to%20the%20formula%20and%20I%20cannot%20edit%20it.%26nbsp%3B%20Ex.%26nbsp%3B%20AABBCC301.79%20becomes%26nbsp%3B%3DA1%26amp%3B%22%22%26amp%3BB1)%20when%20in%20edit%20mode%2C%20and%20I%20cannot%20remove%20the%20decimal%20numbers.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20tried%20all%20the%20suggestions%20about%20changing%20the%20format%20to%20General%2C%20text%20and%20number.%26nbsp%3B%20I%20tried%20deleting%20the%20%3D%20and%20then%20re-adding%20%3D%20to%20the%20formula.%26nbsp%3B%20I%20tried%20uninstalling%20and%20reinstalling%20Excel.%26nbsp%3B%20Tried%20removing%20the%20Developer%20Add-In%20(that%20enables%20Macros).%26nbsp%3B%20Nothing%20has%20resolved%20the%20issue.%26nbsp%3B%20The%20same%20thing%20happens%20now%20if%20I%20change%20the%20formula%20(%3DA2%2BB2)%2C%20gives%20the%20result%204.79.%20When%20I%20enter%20the%20cell%20to%20remove%20the%20decimal%20point%20the%20result%20disappears%20and%20only%20the%20formula%20shows.%26nbsp%3B%20If%20the%20result%20is%20a%20number%20I%20can%20change%20the%20number%20format%20to%20zero%20decimal%20places%20and%20that%20works.%26nbsp%3B%20I%20the%20result%20is%20AABBCC301.79%20removing%20the%20decimal%20places%20in%20the%20number%20format%20does%20not%20work.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20same%20thing%20happens%20if%20I%20create%20a%20new%20workbook.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2163446%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMacros%20and%20VBA%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2163550%22%20slang%3D%22en-US%22%3ERe%3A%20Cannot%20Edit%20Result%20of%20a%20Formula%20In%20A%20Cell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2163550%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F977723%22%20target%3D%22_blank%22%3E%40Rich9454a%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EChange%20the%20formula%20to%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3DINT(A1)%26amp%3BINT(B1)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2163881%22%20slang%3D%22en-US%22%3ERe%3A%20Cannot%20Edit%20Result%20of%20a%20Formula%20In%20A%20Cell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2163881%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F127945%22%20target%3D%22_blank%22%3E%40Hans%20Vogelaar%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20Hans%20for%20the%20reply%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThat%20did%20not%20work.%26nbsp%3B%20If%20A1%3D5.25%20and%20B1%3D5.5%2C%20that%20formula%20returns%2010%20(no%20decimals%20-%20the%20point%20of%20INT%2C%20but%20when%20I%20enter%20the%20cell%20to%20edit%20the%20resulting%20number%2C%20it%20still%20only%20shows%20the%20formula.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20A1%3DAABBCC%20and%20B1%3D301.25%20that%20formula%20using%20INT%20returns%20%23VALUE!%26nbsp%3B%20This%20is%20the%20formula%20I%20need%20to%20work%20-%20a%20combination%20of%20text%20from%20one%20cell%20and%20numbers%20in%20the%20other.%26nbsp%3B%20I%20need%20to%20be%20able%20to%20edit%20the%20result%20so%20it%20reads%20AABBCC301%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20also%20just%20noticed%20that%20I%20can%20no%20longer%20use%20Find%20and%20Replace%20to%20edit%20the%20result%20of%20a%20formula%20i.e.%20I%20cannot%20find%20AABBCC301.25%20and%20replace%20it%20with%20BBCCDD301.25%2C%20I%20have%20to%20find%20A1%20(AABBCC)%20and%20replace%20it%20with%20A2%20(BBCCDD).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

I was editing the results of a formula in multiple cells in a column (=A1&""&B1) gives the result AABBCC301.79 (where A1=AABBCC and B1=301.79) .  I wanted to remove the fractions so the result would be AABBCC301.  There were multiple cells to edit in this fashion.  When first editing I would click on a cell and remove the decimal digits using the backspace key (the formula showed in the formula bar and the result showed in the cell when in edit mode).  I decided to automate this task using a macro.  After recording the macro, I saved the workbook and was told it had to be saved as an "Excel Macro - Enabled Workbook" instead of just an "Excel Workbook".

 

Now when I try to edit any cell with a formula in Excel, whenever I click on the cell, the cell changes from the result to the formula and I cannot edit it.  Ex.  AABBCC301.79 becomes =A1&""&B1) when in edit mode, and I cannot remove the decimal numbers.

 

I tried all the suggestions about changing the format to General, text and number.  I tried deleting the = and then re-adding = to the formula.  I tried uninstalling and reinstalling Excel.  Tried removing the Developer Add-In (that enables Macros).  Nothing has resolved the issue.  The same thing happens now if I change the formula (=A2+B2), gives the result 4.79. When I enter the cell to remove the decimal point the result disappears and only the formula shows.  If the result is a number I can change the number format to zero decimal places and that works.  I the result is AABBCC301.79 removing the decimal places in the number format does not work.

 

The same thing happens if I create a new workbook.

 

3 Replies

@Rich9454a 

Change the formula to

 

=INT(A1)&INT(B1)

@Hans Vogelaar 

Thanks Hans for the reply,

 

That did not work.  If A1=5.25 and B1=5.5, that formula returns 10 (no decimals - the point of INT, but when I enter the cell to edit the resulting number, it still only shows the formula.

 

If A1=AABBCC and B1=301.25 that formula using INT returns #VALUE!  This is the formula I need to work - a combination of text from one cell and numbers in the other.  I need to be able to edit the result so it reads AABBCC301

 

I also just noticed that I can no longer use Find and Replace to edit the result of a formula i.e. I cannot find AABBCC301.25 and replace it with BBCCDD301.25, I have to find A1 (AABBCC) and replace it with A2 (BBCCDD).

 

@Rich9454a 

Using the formula =A1&B1:

Press F2 to edit the cell.

You will see the formula.

Select it in its entirety.

Press F9 to evaluate it.

Now you see the result.

Edit it as needed.

Press Enter.

Warning: this destroys the formula; only the edited result will remain.