I'm getting a #DIV/0 when calculating the average time from a range of cells.
A copy of the file can be found here;
http://www44.zippyshare.com/v/5ZlxD44N/file.html
I have literally no idea why this is happening, nor can I seem to find a way around this.
I have checked the formatting of the cells, tried to re save the file, pull the data on to a new page. Nothing seems to work.
Any help is much appreciated.
All the data in A1:C10 is stored as text (by default text is left alligned and cell's display doesn't change when you change formatting). To convert it to time values:
enter 1 in any empty cell
copy this cell
select A1:C10, choose Paste special->Multiply
format the range back to time format
Your sheet is set to manual calculation, so make sure to recalculate the sheet with F9 or switch it to automatic.
Alternatively you can convert text to time inside array formula (confirmed with Ctrl+Shift+Enter):
=AVERAGE(A1:A10*1)
Related
I have a series of spreadsheets filled by farmers that list the composition of NPK fertiliser applied to their fields.
In some of these something happened with the cell format (that was originally set to text) and now the fertiliser composition is read by Excel as a date.
Example of text entered in the cell (N:P:K):
25:00:14
Excel now reads this as:
01/01/1900 01:00:14
When looking at the cell, I see the correct value (25:00:14). However, when importing the data into Python, or when copying the value to a different cell, the date (01/01/1900 01:00:14) gets exported instead.
I have tried: changing the cell type to text, copying the contents of the cell into another cell set as text, replacing ':' with a different special character. Nothing along these lines seems to work.
I have a few hundreds of these entries, so any ideas on how to avoid having to re-enter them manually would be greatly appreciated!
I want to get Rows 2-7 into Row 8 with each value on a separate line so when I copy/paste into PowerPoint it will be formatted already. How do I do this?
Also, I would need the percentages to be Italics. Possible?
Image Attachment
Not sure I fully understand what you are looking for, but in terms of changing vertical data into horizontal/row - you can just copy it and then paste special transpose... (in the right click menu)
Edit: Ok so looking at the image you uploaded, as #Om3r commented you can use the Transpose function. This as far as I know, however, will not put the values into a single cell (though could you not copy across the value from a range of cells to powerpoint instead?).
To put into a single cell with spaces, you could use Transpose and then Concatenate the values CONCATENATE(B8 & " " & C8 & " " ...etc) - this will lose formatting such as italics though. This post might help for more info about setting different formats in a single cell: Use different fonts in same Excel cell?
To use Transpose anyway:
Assuming you don't need the header transposed, put =TRANSPOSE(B2:B7), then in the formula bar press ctrl-shift-enter, drag out to fill the number of cells as values, and use ctrl-shift-enter again (or copy into all the cells first, ignore the value! error which will fix once ctrl-shift-enter)
Copy/paste special method is useful for a one off, transpose if you will be updating the numbers several times. Once you set the percentage cells as italic etc, they should stay that way as you update - so no problems for the second part of your question. (you'll need to set the cells as % format too I think, otherwise will just transpose as a decimal)
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.
I am trying to prep some zip codes to go into the WHERE clause of a SQL query:
WHERE [Zip_code] IN ()
To do this I put all the values into Excel and want to concatenate the zip codes with an apostrophe at the beginning and an apostrophe, a comma, and a space at the end so 99508 would become '99508', . So I wrote the equation
=Concatenate("'",D2,"', ") where D2 is the zipcode. It worked for the top row producing '99058', but when I filled down it still showed the value for D2
To make matters more confusing, when I click on the cells and see the formulas, they are tracking the proper cells but still show data for the top row
I have tried everything that I can think of to solve the problem: reformatting everything as text, formatting the zipcodes as Numbers rather than text, putting the text in the adjoining columns (C2 has an apostrophe, D2 has the Zip code, E2 has apostrophe, comma, and space) and concatenating, using & instead of concatenate ("'"&D2&"', " ), concatenating A on the front and B on the end to do a find and replace, but I still get the same result. If I select a concatenated cell, click on the formula bar, and press enter the cell shows the proper concatenation, but I would rather not do that for every single cell.
My co-worker suggests including that the zip codes were taken from pivot table outputs.
Any suggestions?
Turns out that calculations had somehow been set to manual instead of automatic.
Switching back to automatic solved the problem.
use this instead
=concatenate("'";D2;"',")
idk if gonna work on you sheet, bc i have in spanish my MS-office suite
but if doesn't work, replace the ; for ,
if you copy the formula to the other cells, this must change to the next row
First is clear the worksheet format
secondly, click on file on the excel, then to option, to formula after formula, check the position of the calculation. if its in automatic change it back to Manual and then change it back to automatic. That will solve it.
What I'm doing is a simple map on one tab of an office space that has all the cubicals laid out. On this map, I have conditional formatting checking another table of listen computers for the last time they were updated/maintained. It works as it stands, but we are moving into a new building and the map (which is already done) has WAY more cubes than last time. So I'm trying to figure out a more efficient way to do this task.
Here is the code:
=AND(VLOOKUP("CCA C1",LOCATION,3,FALSE)<>"",VLOOKUP("CCA C1",LOCATION,3,FALSE)<TODAY()-80)
So as it sits, it works fine. But what I'm trying to do is change the "CCA C1" to simply read the contents of the cell it's formatting so I can just format an entire range of cells rather than doing it cell by cell. The "CCA C1" is in the location of the second sheet (it's a named range). So this checks that entire range for "CCA C1" and checks if the date a couple columns over in that row is within 80 days, if it's not it highlights the cell in the map in red reminding us we need to check the computer. But what I would like to do is simply put "CCA C1" in the cell in the map (which is already is labeled), and have this check for the value of the cell it's formatting and look for that value the same way it's looking now. Just without me having to put "CCA C1" in the formula, I'd like to say something like this:
=AND(VLOOKUP(CURRENT CELL VALUE,LOCATION,3,FALSE)<>"",VLOOKUP(CURRENT CELL VALUE,LOCATION,3,FALSE)<TODAY()-80)
Make sense? Anyone know of a way to do this? Otherwise I have to conditionally format each individual cell with the value manually rather than just format all the cells with the same formatting and have the formula check the contents of the cell for what to look for in the location range of the other sheet.
And to clarify, I know that I can put in the actual cell, such as E3, but then I still have to manually change the formula for each cell which defeats the purpose. I want to just say current cell or something like that. I have 3 conditional formats for each cell, I have around 100 cells to be formatted, so rather than having 300 formats I have to put in, I'd love to just do 3. Not sure if this is possible, that's why I'm asking :)
Just replace "CCA C1" with the address of the first cell in the range of cells with the conditional formatting. Assuming your conditional formatting starts in B2:
=AND(VLOOKUP(B2,LOCATION,3,FALSE)<>"",VLOOKUP("CCA C1",LOCATION,3,FALSE)<TODAY()-80)
EDIT: As I commented, I'm not sure I understand the issue, but if I do, you need to enter the range of cells with CF in the applies to range of the CF dialog, rather than copying and using Paste Special:
Note that this works with the merged cells.
You will need to adjust the applies to range as you add more computers, etc., but the same formula will work.