Hide Lines Containing Certain Text
May 2, 2008
I have an automated formula which i have to fill down to line 250, yet in the majority of cases i only need it to say line 20, and as a result i have loads of lines stating "Not Found" has anyone got a way to hide any lines containing either "Not Found" or a blank cell??
View 9 Replies
ADVERTISEMENT
Mar 11, 2014
I have a file sheet named "ratio summary." The data to this is linked to a number of different working sheets (not in the attachment for obvious reasons)
Currently the data in the ratio summary is grouped by year but "open" and the Graph worksheet is automatically linked to the data in row11.
However when I group the data by year (i.e. clicking the "-" figure) the graph also changes.
I haven't deleted the data so don't understand why the graph data is changing.
excel graph help.xls
View 3 Replies
View Related
Dec 17, 2008
I have a series of cells, each having multiple lines of text within separated by hard return breaks. For example, cell A1 has the following text:
John Smith
123 Main St.
New York, NY
I want to extract line 1 into cell B1, line 2 into cell C1, and line 3 into cell D1.
Is this possible without VBA or Macros? I'm using Excel 2008 for Mac OSX so that's not an option.
View 9 Replies
View Related
Sep 24, 2013
I need to do in excel, clean same lines and text to columns.
In the 1fs sheet "Sheet1" is the file I need to clean same lines and text to columns;
In the 2sd sheet "final" is the result I need in the end of the clean lines and text to columns;
View 6 Replies
View Related
Sep 7, 2009
I'm writing a macro in excel that edits a text file runs another program that uses this text file as its input and then stores the results. Perameters are then changed in the input file and it is then repeted over and over again. One of the parts I am stuck on is I need to delete the last 5 lines in the input file called INPfile.txt. See below:............
This section is always at the end of the file, is 5 lines long and always starts with [DEMANDS] and always ends with [END].
View 2 Replies
View Related
Jul 21, 2006
Is there a way to make the CONCATENATE formula put all the text on different lines? It keeps combining some on the same lines and I want them all on separate - like a list.
View 13 Replies
View Related
Oct 23, 2008
In column A I have product names, in B I have product categories and in C:H the product categories from column B are titles and the name of the subcategory is written in the cell. Because there are mutlipule sub categories that a product can belong to the report produces mirrored lines with one sub category on each line. What I need to do is combine all of these subcategory entries into one cell separated by a comer (,).
View 2 Replies
View Related
Jul 12, 2013
Is it possible to limit a text box to 6 lines (whether forced or automatically wrapped).
View 2 Replies
View Related
Aug 2, 2008
I currently have some code which reads a stock file, adding up the stock for each individual item (which may be in one or more locations in the warehouse) and then placing the total stock count in a cell with the detail (of how much stock is in each location, the location and the expiry date) and a separate line for each location, in a comment.
The comment is constructed one line at a time as the code finds the stock records, see code below:
With shtWorking.Range(strStartColumn & intRow + 2)
oldComment = .Comment.Text
.Comment.Delete
.AddComment oldComment & vbNewLine & strComment
.Comment.Shape.TextFrame.AutoSize = True
End With
All this works very nicely, but I want to colour individual lines depending on the expiry date. This can be done manually in Excel, but I cannot find a way of colouring individual lines of text in a comment using VBA.
So, does anyone know of a way I can colour individual lines of text in a comment, using VBA?
View 9 Replies
View Related
May 23, 2006
I have checked the forum about reading from text files, but I wasn't able to find and similar thread. Here is the situation: I have one text file, but first 204 characters are the file header. 204. character is an asterisk. Then, the records begin. Following is the beginning of the file:
$$GNCSBU/PML/0002 TCPX 11006 IST Bayplan 23.05.06 14:35:57 TRIST 11006 *
And it continues:.....................
View 2 Replies
View Related
Oct 27, 2006
For the following formula:
=”TEXT1”&”TEXT2”
The result is:
TEXT1TEXT2
Is there any kind of modifier that I can use to force the output to multiple lines, i.e.:
TEXT1
TEXT2
If this wasn’t a formula I could just use ALT+ENTER. Wrapping the text will not work because I need fixed break points not dependent on the text box width.
View 5 Replies
View Related
Jan 10, 2007
I have a cell containing a address. I have used alt-enter to separate lines of the address. I have a userform that contains a textbox which which loads the cell containing the address. The problem is once the useform is loaded the address in the textbox is all on the same line and contains a funny looking back the front P character where I have used alt-enter in the cell to make a new line. This ones got me knackered.
View 2 Replies
View Related
Jul 24, 2014
I am trying to cut and paste from a PDF document into excel and a grab of text when pasted sits in three boxes instead of one. How can I manage this?
View 9 Replies
View Related
Apr 22, 2007
I need to extract lines in a huge text file (more than 300,000 records ) based on one condition. for e.g.
02/03/07 123456789 hsjksk sjdlsl
05/03/07 323453789 hsjksk sjdlsl
04/03/07 123456789 hsjksk sjdlsl
02/03/07 123456789 hsjksk sjdlsl
I need extract of lines where the date and the digits are the same. in above example it should extract only record line 1 and record line 4. Some body advised me to try MSAccess , but I have never used MS Access and have no clue about it , hence i don't want to use it. Is there a way in VBA to code this ?
View 9 Replies
View Related
Aug 3, 2007
I have 5 columns. The first 4 columns only contain 1 line each, the last column can contain anywhere from 1-6 lines. How can I do a sort and keep all the text in the last column together? By way, it was imputed on separate lines.
View 9 Replies
View Related
Aug 7, 2008
I have to extact a HUGE (100MEG) .TAB file into Excel 2003. Using the 'import text' fundction it only allows me to import the frst 66536 lines and tells me that I can import the rest by repeating the process, somehow excluding what I have already imported.
View 9 Replies
View Related
Jun 26, 2007
i try to input an txt into a excel spreadsheet, how do skip to certain lines or number? for example if the txt is like
1,2,3,4,5,6,7,8
and i want the excel sheet to start at the the third number
3
4
5
6
7
8
View 8 Replies
View Related
Sep 12, 2007
How can I break this onto 3 lines in Visual Basic Editior to make it more readable:
MsgBox "Only enter data in white cells." & vbNewLine & "Yellow cells contain formulas or dates entered automatically", &
vbNewLine & "Do not insert blank rows. Copy row(s) and Insert/Paste" , vbInformation, "Spreadsheet by GJF"
View 4 Replies
View Related
Apr 23, 2008
I have a several large delimited text files around 800,000+ lines. It cannot all be pasted into excel due to the 65,000 line limit. For my purposes, I only need about 1 in every 1,000 lines from the text file anyways. Is there a way to only bring in the lines I want? Here is the test file layout:.................
I only need the lines that start:
"01","001","------"
I tried running some macros that I found through searching the forums, but I couldn't get any to work.
View 3 Replies
View Related
Jan 8, 2009
where I am needing to import a file sent daily by a third party, that has now grown to be greater than 65536 lines. It contains cumulative data from the past year or two, but although we only need the LAST few thousand lines, the third party are unable to provide us with a smaller file.
The file is currently imported from file into Excel using VBA, and then various manupilations are done using VBA to extract the data we need. However because of the size the file now has grown to, the user has to open the text file in wordpad(or notepad) first and delete the first 'few' thousand lines before saving to file.
Is there a way of importing only a certain number of lines from this text file, for example the last 30,000, using VBA. If so, all our problems will be solved (this time)
View 9 Replies
View Related
Jun 18, 2009
I have many text files basically with the same data from different dates. I am trying to select specific lines from each text, one that includes ".txt" which is the date, ex: "2008_308" and one that includes the word "PIXEL" and the following 5 lines after that.
I found a very similar post to mine and someone provided the script using VB for the question. It works, but it was only for one text file. I would like to use it for multiple text files. The files are all dated, i.e. "2008_308.txt". Although some of the dates are missing.
This is the script, from another posting, for importing selective lines from one text file:
Sub test()
Dim fn As String, txt As String, delim As String, a() As String
Dim i As Long, ii As Long, iii As Long, n As Long, x, y
fn = "c: est.txt" ' ©Change here (File Path)
delim = vbTab ' ©Change here (delimiter)
temp = CreateObject("Scripting.FileSystemObject").OpenTextFile(fn).ReadAll
x = Split(temp, vbCrLf)
ReDim a(1 To UBound(x) + 1, 1 To 100)
For i = 0 To UBound(x)
If InStr(1, x(i), "txt", 1) > 0 Then
n = n + 1 : y = Split(x(i), delim)
For ii = 0 To UBound(y)
a(n, ii + 1) = y(ii)..........................
View 9 Replies
View Related
Jun 11, 2008
I need to count the number of Carriage returns in a string of text in a group of merged cells also I need to add a carriage return after the 1024 character because I have the wrap text on. My overall goal is have copy text fit into a group of merged cells without any being cut off by excel.
View 4 Replies
View Related
May 11, 2008
I load an text file into an excel sheet and after some eventually changes I save (overwrite) it back into the text file again. Now the text file has become a file with 50 pages (49 empty pages). How can I avoid this or how can I set an EOF when no more written lines follows. The code for saving the excel sheet is this:
Application. ScreenUpdating = False
Application.DisplayAlerts = False
Sheets(wsImport).Select
Sheets(wsImport).copy
ActiveWorkbook.SaveAs FileName:=WorkFolder & WorkFile, _
FileFormat:=xlText, CreateBackup:=False
ActiveWorkbook.Close
'ThisWorkbook.Activate
Sheets(wsKwartaal).Activate
View 6 Replies
View Related
Apr 10, 2014
I have around 50 text files with similar design per attached file. I need to import the text files with criteria below:-
1. include file name
2. let user choose the folder
3. exclude data from "work in process summary" to "work in process cost totals"
4. only have one title in the excel files which all text files is combined "Item, Line ....."
5. If the text files do not have title like "Item, Line, ..." do not import
Is it possible to have all criteria listed above by running a macro?
A.txt
View 1 Replies
View Related
Jan 19, 2010
After doing some searching I found a macro here which imports multiple text files into one workbook, keeping each text file as a seperate worksheet, each worksheet named the same as the original file name (minus the .txt extension).
However, it adds a blank line between each line of text. So I get this:
Pinging 172.27.133.29 with 32 bytes of data:
Reply from 172.27.133.29: bytes=32 time=232ms TTL=62
Reply from 172.27.133.29: bytes=32 time=62ms TTL=62
Reply from 172.27.133.29: bytes=32 time=65ms TTL=62
instead of this:........
Pinging 172.27.133.29 with 32 bytes of data:
Reply from 172.27.133.29: bytes=32 time=232ms TTL=62
Reply from 172.27.133.29: bytes=32 time=62ms TTL=62
Reply from 172.27.133.29: bytes=32 time=65ms TTL=62
This doesn't happen when I use the import wizard, or when I just open the file from the File -> Open menu.
My text files are always the same format (number of lines, etc.), so it's easy to delimit and insert forumlae as needed, but those extra lines are breaking a macro I've previously written to parse the data.
View 9 Replies
View Related
Feb 11, 2014
Is is possible to hide a text box?
View 3 Replies
View Related
Feb 5, 2010
i want to browse a text file with 10 textual lines and rewrite the contents in the same file (starting from line number 11) from bottom to top.
View 9 Replies
View Related
Feb 13, 2013
I am trying to hide/display text by using form fields. I swiped the idea from a spreadsheet I obtained from a vendor and thought I would extend it to suit my purpose.
When I check the box for "table one", I'd like for the data that I have associated with it to display. When I uncheck the box, I would like for that data to be hidden. The goal is to be able to choose one data source and see at a glance which fields come from that source and what their names are. The formulas that currently exist for the cells in column I do a nice job of putting text in a field when the box is checked, but I don't want to have to rewrite the formula in the cell if/when the source of the data changes. It's a lot of long schema/table/field names. Maybe that's the only way, though...
I scrubbed and mocked up column J to try to demonstrate. It's sorta color coded.
And it might be that using form fields is not the best way to hide/display text based on source type.
View 2 Replies
View Related
Mar 30, 2014
get my code to work.
I have a sheet with a dropdown box in cell "J1" which is meant as a 'Show only rows containing this value'.
Column Q, from row 3 downward has a pick box which lists the same values as the "J1" drop down box, but uses code to combine whats chosen with commas. An example of what is in a cell in column Q is "SeaHawk, BlackHawk, Squirrel, MRH", where cell J1 would be either "SeaHawk" or "MRH" or something completely different.
I need to only show rows, with text in column Q containing the smae text as J1.
View 8 Replies
View Related
Jan 23, 2010
share a macro to copy cells from range C20:C300 and paste them in C2 on multiple lines. If possible two lines gap between each cell's value when they are pasted in C2.
View 9 Replies
View Related