I have a table that is updated monthly with formulas. Each month, a different column has the Total in it, I want to be able to automatically highlight the column that has the word "Total" in the first cell of the column. Any help is appreciated!
If you select the entire sheet (click the bit in the upper left hand corner of the page - above the 1 and left of the A) and make a conditional formatting rule like this it will highlight any column where the first cell in the column is the word Total
Related
I have a dates mentioned in column 'W'. The date is reflecting as 15-Feb-2017 and when I double click the cell or see the values in formula bar, it reflects as 2/15/2017. How can I fix it.
If you can, in another column use this formula to convert an excel date to text format:
Assuming that the first date starts in row 1, otherwise change as needed:
=TEXT(W1,"dd-mmm-yyyy")
Auto fill the rest of the column, by dragging down from the bottom right hand side of that cell to fill the column to the last row.
If you want, you can then copy this column and paste it back over the original column, pasting it as values.
I need your assistance with Excel. I have the following columns on my worksheet
EmployeeNumber, EmployeeName, SalesID,Email, EmployeeNumberID.
The EmployeeNumber and EmployeeNumberID columns are the key columns as these contain the employee number. The problem is that EmployeeNumber contains all employees from different departments and EmployeeNumberID contains employee from the Sales department.
Could you please assist with highlighting the EmployeeNumber that are not in the EmployeeNumberID column, if we could highlight the entire row that would be great.
Mnay Thanks
Assuming your data is layed out as per the image below, select the range from A2 to E9 and ensure that the upper left cell A2 is your active cell. Notice in the image the active cell has a light background compared to the grey background of the rest of the selected range.
Then go to your HOME ribbon and select conditional formatting.
From the drop down menu that appears select New Rule.
In the New Formatting Rule window that appears select "Use a formula to determine which cells to format" at the bottom of the list. Then click to format button and chose whatever formatting you want to have applied. I would recommend the Fill tab and then select a colour.
Enter the following logical check in the "Format values where this formula is true:" box:
=COUNTIF($E$2:$E$9,$A2)=0
It will count the number of times Employee number in column A occurs in Column E. It will then check to see if that count is zero meaning its not in column or not part of the sales team, and apply the formatting you selected early to all cells in the row from A to E. If you only want to colour cells in column A then select A2:A9 as your initial selection area for applying conditional formatting to. The equation should not need to change.
Proof of Concept
You just need some conditional formatting. Select the area you want to apply the highlighting to, lets say A:E, then use conditional formatting with the following formula:
=ISNA(MATCH($A1,$E:$E,0))
assuming EmployeeNumber is in column A and EmployeeNumberID is in column E.
What this does is tries to match the EmployeeNumber to a value in column E. If it fails, then it will return #N/A and ISNA will return TRUE and the row will be highlighted.
Note that $A1 should be the top left cell in the range you are formatting. If you start lower, adjust the cell accordingly.
I have a 1600-2000 rows of data in a spreadsheet that changes daily. I would like to highlight any row that contains such as 000000000000053851 in the R column. I had tried conditional formatting using this formula:
=OR($R1="000000000000549543",$R1="000000000000267294,$R1="000000000000053851")
but it seems to highlight a few rows that are blank in column R also.
Using the same numbers highlighted in column R, I would like to have an alternate number and possibly other data pasted into the corresponding row in column S. Each number has a unique alternate number and data to go along with it. This is how I picture a line may look with the highlighting and alternate data next to it:
I intend to record a macro using a few of the different steps that are likely required to do this. Any way, whether conditional formatting or an array formula, would be great to help with this.
For the sample provided, a CF rule of:
=LEFT(R1,12)="000000000000"
applied to ColumnR will format the sample and if you wish the cell immediately to the right. It will not highlight blank cells.
HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true:, enter formula from above and Format... with Fill red, OK, OK.
If you want the cell to the right to be formatted also, select ColumnsR:S instead of just ColumnR and change R1 in the formula to $R1.
For the cell to the right you provide few details but VLOOKUP in conjunction with a two-column table should suit. Column on the left being the ColumnR value, with the right-hand column for the same row the ColumnS value required. This table could be placed almost anywhere.
This could all be done with Record Macro.
Is there a way for Conditional Formatting in Excel to refer to a whole column from the original reference column?
For example, i want the E column to refer to the C column such that if the dates in the E column are 2 days after the dates in the E column, it will turn green. And i want to be able to do this as fast as possible.
The problem is that right now even if the function would just be the same for the E to C column at each row, i have to do it one by one. Is there anyway to match the whole E column to the C column?
Thanks!
You can use conditional format on the first cell in the column, and use the format painter to copy it to the rest of the column. Use a formula like '=B1=A1+2' as condition for the first cell. Make sure there are no dollarsigns in the formula!
Alternatively, you could use manage rules to apply them to a range. Have a look at the pictures below. I cannot post them here because I have not enough credits yet :-)
http://i.stack.imgur.com/FA3o9.jpg
http://i.stack.imgur.com/qYcvQ.jpg
There is a function called auto fill in Excel. The auto fill function makes it possible to automatically fill in your function in a whole column with just a few clicks.
link to tutorial
Example of auto fill:
Enter 1 in cell A1
Write =(A1+1) in cell A2
Select cell range A2:A10
Click on "Fill" in the ribbon (see image)
Select Down
Now there is numbers 1-10 in columns A1:A10
You may use this feature to add cells with your function in a whole column.
I need a formula that is beyond me and my Excel skills, I need to insert the number of times a match is found in column A into column C and then insert the total number of days for that person in column D. Can anyone help?
In cell C2:
=COUNTIF(A$2:A$6,A2)
In cell D2:
=SUMIF(A$2:A$6,A2,B$2:B$6)
See also:
COUNTIF
SUMIF
Have you considered using a pivot table? It's a little bit overkill but greatly simplifies what you want to do. Assuming your using Excel 2007:
Select the range of data including column labels.
Go to Insert->[Tables]->PivotTable.
In the dialog box that appears, select Existing Worksheet, choose a cell a click OK.
At this point, the PivotTable pane appears with your field names in one box and four other labeled boxes below.
Drag Name to the Row Labels box.
Drag Name to the Values box.
Drag Days to the Values box.
You're done!