In Excel, let's say I have 5 columns, but not all of the time will a column have data.
How can I force it to give a static number of commas?
I end up having some rows like this (as I would like it):
Field1,field2,field3,field4,field5
field1,field2,,,
Then some rows like this:
field1,field2,field3,field4,field5,
field1,field2,
field1,field2,field3,field4,
you mean when exporting? That should happen by default. I tried it just now with Excel 2007 and all exported lines in the .csv-file had the same amount of commas. Those lines with fewer columns had extra commas at the end, just like in your example
Actual exported excel file:
hello;world;;;;
how;are;you;doing;;
hi;;;;;
welcome;to;;;;
the;jungle;;;;
some;line;with;lots;of;columns
The actual amount of commas is determined by the row with the most columns
So in this particular instance, there was a lot of copy pasting going on to create the file.
I finally opened a new worksheet, copied the entire document over, and created a CSV using that.
This resolved my problem.
Related
I have 2 excel files. This contain changes on a couple of rows. I would like to withdraw the changes done.
What I have tried is that I tried concating all the columns, and then counting how many time this has occured. IF it matches first sheet of second i will call it a change.
Basically --> Concat --> unique --> countif on both sheets --> is it same on both sheet? If one is bigger, which tells me if i added or deleted rows...
The purpose of doing this is that I have a BOM. No specific identifiers, but just a BOM. This can mean that i can have duplicates and so on. I want to get out the different rows. For example if I removed 3 rows from first bom but added 1 other row, i want to extract it.
I have tried doing this, and it quickly becomes to advanced for me. Are there any functions I can use that makes my life easier? :) Coding in Visual basic is not my strong side...
I have a table with hundreds of rows in a very heavy excel workbook, I give a simplified like so:
And another table with combined text:
Is there a way I could have a formula that would allow me to check in the 1st table the individual values of each multiline cell and then add them in the total, to obtain something like this:
The point here being that the file might change in the future, rows could be added or deleted and so on, so I would like to be able to obtain the totals without splitting the multiline cells.
I've tried countIf but I don't think that's the proper way to go. Any help would be appreciated.
Multiple options really. You could try:
Formula in B10:
=SUMPRODUCT(ISNUMBER(FIND(A$2:A$7,A10))*B$2:B$7)
Or, a bit more in line of checking each individual value inside your combination:
=SUMPRODUCT(VLOOKUP(FILTERXML("<t><s>"&SUBSTITUTE(A10,CHAR(10),"</s><s>")&"</s></t>","//s"),A$2:B$7,2,0))
I have copied several columns of data with ~85 rows from a webpage system that my company uses. One column of numbers copied over with no issues, but the other (and more important) column contains hidden quotes surrounding the numbers. I cannot change format, nor add the numbers, etc.
I have tried using =value(mid(cell,1,len(cell)-1)) to remove the quotes, and have also tried using substitute, with no success.
Does anyone know of another possible solution to try?
Thanks!
Saw the file as csv format. Close it and reopen in csv. It will show all the hidden quotations. Then use text to column and remove the special characters.
I copied some names from translate.google.com. Then I pasted it on excel (each name in a column).
Now when I want to split it to keep the first name only, it does not work. It seems like excel can't see the space anymore.
I used this code:
=LEFT(R2;SEARCH(" ";R2;1))
You need to use commas (,) to separate your variables in the formula, so like this:
=LEFT(R2,SEARCH(" ",R2,1))
Does that help?
If not, please also post the contents of cell R2.
I have an excel spreadsheet that has two columns. When I choose to save it as a csv file, the comma after the second column is not in place. For example, i get this:
Invoice,SID No.
156106,ELC204R8
156106,WXC2048V
Instead of this:
Invoice,SID No.,
156106,ELC204R8,
156106,WXC2048V,
How to I get the comma in right before the line break?
This as I assume you are aware is not a usual requirement/format for saved CSV file.
To achieve what you are trying to do though, you need to trick Excel into thinking you are exporting a third blank/empty column.
One way to do this is to add the single-quote character ' into a third Excel column before exporting.
I just entered a space into the first 20 rows and that solved the issue.