Highlighting Filtered Columns - Automatically

Jan 23, 2009

I have been trying to find a way to highlight columns that are filtered in Excel. On a laptop it is not always that easy to tell which columns are filtered. I have found a piece of VBA that can do this (see http://www.vbaexpress.com/kb/getarticle.php?kb_id=365).

I would like to do two things:

1. Have this run whenever an autofilter is changed (a new filter chosen or a current filter changed).

2. Have this effective for every workbook that I open.

I'm hoping that someone can help a VBA newbie sort this out.

View 9 Replies


ADVERTISEMENT

Automatically Highlighting A Bar Chart

May 23, 2014

I'm currently writing an automatic report to display information about a store and how it compares to its peers. My company works on a National>Region>Area>Store basis so my report lets a user select a store and the excel file brings back all the data for the relevant national, region and area data for comparison. That works fine.

I now want to develop a set of pages which display data for that store compared to other stores in the same area. For example: [URL]

My report brings back all the stores, ranks them by their performance against target and then puts them in a sorted table using vlookups. I then want to put them into the bar chart shown above, with the store selected highlighted with a different colour. In the example above, the Hunslet store is selected so its bar is highlighted.

Is there any way to make the store highlight automatic? I manually set the colours in the example but I don't want the user to have to do that each time. It would be possible to do using a macro, but I try and avoid them where I can since VBA knowledge is extremely limited in my office.

I have named ranges containing the names and lookup codes for the selected store, area and region .

View 2 Replies View Related

Refresh AutoFilter Automatically When Any Change In Filtered Column

May 27, 2009

I read your reply to the thread below, and used your Worksheet_Calculate routine from it. It only works for the first sheet in my workbook. I have multiple sheets in the workbook, and when I run the routine on an activesheet other than the first sheet in the workbook, it doesnt work.

Is there a way to get this routine to work on a worksheet other than the first one in the book?

View 9 Replies View Related

Highlighting The Row Or Certain Columns When Criteria Is Met

Jun 6, 2006

I need a formula that will highlight the entire Row when the criteria is met.

If Cell In column A = "Management" Then
Rows().Select
Row.Font.Bold = True
End If

If Cell In column A = "Scotia" Then
Rows().Select
With Selection.Interior
.ColorIndex = 6
.Pattern = xlSolid
End With
End If

View 3 Replies View Related

Comparing Two Columns Of Data And Highlighting?

Aug 21, 2014

So I played around with the macro i posted on the previous thread, two allow me to compare two columns of data to see if they contain the same information, and have come up with the below, which works almost flawlessly:

[Code]....

The idea being that it compares the two rows of data, then in the colmun to the right puts a y or n if the data is contained in both cells. I have added in some code that related to highlighting those cells with 'n' in the allow me to see it much easier. The macro works fine, however it seems that when it runs, it will sometimes highlight random cells not in column d, for example colum g etc.

View 5 Replies View Related

Formula For Highlighting Whole Row After Entering A Date In One Of The Columns?

May 21, 2014

how to do the formula for highlighting whole row after entering a date in one of the columns.this spread sheet had over 300 rows so I can't do the conditional formatting, I need a formula for whole spreadsheet.

View 11 Replies View Related

Comparing 2 Columns, Highlighting The Higher Number

Sep 1, 2009

I am trying to do is I have column C and column G. For each row, I want to highlight or change the font color of the greater number. I can do it with conditional formatting, but I am only able to do it for 1 row at a time and it will take forever considering there are over 800 rows.

Is there an easy way to compare the two columns and highlight or change the font color of the higher number in that row?

For example:

C G
4 5
8 1
6 2
9 11

So it would highlight the 5 in the first row, the 8 in the second row, the 6 in the third row, and 11 in the fourth row.

View 3 Replies View Related

Conditional Formatting Of Dates - Highlighting Of Columns

Jul 11, 2006

Well I spent some time yesterday trying to figure this one out. It was only last week that I have taught myself how to use VBA in excel. However this looks like a though one.

Simply what i would like to do is highlight a column of a certain date (till a certain row number) based on a list of dates.

eg. Across the top I have a set of dates and on another sheet i have a list of dates.

I understand that there is a VBA code for such conditional formatting but i can't get my head around it.

View 9 Replies View Related

Excel 2010 :: Compile Reporting Results Automatically With Filtered Database List?

Nov 6, 2012

I am a Microsoft Excel 2010 user and am trying to create a usage report for a website that I work on. I have been compiling the usage reports into one spreadsheet. The columns I use are Month, Device, Language, Title 1, and Title 2. I can filter each of these rows and it shows me the number of records found. Each row on this spread sheet refers to a time that someone selected something on the site. For example the row may say;

Month (filtered)
Device (Filtered)
Lan (filtered)

[Code].....

How do I automatically populate a table on a separate sheet with the number of records found for a certain combination of filters applied. So if I'm looking at monthly trending I want to know how many times the stress test was started in May, June, or July, but automatically using info from the multiple filters.

What is a formula I can use to compile the filtered data from above.

Jan
Feb
Mar
Aprl
May
Start
=formula?

View 4 Replies View Related

Highlighting Lowest Score Without Duplicates Highlighting And Counting Player Skins?

Feb 15, 2013

I found this spreadsheet on here and I have been trying to customize it to what I need. I am trying to have scores from skins match highlighted. I want only the minimum score to be highlighted but if there is another duplicate minimum score I don't want it to highlight anything. I also need to find a way to count the skins won by each player and have it off to the side.

For those not familiar with golf a Skin is a game where you try to get the lowest amount of strokes on a specific hole. Ex- 4 people play the hole one. P1 scores 4, P2 gets a 3, P3 and P4 get 6. The skin would go to P2 who has the lowest score on that hole.

Highlight lowest number in each column not highlighting if there are duplicates starting at L6 down to L11 and for each column till AC. And the same for the group just to the right on attached file.

On row 13 and 14 it tells me who won a skin. I want to tally up the total skins won by each player. so if Joe's names shows up twice on R14 I want it to tell me somewhere in the sheet Joe = 2

View 6 Replies View Related

Copying Filtered Data Columns To New Spreadsheet

Oct 14, 2008

I have a spreadsheet with two tabs (Customer Survey Data) and (Customer Rollup). The data starts on line 5 (headers in rows 1 thru 4) and is found in columns B thru J. In column B I have dates with no blanks. In column C I have customer names - no blanks. In column J is are the customer comments - not all customers made a comment so there are blanks.

I created a macro that autofilters the data to show only those entries within a specific date range (dictated by dates found in L1 and L2 - begin and end dates respectively) by column B (no problem with this). The macro also auto removes all rows where there are no comments (column J = no blanks). This leaves me with only those surveys recieved within a specied date range that have comments.

Here is my problem: the Customer Rollup sheet is the finalized report. I need to copy only the customer names and their comments into the finalized report. The following is the macro I put in which only half works and I have no idea why. It copies the names fine...but then only copies the first comment.

Oh yea...I don't want to copy the WHOLE column...only from the first visible row down to the last. Btw...I put a lot of notes for myself...I capitalized the notes where I think the problem is...Any suggestions on how to fix it or why it just doesnt seem to work like it should?

View 5 Replies View Related

Apply Color Code To Only 3 Columns Of Filtered Range

Oct 7, 2009

The following code filters my sheet to show only values less than 0 in column T, (column 20).

View 5 Replies View Related

Set Range On Filtered Lines And Specific Columns Of Table?

Mar 26, 2013

I have a table which is refreshed from a view on our SQL server. I use a part of this data further on and would like to automate the following: I would like to have a range set which I can use to loop through data. The range should hold the filtered data of table "PremiumTable", the columns "Grouping2", "Price", "Grower"

I have found a couple of posts giving the ability to create a range of visible cells and specific columns, but I wasn't able to combine this yet.

View 2 Replies View Related

Create New Workbooks From Filtered List Then Autofit Columns

Jan 16, 2008

I used the code below to successfully create workbooks from the filtered list using the below code provided on this forum (see link below). The only problem is that I want the resulting columns to fit to width.

Looping Through A Range - Use Result As Criteria In A Filter

View 9 Replies View Related

Excel 2007 :: Automatically Transfer Columns From One Worksheet To Another In Multiple Columns?

May 4, 2013

I would like to take the data from worksheet1 and put into worksheet2 but limit the length of a list (the real spread sheet has over 100 rows and i would like them in 4 sets of 25 versus the example I provided). Is there an array or macro that would make this work (keeping the formatting)..

Excel 2007
B
C
3
Name
Company

[Code].....

View 9 Replies View Related

Groups Columns Automatically

Jan 28, 2010

Is there a macro which would group columns automatically

View 2 Replies View Related

Text To Columns Automatically

Jul 11, 2008

problem i am having is lets say in cell A1 i put this text:

Andy,64,8,12 (which is taken from a drop down list)

Then convert it to columns in rows B&C

When i change the text in A1 to Something else from the drop down menu, the text in rows B&C does not update and stays as ANDY,64,8,12 instead of updating to the new text entered in A1.

how to get the text in rows B&C to update automatically with row A, If it can be done it would hit the nail right on the head as this is holding me back big time.

View 9 Replies View Related

Automatically Hide X Columns

Aug 14, 2008

I am trying to let Excel automatically hide unneeded columns. A brief description:
In this sheet one should enter a number of "projects" into cell DW7 (7,127). The maximum number of projects is 60. Each project consists of 2 columns (with already prepared formats and functions). The projects are numbered from 1 to 60 (the actual project number is in Cell G6 (6,7), I6 (6,9)...).
For this purpose I wrote the following

Sub worksheet_calculate() 'Hide columns that are not needed
Application. ScreenUpdating = False
Dim i As Integer
Dim r As Integer
i = 1
For r = 6 To 126
If Cells(6, r + i) > Cells(7, 127) Then
Columns(r).EntireColumn.Hidden = True
End If

If Cells(6, r + i) <= Cells(7, 127) Then
Columns(r).EntireColumn.Hidden = False
End If..................

View 7 Replies View Related

Automatically Add Blank Columns

May 28, 2007

I import a spreadsheet each month that summarizes expenses. The columns are the months: Col B=Jan, Col C=Feb, etc. I need to add a blank column between each month. Next month the import will have: Jan, Feb, Mar. Then the next will have Jan, Feb, Mar, Apr. macro that would add the blank column between months. Since the spreadsheet columns are growing each month the macro would have to be able to count how many columns to insert.

View 6 Replies View Related

Rearrange Selected Columns Automatically

Jun 21, 2013

Daily I am getting a file which have so many columns with different names. I used to select and move my required columns to separate place. For exp.

I have the file with various columns, such are.

Sales Qty, Year, Tax, Company Code, Discount Paid, Sales Amount, Company Name

The above column order are not constant, daily the order will changes. But we have to make the order as below

Company Name, Company Code, Year, Sales Qty, Sales Amount, Tax, Discount Paid

Like this we have so many columns in the file and we used to rearrange as required.

Any formula or any macro to avoid this manual work with error, so that i will save my time and free from error.

View 2 Replies View Related

Repeat A Formula Automatically Every Seven Columns

Feb 19, 2010

I have a formula that is working, but I want to repeat it every seven columns. I know I can drag it and release it (or drag a few and release them in the appropriate column), but at this point I have so many columns that it's quite cumbersome to do that. Is it possible to create a macro that will automatically repeat the formula in every cell seven columns to the right (the same row for all)?

My formula is in cell K7 is:

=IF(AND(K24<=0%,K24>=-2%,OR(J32="T",J32="F")),1,"FALSE")

Now I want that formula to repeat (with the proper adjustments) for cell R7, i.e.:
=IF(AND(R24<=0%,R24>=-2%,OR(Q32="T",Q32="F")),1,"FALSE")

and then to automatically continue like that for cells Y7, AF7, AM7, and so on.

View 6 Replies View Related

Automatically Create Csv Files From Columns

Apr 9, 2008

I have an excel worksheet with data from A to T and the numbers of rows may change from use to use. I want to create a button/macro that determines where the data ends and will take the data from two columns, say column A and column D and put it in a new csv file.

In my final product, I would really like to be able to have a set of check boxes that say "Column D", "Column E", ... "Column T" and so if I check TWO boxes, say "Column D" and "Column T" and click create, it will output TWO csv files, one with Column A and Column D and the other with Column A and Column T.

View 5 Replies View Related

Automatically Sort Columns Simultaneously

Apr 21, 2008

there are two colums, one for product name (unique names) and other one is for their prices (may be same for more then one product). I want to arrange these columns by the their price vlaues in assesnding/desending order and to have their unique corresponding product names in respective columns. Provide me any solution, probably using any excel formulas. presently i have tried this using Large and Vlookup funstions...but it fails.. when there are same price is available for two product names, then it takes only first one. I WANT TO GET THIS DONE AUTOMATICALLY, AS THIS IS TO BE POPULATED ON SOME OTHER SHEET AS A PARETO. waiting for your vlauable responces ASAP.

View 2 Replies View Related

Automatically Auto-Fit Visible Columns Only

May 9, 2008

In the code below, I found out how to make the column widths automatically adjust on a worksheet based on the text entered. This code works great but it also reveals the hidden columns on the worksheet. Can i prevent it from doing that?

Private Sub Worksheet_Change(ByVal Target As Range)
With Me.Cells
.Columns.AutoFit
End With
End Sub

Found here: Automatically Adjust Row Height & Column Width

View 3 Replies View Related

Automatically Delete (or Hide) Columns In Spreadsheet?

May 15, 2014

how to automatically delete (or hide) columns in a spreadsheet given a list of columns that I want to retain (or see).

These are the columns I want to retain (or see):

Name
1st Phone Number
2nd Phone
Country
Conditions
Email Address
Enrollment Status
Room not available
Roommate
Mailing address
Payment Record
Payment Status
Gender
Requested room type
Total Payments to Date
What is your meal preference?

The attached has two tabs......columns I want to retain (or see) and the raw data of all the columns.

View 1 Replies View Related

Compare The Columns And Pick The Shortest One Automatically

Jan 7, 2009

I have two to four columns with this content: w2s3esus who translated means 9 chars (the number before the letter is the time it appears). I want to compare the columns and pick the shortest one automatically like so:

column 1: w3s4nusun = 12
column 2: w5s2esus = 11
column result: w5s2esus

View 4 Replies View Related

Automatically Copying 9 Rows And Converting To Columns

Dec 17, 2012

I need to take a list of about 1,500 rows of data (single column) and convert it into columns of 9 entries. I know that I can select nine rows and then paste using transpose... But any way of "automating" the process?

So

1
2
3
4
5
6
7
8
9
ETC
ETC

becomes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 etc....

View 5 Replies View Related

Automatically Hide Columns Based On Dates?

Aug 4, 2013

I am trying to automatically hide columns based on dates. I have a set of dates ranging from the beginning of August this year until the end of December 2019. I am trying to hide all columns that are at least a day ahead of the current date. Today on 8/4/13 it would show all columns up until today along with tomorrow 8/5/13.

8/1/2013
8/2/2013
8/3/2013
8/4/2013
8/5/2013

View 2 Replies View Related

Automatically Insert Static Date In Different Columns Of Same Row

Apr 10, 2008

I recently found on this site the macro to auto insert a static date in one column when an entry was made in the previous column.

What I have in my spreadsheet and what I would like to be able to do is if I select a particular Order Status from a drop down list, that it auto inserts the date into the respective columns.

Column F contains the various Order Status indicators ie Order Submitted, PO Raised, Delivered, and Invoice Received.
The date columns that I would like populated and which correspond to those status indicators (in order) are Column G, Column I, Column L, and Column K.
So if I pick Order Submitted, the status date should be auto populated in Column G. If I pick PO Raised, the status date should be auto populated in Column I etc.

View 5 Replies View Related

Moving Columns Automatically When Date Changes Business Days Only

Aug 7, 2012

I would like to move columns to the right as the date changes. For example, the top of the column has the current date. Within the column are about 40 rows of data. as the date changes, I would like that column to automatically move to the right and show that column with yesterday's date, and have that data associated along with it moved. I am looking for 6 months of columns to store, with the current date in the first column and subsequently moving right with the previous dates and info.

------------------------------------------------------------------------------------------------
August 7, 2012 | August 6, 2012 | August 5, 2012 | August 4, 2012 | August 3, 2012
------------------------------------------------------------------------------------------------
Accepted Processed Accepted
Rejected Accepted
Processed Processed
...
and so on

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved