How Can I Apply Thr PROPER Function To An Entire Sheet
Nov 14, 2007I currently use the PROPER function for one column at a time. How can I apply it to a whole worksheet, preferably without creating new columns?
View 9 RepliesI currently use the PROPER function for one column at a time. How can I apply it to a whole worksheet, preferably without creating new columns?
View 9 RepliesI have a column (A) where there's a date in each cell. Currently it is formatted as category "text". All entries where initially entered as 'yymmdd', but using category "number". Beacause of that all zeros in the year disappeared, so now they are shown as "ymmdd".
Can someone show me/tell me how to convert all these dates from category "text", to category "date", using format "yymmdd"? I have tried again and again and again, but can't make it work. I have attached a sample of the sheet.
I'm trying to apply a VLOOKUP function to my schedule sheet. Attached to this post is a copy of the sheet.
The shifts that I'm entering in B7:AC7 should be looked up in the table located at K21:Q25. I'd like the looked up value to display in B8:AC8.
I have amended the code but it's for columns. I want this formatting for entire row 4 only and not for columns. Because it's disturbing my program if there is any data using ':' sign then the same formatting is applied which I don't want.
[Code] .....
The ':' sign is not changing to bold. I want to bold ':' sign too.
How to amend the code for entire row 4?
Hello, below is a sample of my excel sheet. The number of rows keep changing daily and the Month and year column has to be populated automatically as and when there is a new row inserted. I tried the formula =MONTH(A:A) and I paste it on the entire column. it works for rows with data but I also get 104,000 odd blank rows added to my excel because I pasted the formula on the entire column.
View 7 Replies View Relatedway to put a simple formula in a colum that will apply to the entire column, no matter how many rows without having to physically copy it to the number of rows required?
View 11 Replies View RelatedHow I can apply an IF function for four or more columns. for example: if the value is the same in four or more cells, IF function can type OK, if not something else.
what I am doing is this : =IF(H2=I2=J2=K2=L2,"OK","Not Equal") but I always receive the value"not equal" even when the all cells have the same value. The cells values are found using formula so I did copy and paste value but I received the same result.
i used excel as a calculator but when i needed to make some effort to reach a solution for my problem it let me down, so i will write my problem
i have a record in my data base and i want excel to look if the record is in another range and apply some maths. so i wrote this formula
i want to apply a macro for all sheets that start with "MCC ENTRY" and "MCC EXIT"
i.e. MCC ENTRY 1, MCC ENTRY 2, MCC ENTRY 3, etc. & MCC EXIT 1, MCC EXIT 2, MCC EXIT 3, ETC.
I am creating a series of macros for a workbook, and at the beginning of each macro I unprotect all sheets and at the end of each macro I protect the sheets once more. The issue I am having is that even with these macros in place, I continue to receive an Excel alert message saying:
"The cell or chart that you are trying to change is protected and therefore read-only. To modify a protected cell or chart, first remove protection using the Unprotect Sheet command (Review tab, Changes group). You may be prompted for a password."
The macro will then run. Everything works as it should, but I do not want this error message to pop up. I have tried inserting
Application.DisplayAlerts = False
into the code, but it does not stop the message.
I have a sheet that I want to have a double line border around the outside. Thats easy if there were a set number of rows but in my sheet the number of rows will depend on the size of the rows because of the different amount of information in each cell. So how do I make it print a border around the entire sheet no matter how many rows are in the sheet??
View 9 Replies View Relatedapply a count to a sheet which adjusts when filtered. I have attached a sheet, but as you can see the filter is returning the incorrect count as it is including the rows which are not displyed
View 2 Replies View RelatedI got a problem with a macro i'm working on. I got column D which contains text as "Figures", "Toys", "3DS", "PS3" etc. I also got column N where i need the macro to display "Toys" if it's a toy, figure, etc; or "Games" if it's "PS3", "PS4" etc.
I'm using the following code, to also select only blank rows (so to ignore row 1 which is table header). Problem is that the result shows only "Games".
VB:
Columns("N:N").Select
Selection.SpecialCells(xlCellTypeBlanks).Select
Selection.FormulaR1C1 = "=IF(RC[-9]=""*toys*"",""Toys"",""Games"")"
I have a form that searches in an entire workbook for certain keywords, for example I fill in a last name in the textfield txtName and pus the search command button. As a result I get all the rows of the entire workbook containing this name. There are othre search fields in the form that do similar things...
This is the vba
I'm currently applying these formulae manually, and also instructing other people to do the same, due to my lack of understanding of macros. Hopefully someone can give me some instruction as to how to do this automatically. I'd like people to be able to open sheets sent as normal CSV's and apply a macro to get them into the right format, changing only rows with data in them.
These are the instructions I'm currently sending:
In cell n1 enter:
full phone number
in cell m2 enter:
=RIGHT("00000000" & J2,8)
Drag m2 to last record
In cell n2 enter:
=CONCATENATE(61,I2,M2)
Drag n2 to last record
In cell o1 enter:
Date of call
in cell o2 enter:
=DATE(MID(C2,7,4),LEFT(C2,2),MID(C2,4,2))
My worksheet has 1096 rows of data including headers. I am trying to create dynamic named ranges using the OFFSET function but when I check to see if they are capturing the entire range I see they are not.
Here is my formula:
OFFSET(SiteTrac!$FA$1,0,0,COUNTA(SiteTrac!$FA:$FA),1)
OR
OFFSET(SiteTrac!$FA$1,0,0,COUNTA(SiteTrac!$FA:$FA)-1,1)
OR
OFFSET(SiteTrac!$FA$1,0,0,COUNTA(SiteTrac!$FA:$FA)-1)
OR
OFFSET(SiteTrac!$FA$1,0,0,COUNTA(SiteTrac!$FA:$FA))
I have tried all four but every time it continues to stop on row 409. I have tried to name different columns and they all stop short too.
Passing an entire dimension of an array to a function....
View 13 Replies View Related=IF($A2="","",IF(O$1="","",VLOOKUP($A2,HQA01!$A$24:$AG$525,6,FALSE)))
The above statement works great, but when I try to replace the HQA01 (worksheet name) with a cell reference it doesn't work anymore. I want to point to the cell that has that name of the sheet in it rather than hardcode each sheet name.
=IF($A2="","",IF(O$1="","",VLOOKUP($A2,$Q$1&"!$A$24:$AG$525",6,FALSE)))
When I try the &, or the concatenate function it appears to put quotes around the entire result
I have a sheet (1) of data, a1: e200. In another sheet (2) I want to search for values in column B in sheet (1). I want to import the entire row where the value is. The imported row should always go to ex a10:e10 in sheet(2). Because, in sheet (3) I have this letter who gets data from sheet (2) row a10:d10.
How to do this? I can't get it done without copy/paste.,.
I have a list of projects in several rows and at the column "K" is the status of the project, according to the status of the projects if the status is completed I want cut this entire rows and paste to another sheet calls Projects_Completed by using a macro
with VBA on below mentioned data names in column A on that some names are repeated . That repeated names with amount & doc number should be cuted & and paste in the next sheet ie sheet2 help with VBA ....
View 9 Replies View RelatedI need a command to copy an entire sheet into some variable, in order to paste that variable in the same sheet later, if necessary (classical undo functionality).
Something like:
Private Sub CopySheet()
w = Worksheets("test")
...
...
Worksheets("test") = w 'UNDO if necessary
End Sub
All I want to do is save a copy of one sheet called "Patient Stock Form", change the name to "Patient Order", and put it into an email. But my code is putting the entire workbook into the email. Here's the code:
VB:
Sub EMAILFORM()
Dim oApp As Object ' Outlook.Application
Dim oEmail As Object ' MailItem
[Code]....
I need a formula that finds each instance in shee1 column "L" where the row contains the text "1st" in them. If that criteria is met then the entire row from sheet1 is pasted into sheet2. I would like the rows pasted in order of appearance.
Example:
"L52" in sheet1 contains the text "1st" so the entire row 52 from column [A to COX] would be entered in sheet2 in A3 and the next instance where "1st" appears would be entered in in sheet2 in A4.
Please see the attached spreadsheet for a better explanation of what I'm trying to accomplish.
first_instance.xlsb
I have a workbook that uses Autofilter.
Column A has data. Column B is hidden, has no data, and is empty.
Colmn C has data, on through the rest of the sheet (to Column AB).
Why column B has no data is unimportant for now. It, however, must maintain its existance and cannot be deleted.
When I select the autofilter sort button on column A, it selects only that column, and not the rest of the sheet. Data is subsequently scrambled.
When I unhide the empty column B and select the sort button on column B, it selects the entire sheet. Data remains intact.
When I select the sort button on column C, it selects the rest of the sheet, but not column A (with data), or B (with no data). Data is subsequently scrambled.
This macro clears all the contents of each sheet to which it refers, however, after putting it to use I find that I need it to clear only columns A-G starting at row 10. I am not sure how to modify it to do so though. Actually it would be even better if it would only clear columns A, B, C, E, F, and G.
View 14 Replies View RelatedI have a report that I use everyweek and split up into various sheets according to the criteria.
So if any cell in column C contains "Apple", then I want it copied into a new s/s (with the headers). I basically have to do a number of iterations on this, can someone assist please? The main problem I invisage is asking Excel to copy the row into the new sheet underneath the last one.
I have a range of data in Sheet1- if in column D the cell contains the word "Everyday" I need the entire row to be cut and pasted to Sheet2. Does anyone know of a way in which a macro could do this? I would need the entire row to be cut from Sheet1 and pasted into Sheet2.
View 3 Replies View RelatedI want to copy entire sheet from one workbook to another, my code is failing in this line.
Workbooks(Path).Sheets(i).Copy Destination:=Workbooks(Original).Sheets(i + 1).Range("a2")
Sub Delete()
Dim x As Long
For x = 28 To 8 Step -1
If Range("b" & x) = "" Then _
Range("b" & x).EntireRow.Delete
Next x
End Sub