First time asking a question and very new to VBA code. I'm trying to write VBA code to highlight when dates overlap across a range of cells based on a unique identifier. Here is an example of the code:
Basically i'm looking to compare the dates associated with the first unique identifier (1234 - which is three rows), highlight whether any dates are overlapping and then move to the next unique identifier (5678) and do the same.
Hope this is clear. Any help is appreciated.
CiarĂ¡n
welcome to SO!
You did forget to include the VBA you already wrote yourself, as that would help people here helping you (and this is not a free coding service platform ;)). Secondly, you could do that without VBA, just using the COUNTIFS formula and conditional formatting. For that solution, see e.g. this tutorial on COUNTIFS: https://exceljet.net/excel-functions/excel-countifs-function and this one on conditional formatting: https://exceljet.net/conditional-formatting-with-formulas
Related
I would first like to apologize if this question has already been posted and answered numerous times but I was unable to find the right wording for my question to find a thread that matched.
I have a Sumproduct formula with multiple criteria that helps identify the number of issues I have on the main spread sheet. I got the number of issues, however now I would like to identify the cells meeting this criteria. Is there any way to do this?
To further explain my intention, the main tab on my spread sheet is a report with many different columns that would need to be filtered several different ways each time in order to catch the exceptions we are looking for. I am trying to avoid this manual process by creating a new tab to show these exceptions without having to look for them and leave cause for any user/human error where something could potentially be missed. In a new tab, I used several formulas (like the one below) to determine the number of different exceptions we need to catch, however I am wondering if there is a way to also identify these specific cells that the exceptions fall in so that the user can immediately locate and correct it.
For example: 2 issues identified; B10 and B26. (Or more specifically, if possible, the contents of that given cell?)
Sumproduct:
=SUMPRODUCT(--(May!C2:C452="FHA"),--(May!Z2:Z452<>""),--(May!AB2:AB452<>""),--(May!AC2:AC452=""))
Note: I have also tried to achieve this by using conditional formatting using the formula above, however the issue that I run into with that approach is that the entire row gets highlighted instead of the specific cells matching the criteria from the formula. I am open to a solution with this as well if it is an easier approach.
I hope I am getting across what I am trying to do! Thank you in advance to whomever can help!
Consider adding an additional column to the May worksheet. The new column would contain formulas like:
=(C2="FHA")*(Z2<>"")*(AB2<>"")*(AC2="")
If you AutoFilter on this new column, you will see all the contributors to the SUMPRODUCT() formula.
Your 2 issues identified; B10 and B26 appears to refer to cells that have no bearing on what you seek to achieve so I may have misunderstood but suggest selecting A:AC and applying a CF formula rule of:
=AND($C1="FHA",$Z1<>"",$AB1<>"",$AC1="",OR(COLUMN()=3,COLUMN()=26,COLUMN()=28,COLUMN()=29))
I'm new to Excel (which I now use for work) and just learning how to implement custom formulas. I'm asking this question specifically in regards to Google Sheets but I tagged Excel in case it also applies there.
I can't share the exact sheet in question because of sensitive information, but I wanted to write a formula that would highlight any row based on whether its cell in column A contained a phrase, such as "apple". So if A2 is "applesauce", A3 is "apples and oranges", and A4 is "sapplease", they should all be highlighted.
I selected my range and wrote this formula in Conditional Formatting > Custom rule is... : =$A2="* apple*" (no space) which did not work.
I found another solution online and used this formula: =FIND("apple", $A:$A) which did work.
Now I am just wondering if someone can explain why the first formula did not work - I've only used wildcards on Excel before, do they not work on Sheets? Or was there something else I was doing wrong?
So far have not been able to find answers with a simple Google search, which is why I posted here - thank you to anyone who can help!
=SEARCH("apple",$A2)
Apply to
A2:Z
While Excel and Google Sheets have several similar features there are many that that are not available in the other by the other hand the support of wildcards occur in few functions/features but not in all.
In this case conditional formatting on both applications don't support the use wildcards in the form that you intended
=$A2="* apple*"
The logic is that value of $A2 is being compared with "* apple*" on which * is a character as any other, not a wildcard.
Related Q&A
Excel: Wildcard Conditional Formatting
MS Excel wildcard lookup
According this, there are only a limited number of Excel functions that accept wildcards, of which = is not one.
I can't seem to nail this down. Using Excel 2010 I've got a column (B) with various 'signals' that each have a sequential number. i.e. 'IP1', IP2', IP3', 'FLOW1', 'FLOW2', 'GV1', 'GV2", and so on... I'm trying to highlight the entire row based on the type of signal (IP, FLOW, GV, etc.) ignoring the sequential value.
Using the CF highlight rule for "text that Contains" only highlights the individual cell. Using this formula to highlight the entire row: =$B2="IP" does not give desired results because all my values have a number as well. I've also tried wildcards: =$B2="IP?" and =$B2="IP*" with no luck.
Is there a way to do this without creating one rule for each sequential signal? I'd even settle for something like this: =$B2="IP1","IP2","IP3" but that doesn't seem to work either. I'm a newby at Excel and know I'm dancing all around the answer here. I don't see this particular problem in other posts...
Conditional formatting formulas you're looking for will either be COUNTIF with wildcards or ISNUMBER(SEARCH(. Personally I prefer the COUNTIF route, but here's both for your perusal:
=COUNTIF($B2,"IP*")>0
=COUNTIF($B2,"FLOW*")>0
=COUNTIF($B2,"GV*")>0
=ISNUMBER(SEARCH("IP",$B2))
=ISNUMBER(SEARCH("FLOW",$B2))
=ISNUMBER(SEARCH("GV",$B2))
I'm pretty new to Excel, and one of my bosses (who knows even less about Excel than I) is asking me to create a spreadsheet that will track a bunch of different deadlines. For quick reference, I need to use conditional formatting to do the following:
Highlight only non-blank cells that contain a date in the past.
Highlight with a color scale cells containing dates between now and now+90 workdays.
Nothing I've tried is giving me the results I need. I'd appreciate any guidance, as I'm getting very frustrated and this is fairly time-sensitive.
I will answer your second question. I think you will be able to answer the first one yourself from what you learn from the second one.
The executive summary is: use a combination of TODAY() and WORKDAY().
Now for some useful detail.
First, I suspect (from your reputation) that you are new to StackOverflow. Welcome! Take a look on the right side of this page. At the bottom there are "Related" questions. I obtained the following one from there. It is half of the answer to your question. The key point is to use the TODAY() function in your formula.
Second, the WORKDAY() function, with a positive number n, provides a date n workdays into the future. You may also need to make adjustments if your company's calendar is different from the canonical one.
You may want to set a cell in your spreadsheet to the date returned by =WORKDAY(TODAY(),90). Lets just pick A1 for simplicity of explanation. When you first add that formula, you will get what seems like a nonsensical number. Change that cell's format to date and it will make sense.
Now you can refer to A1 in your conditional formatting, as in the "less than" highlighting rule. That should do it.
P.S., while you are at it, search for "named ranges". As a beginner, it is probably the most useful "trick" you could learn. Then name whatever your A1 cell turns out to be something meaningful, like ninetyWorkdaysAhead (you cannot start a named range with a number), then refer to that name in your rule. That way, if you need to move it, your code will not break.
This forum has been very helpful to understand the Rally Excel Add-in.
I am able to extract the Predecessors for a user story.
If there are more than one then they are all placed into one cell separated by a coma.
My syntax is :AcceptedDate,FormattedID,Predecessors.FormattedID
The results is;
2012-11-05T14:38:24.963Z US22938 US19926,
US27528,
US28467,
US29310
The Predecessors are all in one cell: US19926,US27528,US28467,US29310
Is there a way to receive each predecessor in it's own cell? Row?
Regards,
Jim
Unfortunately there's not a way to accomplish this using the Excel add-in. As a workaround, it would be possible to split these out into cells or rows using Excel parsing functions and/or VBA though.