Despite looking at a similar topic I have not been able to solve this yet. I want to create a vertical line that automatically updates with week number in my sheet (not chart). See picture.
Somehow, I can not solve it with conditional formatting. Can you help me with what/how to make the formatting or (preferably) using a macro.
I have illustrated how I want it to look using an inserted figure.
Hope someone can help.
The formatting takes me to here:
.
However, the layout/visual is not super good as it over writes what is already in there.
Conditional formatting is a good way to solve this though. Let's say my week numbers are on A1:ZZ1, then using below formula and applying it to the entire table could give you what you want?
=A$1=WEEKNUM(TODAY())
Related
I would like to know how to make a dynamic banded rows in a table which switches color once the date changes like shown here :
Left figure would be what I want to do, Right figure is what I can use if left isn't possible:
I have been doing this manually for a month now but I'd like to know if it were possible to do it automatically?
Thank you so much!
I have found the solution here, thank you Tim Williams for guiding me to search for a conditional formatting rule! It works wonders.
https://www.extendoffice.com/documents/excel/2661-excel-alternate-row-color-based-on-group.html
I used specifically the formula in column E =IF(OR(A3=A2,ISBLANK(A3)),IF(ISBLANK(B3),0,E2),E2+1) and conditional formatting =ISODD($E3) to make this result possible
I need help creating a macro that finds a value given 3 conditions, year, quarter and color. I realize that the easiest way to solve this is by creating a pivot table, but I was asked to solve this using a macro.
Here is what the table looks like, I need to be able to find the value in C12 given the conditions around it.
I appreciate your time and any advice would be pleasantly taken.
You can use the following formula for the worksheet in your question.
=OFFSET($B$2,MATCH($B$12,$B$2:$B$7,0)-1,MATCH($C$11,OFFSET($C$3:$F$3,0,MATCH($C$10,$2:$2,0)-COLUMN($B$2)-1),0)+MATCH($C$10,$2:$2,0)-COLUMN($B$2)-1)
I need to find a way to highlight closes and farthest value to/from 0 in my excel table. I know easiest way to achieve it is by using conditional formatting, however I can not do it correctly even with help of tutorials. Based on this site:
https://www.extendoffice.com/documents/excel/4095-excel-highlight-closest-value.html
i used formula
=ABS(A2-$D$2)=MIN(ABS($A$2:$A$15-$D$2)) on my test data but it dosent work... What am I doing wrong?
I would add a helper column that is absolute value of difference. Then add another cell that's min of that column. Will make it easier to debug.
This issue was related to my system exclusively. Worked on other computer. Got new system and this problem never occurred again.
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.
I have a chart based on a table.
The data in the table is conditionally formatted to be either a number or currency.
When formatted as a plain number the Y axis looks like the following:
When formatted as currency the Y axis does not adopt the same formatting. Is this deliberate or a bug in Excel? Is there a workaround? I don't want to use VBA in the solution but any sort of formula is of course fine.
Edit - Actual Solution:
The solution to this tricky thing was to use named ranges!
A named range can switch his content, thereby redirecting a chart dynamically based on a condition! This is quite powerful. I used it on other occasions, but I had to first get really obsessed with this question, so that my memory was triggered.
In my screenshot you see all contents to solve this. Just set up those two names with a condition you like.
Unfortunately my solution requires to dublicate your data-columns in order to reflect the different formattings. But at least, it solves your problem.
Edit:
After looking into this problem more detailed, I must mark here, that my answer does not solves this particular problem. While this can be used in combination with a VBA-Solution for the given problem, it cannot be applied without VBA, except of course for static formatted data.
This is possible with the right settings for your axis:
When you link to source, the formatting of your data will be reflected in your diagram ;)
Otherwise your chart will use whatever format you have set for this axis.
Conditional formatting does not apply to any graphs, it shows only in the tables in your sheet. It is more of a layer than actual data source.
Use standard currency formatting or you can use a formula like =a1&" £" if you need to do some extra data formatting
Here is a link that may help you. You can do it using Named Ranges and Offset. That is the best I could find after a little searching.