I apologize for the remedial question... I have not had to rely on my excel formulas in quite a while now. I am having trouble with absolute references in a table. I have conditional formatting that I would like to apply every time I add a new row to the table, but conditional formatting is getting in the way. Here is a screen shot of what I am seeing.
Each time a new row is added to the table the absolute reference is holding the previous cell. I know there is a way to get around this I just cant seem to find it. Please advise.
Place the cursor in your desired column of the table
Press Ctrl+Spacebar which selects the entire column of the table.
Apply CF which will get applied for new entries also.
Tested and it's working fine for me for new entries.
Related
I have an Excel table that looks like below:
The transaction Amount is inputted manually.
The problem is, if I want to add something new in the last row, Excel keeps on including the last row like this:
See the formula in R4? There's a green arrow in the left side of the cell and it said "Inconsistent calculated formula" and proceeded to include the last row (5), instead of (4) in R4. I have tried unchecking the option for excel autocorrect option and it still doesn't work.
Anybody knows how to solve this problem? Thanks a lot!
Have you checked the formatting of that cell?
Can you just change the formula in column R so that it's the same across all rows? Possibly using something like this:
=IFERROR(IF[#[Invoice ID]]="","",[#[Total Value]]-SUMIFS([Transaction Amount],[Invoice ID],[#[Invoice ID]],[Date],"<="&[#Date])),"")
I am sure this is really simple but cannot get it to work. I am trying to do some conditional formatting on a sheet that over time will have additional columns added to it. I want the formatting to be there before hand since the data is being added via VBA and the person using the spreadsheet are not Excel experts.
What I have is a column with numbers in. When a new column is entered I want to compare the value with the value in the previous column and then colour the cell accordingly. I can do this for a single cell with for example "=D2>C2".
I want to be able to write the rules in cell D2 comparing it with cell C2 and then have the rules apply across the area D2:DDD300. So for example cell N19 will compare itself to cell M19.
I thought I could use the "Applies to" box but that does not work. Any ideas on how I can achieve this?
Okay this now appears to be working. Not sure what I did differently but deleted all the rules and then set them up again. The only thing I did different was to initially do it for just the 1 cell, then expanded it out to the row when I knew it was working, then finally the whole area.
Sorry to have wasted peoples time
Your method should work. It does for me. Maybe this helps:
I have a table, that consists of 2 columns. I need to highlight values in first column, that are more or equal than 10% of the number in the second column.
I created additional row there, to clarify, but I can't use it in the formula, tho.
I need to use relative formula, since I am applying filter to these rows, so I need this all not to fall apart, if I am sorting table via filters.
I have looked through this topic: Excel Conditional Formatting based on Other Column , but I couldn't apply it. Or I failed at applying it.
I have tried to apply to the range (of =$A$2:$A$8)following formulas (in conditional formatting "Use a formula to determinate..."):
=$A2*100/$B2>=10
=ADRESS(ROW(),COLUMN())*100/ADRESS(ROW(),COLUMN()+1)>=10
But none of them did the trick. Can someone help me with this one, please? Thanks.
You misunderstand how conditional formatting works.
"I need to use relative formula ..."
No. You don't.
Conditional formatting, although I have never seen it stated anywhere, uses array-based formula. As such you describe the usage of the first instance in the (unfiltered) table, tell it the area of the table, and it will calculate the necessary relative addressing by itself. You do not tell it the relative addressing. Why it behaves like that, I can't tell you.
The formula will then maintain itself throughout any filtering or sorting you carry out. You do not need to account for filtering and sorting - provided, of course, you set everything up on the unfiltered table to begin with.
You can see from the attached screenshots, simply using your formula of =$A2*100/$B2>=10 and applying it to $A$2:$A$8 worked perfectly.
I've been at this for an hour now and I've ended up going back to using INDIRECT, which I would rather avoid. I feel like there must be a simpler way of using table format to get this done very cleanly, but I can't figure it out!
I have a sheet like this, where I want the yellow area on the right to show me the data from the available choices on the left, based on the value in the orange cell at the top. The top table is called tPeople, and the bottom table is called tPlaces. So if tPeople is entered in the cell, I want the data for that table to show up in the yellow area.
At the moment, I've set a Named Range of rPeople and rPlaces to get this working with an indirect, but I'd rather be actually using the table, and not use the indirect if possible.
=INDEX(INDIRECT($E$1),$F2,G$1)
Thanks!
Yes it can be done using OFFSET and INDIRECT on the table name. Here TblName is named range for cell I1. One caveat is that the rPeople and rPlaces table must be on the same row or the formula will return #Value error. Also [ID] [ID] is required to fix absolute reference for the structured table referencing. See here.
I am creating a work chart for a project with excel table. However with so many people to manage I have ran into an issue of often putting same person twice on different columns of the same row (he/she can't work on two places at same time!)
So, I am looking for help with a formula that notices if the same name appears twice on a row but does not count multiple blank cells as duplicates. My understanding of excel is very basic and so far I have managed to get this far
=COUNTIF(A6:W6;A6:W6)=1
which returns to me with false, which I assume is because of the blank, unfilled cells still within the table being counted as duplicates.
Help would be appreciated, thanks.
You can't have a range as the second argument of a Countif. The range you pass into the formula will resolve to just the first value. Use the Evaluate Formula tool to see what I mean.
If you want to determine if ANY name in the range A1:W1 appears more than once (and exclude blanks), you will need a recursive function. That can only be done with VBA, not with a formula.
You could use a Countif in a conditional format to highlight duplicate names in a row. That's a piece of cake. Pipe up if you want to do that.