Remove Formula but keep data with source formatting? - excel

Remove Formula but keep data with source formatting ?
I have excel data on which couple of columns have formula. I need to remove the formula but keep data intact with formatting.
Everywhere on google below solution is given
Select the cells with formulas you want to remove but keep results, press Ctrl + C keys simultaneously to copy the selected cells.
click Home > Paste > Values
But its not keeping the source formatting like Merged cells etc.
Then instead of doing click Home > Paste > Values I did click Home > Paste > Values and Source Formatting but it is still keeping formula
How can I remove the formula but keep data intact with source formatting ?
Update :- Screen shot based on Tim answer

Here is one option:
Create a new column to the right of the column whose content and formatting (but not formula) you want to want to preserve
Copy the column, and paste (all) into this new column. This will bring in formatting, values, and formulas
Then, copy the original column again, and paste this into the new column using Paste Special. You may find this from the drop down menu, or using Alt + E + S. In the dialog box, make sure that only the "Values" option is selected.
The basic idea is to make a carbon copy of the original column, then to wipe out the formulas only.

Related

Excel autofill problem with different rows

I am working on an excel project where I have to fill all the blank with info but it differs every some rows looks like this
and this is what I would like to achieve.
You can follow below steps.
Select cells you want to fill up.
From Home tab--> Editing section select Find & Select then Go To Special.
Select Blanks and click ok.
Now just type =Immediate above cell address you want to fill like =A1.
Then press CTRL+ENTER. Blanks cells should fill up with data from its above cell.
If you wish to remove formulas from cells then copy all cells in range and right click then paste values.

How to add formula to multiple cells with already existing values in them?

I have a table filled with hundreds of values in different cells (not coming in order, chaotic). Now I want to add 20% to each value (=x*1.2).
what formula should I use?
A quick way to get the desired result is to add a new table or worksheet and copy the update formula in each cell (e.g =A1*1.2). You could then overwrite the old values by pasting the new values. Pasting values overwrites any old formula.
If you want to manipulate the formula of every cell, you should look into a vba solution.
This is my solution:
1. Write a 1.2 in an empty cell out of table.
2. Copy this cell (1.2).
3. Select the table with values. Right-click of the mouse, select Paste Special -> Paste Special..-> Multiply. Voila!
Result: all selected values in the table were multiplied by 20%
Thanks a lot to my colleague Lina!

Excel, how to prevent data from incrementing but also not copy formatting

I am trying to drag the bottom right corner downwards to copy some data and it always increments my numbers that I want to copy. If I select copy cells in the auto fill options then it copies the numbers properly but also copies the formatting, but if I select fill without formatting it increments the numbers. I want both. My first cell has a strong border above it that I don't want every cell to have. However my data is in semi small increments of the same problem so copying the first cell once then dragging would be way to inefficient. Thanks for the help.
Original data example
Using copy cells, right numbers wrong formatting
Use the following formula in the any one of the columns you are not using and drag it down to the end of data. Then copy the result to your column E as values. If your helper column is N then:
=IF(E3<>"",E3,N2)
What I usually do in these situations is separate the values from the formatting.
make a copy of the column you want to edit (either adjacent to it,
or outside the table you're editing).
On the new column - use copy cells in the autofill menu, or
otherwise complete the values according to your needs.
paste the new column back on the original column As values.
Delete the new column

Excel formula to assist with filling dates in down column

Column A contains leave dates, Column B contains clinicians. Data was extracted from VISTA and only includes leave date for first employee listed. Is there an easier way than copying and pasting to extend the dates in column A to include each employee? Most likely I would be working with over 50,000 total rows ( at least to begin with), so I would prefer to avoid copying and pasting.
Here is what the data currently looks like:
enter image description here
Here is what I would like the data to look like:
enter image description here
Follow these steps:
Select entire column with Dates
Press Ctrl + g
Click Special...
Select Blanks
Click OK
With the blank cells selected (and assuming the first blank cells is A3) put this into the formula bar: =if(B3<>"",A2,"")
Instead of pressing Enter to save the formula to just the first blank cell, press Ctrl + Enter to save it to all selected cells
Right click on any selected cell and change the format to Date (Screenshot below at this point)
Select the entire column A again, then copy and paste special as values to convert the formulas to date values that you can sort/filter on. (Let me know if you need more detail on this step)

Conditional data entry on certain text in excel

I'm after some pointers.
I want to input text into some cells based on the contents of others.
Current formula that I'm using in cell B1 is
=IF(ISERROR(FIND("example",A1)),"no","yes")
So far, so simple. This works. Inputs 'yes' in B1 if 'example' is located in the cell A1, copy down.
However, there are some cells in the B column which have already been formatted with other text in, and I want to apply this formula on the entire spreadsheet without removing the existing text in column B. So far, the only thing I can think of is by putting this formula in the C column, copying down then moving the text from the C column to the B column - but this requires laborious copy and pasting that kind of negates the time saving provided by the formula.
What is the best way to achieve this? Do I need to resort to VB to scan the entire sheet, iterating through A1-A30000 and inserting the requisite text in B column?
Cheers.
Edit:
So, this has been pretty much sorted, with a variety of suggestions.
However, the actual formula I'm using is:
=IF(ISERROR(FIND("example",A1)),"","yes")
as I only want text to be put in columnB if the pattern is found. This has presented another problem! The double quotes signifying no replacement if the pattern ISN'T found actually inserts a 'NULL' character in there; when you try and select the blank cells on the next iteration of the operation, no cells are selected, as even though there is no visible character, Excel thinks there is. xD
This is solved by writing a macro function to remove Null characters.
Excel is infuriating sometimes. :P
All of the information and advice already given is definitely correct and gets the job done,
byt thought I'd add one that does not require ANY changes to the existing data (eg sorting or filtering):
Put your formula as you described is cell B1. Apply any conditional formatting to that cell, as required.
Now select and copy (ctrl+C) cell B1. Select column B (click on column heading).
Then Click find and Select (binoculars icon) - on Home ribbon tab. Choose go to Special.
In the popup choose Blanks and click ok. You will note all blank cells in colum B are selected. Don’t click anything, press Crtl-V.
Voilà, your formula and conditional formatting is pasted into all blank cells, leaving the rest alone.
Quick keyboard sequence:
select B1
Press ‘Ctrl + C’
Ctrl + ‘Space Bar’
Press ‘Ctrl + G’
Press Tab twice to go to ‘Special…’ button, press Enter
Press ‘K’ for blanks, Press Enter
Press ‘Ctrl + V’
(optional) press escape to remove selection from B1
There are a few ways to deal with this. I'll explain 2 of them :
If sorting is an option, sort your table by column B (ascending / A-Z) to get all the empty values at the top. Write your formula in the first blank cell and extend it by double-clicking the bottom-right corner of that cell.
If you cannot sort, apply filters to the table and select only the blank cells in column B. Then write the formula in the first blank cell and extend it by dragging it down to the last cell.
You might combine your existing B column values with those to be added conditionally in a single formula, say in ColumnC, such as:
=IF(ISBLANK(B1),IF(ISERROR(FIND("example",A1)),"no","yes"),B1)
copied down to suit. Then if ColumnB has become redundant, copy ColumnC, Paste Special, Values over the top and delete ColumnB. The result is to convert the formulae to the results thereof, that may increase processing speed but reduce the ease of handling additional rows (if any) subject to the same requirements.

Resources