The solution can be either in VBA or conditional formatting, if possible.I have product names on column A and weeks as from column B where I have the quantity sold. So, every week I'll have an additional column.
A B C D E ...
Product Week1 Week2 Week3 Week4...
What I need:
If the cell is filled, highlight it in green.
If the gap (empty cells) between weeks is =1, highlight it in yellow
If the gap (empty cells) between weeks is >1 but <2, highlight it in orange
If the gap (empty cells) between weeks is >2, highlight it in red
The attached example better illustrates the needs : Example.xlsx‎
Is there a formula to count gaps? If you see the sheet below, I want to count maximum gaps in range A1:J12 and put that count in column L.
******** ******************** ************************************************************************>Microsoft Excel - Book2___Running: 11.0 : OS = Windows XP (F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp (A)boutL12=ABCDEFGHIJKL1X XX XXX 22X X X 33 X X 64X X 85X X X X 26 X X 47 X X 48 X X 59 X X 610 1011 X X X X X 112X 9Sheet1 [HtmlMaker 2.42]
To see the formula in the cells just click on the cells hyperlink or click the Name box. DO NOT QUOTE THIS TABLE IMAGE ON SAME PAGE! OTHEWISE, ERROR OF JavaScript OCCUR.
remove gaps for missing values in my column chart. I have tried to adjust series overlap and gap width, but the missing values are still showing as gaps. I have attached the sheet
I have a load of postcodes over 8 different tabs, the problem is the format of the postcode is wrong. I basically need to delete the first gap of each cell to make the postcode valid -
I have what is probably a simple problem for most, but can't figure out what to do.
In the sample sheet attached, I have times in column E, and an action describing what has happened in column G. What I want to do is calculate the length of time between an opening action and closing one, but don't know how to go about it, as there can be an empty cell(and sometimes more) between each open and close.
I’m trying to assign building and office keys to various personnel, by appointing different classification levels to each set of keys given out. Very similar in the way an administrator would assign permission levels to individuals.
Question: •Is there a way to pick up an array of non-sequential numbers from one sheet (values 1 -36) •Find those values which are assigned to columns laid out as a table, •Then highlight those found values
I’ve attached a dummy sheet to illustrate my question.
I have not attempted coding this because I wouldn’t know where to start. Theoretically is this even possible?
I would like to know of a macro that can compare each two cells(start from E2 and compare with E3)to see if the values are NOT equal.
If they are equal, do nothing and if they are NOT, highlight the value.
Example: compare E2&E3, E4,E5,E6,E7,.... if for example E2&E3, E4,E5,E6,E7,.... each hat same string, do nothing, but if they were not the same highlight it with red.
This code checks two cells and highlights one cell when there is duplicate, I like the opposite one, but don't know what to change!
Code:
Sub CompareCells() Dim r As Range, cell As Range Range ("E2", Range("E" & Rows.Count).End(xlUp)).Name = ("MyRange") Range("MyRange").Select ' clear all colors from selection Selection.Interior.ColorIndex = xlNone ' loop through cells and compare Set r = Selection Set r = Selection.Resize(r.Rows.Count + 1) For Each cell In r If cell.Offset(1, 0).Value cell.Value Then cell.Offset(1, 0).Interior.ColorIndex = 3 End If Next End Sub
I'm trying to develop a new daily timesheet for my production workers, where non-production items are recorded in 15 minute intervals. The user would put in "Clock in" by the corresponding time, and the same for "Clock out" at the end of the day. Any non-production items will be type in next to their appropriate time. Since clock in and clock out times will vary, I need to set up a formula that searches the array of cells for the day, finds the "Clock in" and "Clock out" values, and counts any blank cells in between them. Basically the blank cells will equal production time, and the result of the Count function will be multiplied by 0.25 to get the hours.
I am having a very difficult time finding a way to set the "Clock in" and "Clock out" cells as the range for the Count function, because it won't always be the same cells. What would be the best way to automatically have excel find the cells containing these values and set them as the range criteria for a Count function?
The formula at the bottom was one of my initial attempts, but it didn't work. I took out the '=' for the screenshot, so that wasn't the problem.
I want a unique count of sequences in a different for that class only if that particular row in 'A' or 'B' is populated. The result set should be as follows:
[TABLE] ClassAB 1032 1511 2012 [/TABLE] Can this be achieved through a formula?
After I filter for values in Columns(C), I want to count values in Columns(D). When I filter data, I noticed I can manually select the filtered cell range (i.e. Columns(D)) and at the bottom in the Status Bar it will give the correct count. If I cursor over that status bar count it will display "Number of selected cells that contain data." However, I cannot seem to figure out how to get vba to select just the filtered cells selected in that range and count them only and correctly... it instead counts all the values to the last cell in the filtered range.
For example 1) let's say I have a Range("D1:D120') and there are 20 cells containing data in that range.
2) I filter Columns(C) resulting in 10 rows and the rows are 2, 3, 20, 22, 27, 30, 37, 41, 56, 60. Of those 10 rows, there are only 2 cells containing data (let's say cell D20 and cell D37).
3) Now in reality, cells in Range("D2:D60") actually contain 10 cells with values, but since we filtered on columns(C) values... Columns(D) only shows 2 values.
...... here is my problem: 4) If I manually select the filtered range, the status bar "Count" value will correctly sum as "2." But if I code VBA or even "Record a macro code" (obviously incorreclty on my part), it will return a value of 10 for the range of D2:D60 and not on the visible filtered value which is "2."
I need a way to find a value in a column which has one or more corresponding values in an adjacent column. Then take all of the corresponding values found and count all occurrences of the found values in another column. But I only want to count the entries if an adjacent column is not blank.
Not the easiest thing to describe. Starting to wonder if I need to think in reverse. I hope the attached example makes more sense.
I have a column with (potentially) multiple values in, heres an example:
Marketing Specialism
Commercial, Multi-channel, Loyalty/Retention
Analytics, Partner
Analytics
Commercial, Analytics, Segment
[code]....
What I need to be able to do is count (and then chart) the number of each value, irrelevant of whether it appears with another value in a cell. e.g.
Analytics, Parter - Would count 1 Analytics and 1 Partner Analytics - Would count 1 Analytics
I know there is a formula where I can specify the value to count, but as the column has so many different values I would have to write a formula with each separate value, this would take a long time.
I have 10 columns and 18 rows. Every 2nd row might contain a number. I need to sum those numbers, however, sometimes group of cells in a row can be merged and i value of a cell is then 0.
example:
A1 to D1 merged; value 6 A3 to B3 merged; value 3 B5 to E5 merged; value 2
=sum(A1,A3, A5) would return 9 - correct =sum(B1,B3, B5) would return 2 - should be 11? =sum(C1, C3, C5) would return 0 - should be 8? =sum(D1,D3, D5) would return 0 - should be 8? =sum(E1, E3, E5) would return 0 - should be 2?
In what would be Cell E2 I want to post the Total posted set Assuming that the Order Numbers and the OP Numbers are the Same, but only if there is a value in the allowed set, So I'd expect E2 in the case below to read 1.83,
Order No OP Posted Set Allowed Set 30761157 00100.731.500 3076115700100.500.000 3076115700100.600.000 3076461000100.000.000 3076461000101.050.500 3076524400100.000.000 3076524400100.550.500 3076639600100.000.000 3076639600101.180.500 3076810900100.000.000 3076862900100.000.000 3076862900100.000.000 3076862900100.000.000
I'm attempting to count the empty cells in column C which correspond with the project reference shown in column A. I only want to perform this calculation where the project numbers change (see desired results in column D).
Am struggling with finding a way to define the different range of rows for each project ref within the formula. The full sheet has over 6000 rows and 1500 project refs.
I am trying to teach myself something new, say I have a list of numbers in two rows and I want to count the numbers and have it tell me if there are duplicates and highlight the duplicates. I got the part about getting Excel to tell me if there are duplicates but I can not seem to figure out the conditional formating part. I uploaded a sheet.
I have some 82,875 rows of data in column A is a string, in column B is a timestamp sorted in order.
I would like to run a macro that counts the first 80 of the same timestamp and highlights the remainder, doing this for every timestamp.
The timestamp is in the following format; Feb 16 15:33:02 +0000 2014
So for example you would take the first 80 with this timestamp and highlight the rest with that timestamp, and do the same for all other unique timestamps.
If I minus H is less that 90 count as 1. But if I minus H is greater than 90 count as one but highlight the row on the speadsheet in yellow.
What I am doing is I have a list of about 3000 entrys and I need to determine if (I minus H is greater or less than 90). I then need to count how many times out of the 3000 entrys each entry is greater or less than 90 and highlight the entrys in yellow that are greater than 90.
It would be ideal to determine the difference between I minus H and then categorize the findings of the 3000 entrys to see how many were say 59 and how many were 47 and how many were 92 etc. I have never seen a forumla highlight a entry based on count if. I am currently rapidly searching the forums here but to no avail.
I'm having a problem with a list that I've created. The list is in cell A1, the base data for the list is in the range B1:B50. The problem is that data in this range is dynamic, i.e. it has formulas and depending on the result of these formulae the cells in the range either have a value or the cell is left blank. The problem this causes is that the list ends up having gaps in it because it uses blank cells as well. And this is despite me specifcally ticking " Ignore Blank " in the Data Validation menu where I'm creating the list.
I have 100,000 lines of data and an trying to highlight values in column B based on those in column A.
For example if 1 appears in A then several times in B then it should highlight each instance in B where it appears in B. However is 2 appears twice in B - but not in A - then it should not highlight any cel.
Column A is the criteria list I think there are 140 unique values.
Column B is the data I need highlighted there are around 100,000 rows. In there values from column A appear multiple times. I need all of the multiples in B - where they match a value from column A - highlighted.
I have around 2368 rows for in each column and I have around 8 columns and what I need to do is to remove any gaps. I do not know how to attach picture here, but I can explaining it in words.
A1: 0.9 A2: A3: A4: A5: -0.09 A6: A7: 0.4
Is there a way to eliminate those gaps (A2, A3, A4, A6...) in one go?
I have a problem ranking a large dataset(more than 30000 rows, 16 different columns need to be ranked). My problem is that I dont want the ranks to have gaps when there are ties.
See how it should be in table below.
Ext P$ Rank Should be 2,128.34 1 1
[Code]...
I do have a working solution with an array formula similar to this, but it slows down my macro (30 minutes instead of 10 seconds) as I need it to calculate 16 times
I'm wanting to do is drag a formula down and it drop to the next cell rather than the same row number I'm on. For example I'm trying to concatenate a list of phrases whilst changing the main word. Here's an example of the excel sheet
Base Terms Phrase Result car red van blue bus red blue
There is meant to be a space after the second red and blue enabling me to make (in order), red car, blue car, car red, car blue
How can I make it so I've done the relevant concatenate formulas for A2 with the B column and simply drag it down and Excel will switch from A2 to A3 and so on when I've dragged out the 4 formulas?
I have a file that contains addresses in column C. I need to find any gaps in addresses.
Ex: 211 Corbin Dr 213 Corbin Drive 214 Corbin Drive 123 Apple Drive 124 Apple Dr 124 Apple Dr 127 Apple Drive
I want to identify that there is a gap between 211 Corbin and 213 Corbin and 124 and 127 Apple Drive.
Currently the address including house number are in column c. However, I split the house number into a separate column and the street address in yet another column. There are also duplicates which I have identified by using conditional formatting to highlight the duplicates.