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
Related
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())
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)
Okay so I'm new to all this- please help me if there's a better way to do this... currently trying to make changes to an existing spreadsheet and I can't figure out how to accomplish what I want...
Tab 1 accounts for different numbers and their assignments, Tab 2 rearranges that data for a printable page, and Tab 3 has a list of all the numbers we have to account for, and currently uses conditional formatting to do so. (Green if the number is accounted for on Tab 1, Red if not)
What I am trying to accomplish is create a list of all the numbers NOT accounted for (Red conditionally formatted cells on tab 3) to show up in any form on Tab 2. I started messing around with the =mycolor and IF functions, but I found that only works with explicit formatting of the cell, not the conditional formatting I am using to account for the numbers.
Do I need to change how my spreadsheet is accounting for the numbers from Tab 1 instead of conditional formatting? If so what would be the best way to go about this? If there's a way to do this with conditional formatting, how would I go about copying data based on the conditional formatting of certain cells?
Also, ideally I want this to be done without having to play a macro. I'm trying to make this as stupid simple for the end user as possible... but if there's no way to do it without recording a macro then that's what I'll end up doing.
Thanks a bunch in advance...
What I would do is add a column to tab three that is a missing/not missing column (=column C in my mock up below). Missing = 1 accounted for =0. (That can either be achieved by the same formula as used to give the red/green OR a vlookup() function). Therefore for each red row there will be a 1 alongside.
Extending that, as per my comment... index the missing values (col A=):
=IF(C3>0,SUM(C$1:C3),"")
Now use a new pair of columns to grab the missing values
And use a lookup function to line up the missing values (col G)... I only went up to 5 (col f)
=IFERROR(VLOOKUP(F3,A$3:B$6,2,FALSE),"")
THANK YOU for your help Richard!
With some changes, the Vlookup function you gave me (in Column E) worked fine:
=IF(ISERROR(VLOOKUP(E2,hiddenradios,1,FALSE)),"1","0")
And adding the second column(s) and the sum function for values was a really helpful idea: (column H)
=IF(VALUE(F2)>0,SUM(G$2:G2),"")
For whatever reason I couldn't make vlookup work, even with the column relocated to the left of the number I was trying to return, but I was able to do the same thing with an INDEX/MATCH formula in column J:
=IFERROR(INDEX(E$2:E$100,MATCH(I2,H$2:H$100,0),1),"")
Not quite as simple as yours, but you set me on the right path with adding column(s) and I wouldn't have figured it out without your help... thanks again!
enter image description here
I'm using Excel 2010.
Does anyone have a quicker way of implementing this?:
I have a table, with 2 columns; all I want is a green arrow (upwards) or red arrow (downwards) if the value on the right is bigger/smaller than the value on the left.
Unfortunately I can only get condition formatting to work on each individual cell (so when I have 15+ rows, in theory I would have to create 15 'rules'. Is there a quicker way of creating some sort of series that can be easily replicated?
Thank you!
You can use a helper cell to with something like =IF(A1>B1,1,0) and then apply the conditional formatting for the arrows for the whole table. You might need to adjust when what arrow shows up but when I threw it in a sample sheet it worked by default. You can set it to show the icon only too.
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.