Excel, Removing a formula after the calculation is completed - excel-formula

I need a way (that isn't copy paste special) that will remove a formula once it provides an answer. The command F2 then F9 is perfect but i can't work out a way to apply that to 1m rows.
Is there any command in the formula that i can insert that will strip the formula out and simply leave the result onces its calculated.
Copying and pasting special is really slow, cumbersome and error prone when you're dealing with very large workbooks (multiple sheets, 1m plus rows etc).

Related

Is it possible to CONCAT a range only for the cells that contain text?

I have data that consists of multiple jobs, each consisting of lines of comment text, with each line in a separate cell. I have set up a formula that extracts the data and organises it more efficiently, and now I'm trying to combine them into one cell, but still on different lines, so they can be transferred to other software (namely Business Central) easily. I've managed to get =CONCAT(Sheet5!E3:E40&CHAR(10)), which collects the lines into one cell separated by carriage breaks (these aren't visible in the cell itself, but when the cell is copied and pasted into, say, Notepad, it works).
My issue is that the number of comment lines in a job can vary a lot. I've extended the organising formula to cover more cells than I think I'm likely to need, but this results in up to 35 empty cells, which are being included in the CONCAT() as empty lines. I'm wondering if there's something I can put in the CONCAT(), around Sheet5!E3:E40, which will mean it only applies to cells in this range with text in (or, non-empty cells). I know there are ways to check if a cell is empty, but I'm blanking on how to actually apply it to the cell range without crossing over the CONCAT() argument and breaking that function.
Unfortunately, using =(IF(Sheet5!E3:E11<>"",CONCAT(Sheet5!E2),"")) spills to make several copies of the CONCAT()ed cell, possibly because my organising formula doesn't spill, (at least, it's not doing it for me) so is simply copied to all of the cells individually.
If you click , which is the icon for Word Wrap and usually located in the Home menu, you can see the blank lines as you do in Notepad.
To remove them, place the IF inside the CONCAT. This returns a range for CONCAT to use.
=CONCAT(IF(A1:D2<>"",A1:D2&CHAR(10),""))

how to copy a result of calculation in excel without distortion of the result and then transpose it from column to raw?

I want to copy the result of the multiplication that I made in the example below , but it keeps showing me 0 and this is because it seems it copies the equation and not result of the formula.
When you paste, there should be several paste options, and one (or more) of them should be 'values'.
Try pressing Ctrl straight after pasting.

Alternative to INDIRECT

I'm using the INDIRECT function to fetch data from another table sheet.
The direct way would be "sheetname!A5". I need it dynamically, so the sheetname is also part of the table, using indirect "indirect("'"&G$1&"'!A5"), whereas G1 contains the sheetname works fine.
INDIRECT is horribly slow, which outperform my project because I need a lot of fetches.
Is there a less powerful / more performant function to fetch data from variable sheets?
I've run into similar situations - depending on how frequently your 'results' worksheet changes, it may be best to create a formula dynamically that initially 'writes' hardcoded formuls. For example: ="='"&G$1&"'!A5".
Then copy that formula as you wish; it will create text strings that represent what you want the formulas to look like. Then copy & paste as values - you will now have the desired formula entered into each cell. By default, Excel will still display each cell as a text string, even though the format type would be general (assuming it was beforehand). From there, different solutions are possible - if you have few enough cells it may be enough to just start at the top pressing F2 then Enter, repeatedly, to get Excel to calculate each cell.

Excel cells don't calculate until I double-click them

I have an excel sheet with three sum functions. The sheet is a template, so the rest of the sheet is blank, except for a couple text descriptions in Column A.
I use an ETL process (Talend Open Studio) to open the worksheet, input some data, append a couple other sheets, and save this different worksheet in a file share.
When I open the worksheet in the file share, the three cells with the sum functions show as zero, but when I double-click the cell, they calculate correctly.
I would like for the cells to show their calculation without me double-clicking them.
The cells are formatted as General, and the Calculation option is set to Automatic. What can I do?
select all, find-replace = with = and excel will see the contents as a formula.
I have seen such problem occurs when exporting data from "NoSQL" databases such MongoDB, etc.
You can insert a column in right side and go to the "Data" tab -> "Text to Columns" option.
Make sure you select appropriate format while separating.
Whatever you want to separate will shift to right side. Now delete this undesired column. You are done.
It is possible that Excel is seeing the cells as Text, despite the fact that you have formatted as General. This can be the case when dealing with data coming from an ERP such as SAP.
Try these two approaches to see if one works:
Approach 1
Transfer your data to another sheet by Copying your data cells and paste special (values) into another sheet
Then copy and paste your formulas into the other sheet and see if that works.
Approach 2:
For all the cells you're having trouble with, enter formula =Value([your cell]) in fresh column
Copy that column and Paste Special Values over it
Point your formulas to this new column
It's hard to reproduce the problem you're having unless you have a datasource that is exhibiting the issue. But one of those approaches may help.
How that idea worked for me:
Assumption: Source Data in Column A2
Data is "$4,238.74 "
In B2 = RIGHT(A2, LEN(A2)-1) to clear the leftmost and stubborn character ("$" that would not clear with find and replace)
In C2 = LEFT(B2, LEN(B2)-1) to clear the rightmost and stubborn character (identified as unicode 160 that would not clear either)
After the above cleaning was done the cells still would not work with something as simple as SUM() without double clicking each cell manually.
Since that is not efficient User6574133's divide by 1 idea was applied:
In D2 = C2/1 this called the stubborn (C2) cell that wouldn't calculate and created workable clean data in D2 that would calculate without having to double click each cell manually.
In a blank column Put divide the same number by 1 (eg = 5.223/1 = 5.223) Problem solved
It could be that you have calculations set to manual instead of automatic. To fix this, go to the Formula tab/Calculation/Calculation Options/tick Automatic.
I fixed mine merely by going to formulas, calculation tab, "calculate now". It woke Excel up.
Actually, go to Formulas, Calculation Options, and you will see it is set to MANUAL, change it to AUTOMATIC. I believe some update must have changed it to Manual.
I solved in a very simple way: try saving the file with OpenOffice.

Any way to copy/paste formulas in a range of cells but keep absolute?

I have a matrix of data and each cell is a formula. All cell formulas are relative, so when I copy and paste just below, the formulas are now off.
Here's what I know works:
Change each cell's formula from relative to absolute
Copy the text from each formula, then paste this text below
I don't want to go and F4 each part of every formula for dozens of cells. Is there a way to copy paste a large batch but tell Excel to keep the exact formulas as written?
I personally do a bulk Find and Replace on the original range, replacing all "=" signs with a random text string which is guaranteed to not occur anywhere within those formulas, my usual choice being "##".
This converts all the formulas to text strings, after which you can paste the range before then performing the reverse Find and Replace, i.e. replacing "##" with "=", which coerces Excel into treating the strings as actual formulas once more.
Of course, if we're talking about a very large amount of formulas, i.e. several thousand, then this operation can take a while to perform, since not only is Excel required to carry out the Find and Replace on all strings, but also to calculate all the newly-created formulas.
Regards
When pasting, right click and choose "Paste Special" and use "Paste Formulas" (the fx icon).
Edit: Ah, I realize now this only works for 'fully anchored' ($A$1) cell references.

Resources