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.
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'm trying to create an Excel sheet that will be tracking some of our autonomous processes and their access privileges at my company and I've run into an issue with Excel..
I'm trying to alternate row colors, which in and of itself isn't an issue, however the fact that I've got merged rows are giving me issues.
As of right now I've got 5 columns with headers in A through E. Column F is being used for conditional formatting to color the rows. In column F this formula is present:
=MOD(IF(ROW()=2,0,IF(A2=A1,F1, F1+1)), 2)
This works great if I want to repeat the leading Column item over and over, however I'd like to reduce the visual clutter and increase clarity, so I've merged some of the rows in the Column A because multiple rows in B:E correspond to it.
I've merged A2:A4 right now and the formula picks up the A2 and A4 as blank, but A3 (the text in the merged cell is centered) is recognized as different that A2 and A4 because the text resides there. I'll upload an image to give a better idea of what I'm talking about as well.
If anyone can give me a tip on how to alternate row colors with merged cells/rows that'd be great, I've done a lot of googling and searching on stackoverflow, but for the most part I've only found things that pertain to unmerged rows/cells.
Image Example: https://imgur.com/a/UDbRVWA
=IF() Condition that worked for me:
=MOD(IF(ROW()=2,0,IF((A2=0),IF((OR(A1<>0,A2=A1)),F1, F1+1),F1+1)), 2)
There is an answer below with a picture I posted, however, for most situations I would recommend the method suggested by #BruceWayne. It's far more sensible than working with merged cells!
I ended up finding a solution with just some clever working with the Conditional IF() statements. I think the key was taking into account that the Merged Cells that weren't the top (i.e. If I merged A2:A4, A2 is top, A3, A4 bottom) were equal to 0 while the top was set to the value of the text within the merged cell. Using the formula below I was able to achieve the result I was after:
=MOD(IF(ROW()=2,0,IF((A2=0),IF((OR(A1<>0,A2=A1)),F1, F1+1),F1+1)), 2)
And here is a linked screenshot: https://imgur.com/a/gNaC62c
I then just added conditional formatting for every row but row 1: =$F2=1. I'll be hiding column F to make it seem less obtrusive.
For future reference, I would agree with what #BruceWayne mentioned in that a simpler formatting that gets the job done would be preferable. There are many other ways to format this in a way that makes much more sense, but I felt like I was close when I was tinkering with it, so I stuck with it another 15 minutes or so and was able to pull out a usable formatting condition.
Might I make a suggestion? If the merging rows is to increase clarity with repeated entries, perhaps we can use another Conditional Formatting rule to make it more legible.
Say you have data that looks like this:
But, we don't want to see <Process #> duplicates in the A column. We could merge these cells and center it along the rows. But again, merging cells is generally frowned upon I've found. (It makes it tricky to format, conditional format, copy/paste, do any VLOOKUP()/Index/Match, etc.)
First, let's get the rows alternating colors. I'm using fill of RGB(183, 255, 253):
New Rule 1 -
Formula: =MOD(ROW(),2)
Applies To Range: $A$2:$E$9
Format: Fill with color RGB 183, 255, 253 (...or whatever you want, just note the RGB for later)
Now, we get this:
Okay, making progress. Now, let's work on hiding the duplicate values in column A.
So, let's apply some more Conditional Formats. We'll need two for column A, one to set the font to White, one to set the Font to that blue fill color.
New Rule 2 -
Formula: =AND($A3=$A2,MOD(ROW(),2)=1)
Applies To: =$A$3:$A$100
Format: Font --> Color --> RGB(183, 255, 253)
New Rule 3 -
Formula: =AND($A3=$A2,MOD(ROW(),2)=0)
Applies To: =$A$3:$A$100
Format: Font --> Color --> White
Now we have:
IMO, we can do one more thing to clarify the breaks in Processes:
New Rule 4 -
Formula: =$A2<>$A1
Applies To: =$A$2:$E$100
Format: Border --> Top Border
Now, we have a nice new CF table.
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 compiling a data chart where each horizontal cell is a separate transaction. I want to make it so the "Profits" column will have a formula that picks data from column E and C for the same horizontal data cell they are on.
I've been searching for this with no luck, probably because I'm not describing it correctly maybe.
I'm not sure whether I understood your question right but you can just use =C4+E4 assuming your current row is 4. Then move your mouse over the small little box at the bottom right corner and left click and move mouse down.
The number for the rows will be adjusted accordingly
Final result:
It looks like all you are wanting to do is perform some basic multiplication. This can be achieved using the following formula (only applied to one row for simplicity)
=C2*E2
Hope this helps!
To start I have all the days of the month going across row 2 using up columns G through AI.
I also have in row 3 from columns G through AI the following function =IF(G$2=TODAY(),1,) This function changes according to the column: H$3, I$3, J$3 … etc to AI$3
Below this are series of tasks that are divided by date depending on what is being done that day so I will refer to this area as the ‘task area’.
What I’ve been using in the task area is the conditional formatting “Use a formula to determine which cells to format”. When I reference the first column I use $G$3=1 and then apply the formatting to this column (in this case border the left and right side of all cells affected) and it works fine. I’ve run into a problem in that I now have to set up a rule for every column from G3:AI3. It is workable but not what I would like to ideally have set up, and it creates in some months 31 rules (this example 28 as I’m working in February) that are in existence to provide the formatting effect I want.
I’m wondering if there are any suggestions or directions to achieve the ideal which is one rule that can apply to the entire task area, but be able to work within the parameters, in this case the date of each individual column?
I have tried using the formula G3:AI3=1 but this comes back as an error as the rule for the conditional formatting. I have toyed with using cell values but as it stands the task area already has conditional formatting applied and found this conflicted with this conditional formatting, and really didn’t look the way I was hoping anyway. I hope this is clear, thanks for any suggestions.